MEDIUM 5.3

CVE-2026-40997: Spring Web Services Account Enumeration via Error Message Disclosure

Spring Web Services has a flaw where integration with Spring Security can leak information about user account status to unauthenticated SOAP clients. When an attacker attempts to log in via a SOAP endpoint, the system may reveal whether a username exists, is locked, or is disabled—rather than returning a generic "authentication failed" message. This information disclosure helps attackers enumerate valid accounts and understand their lifecycle state without needing valid credentials.

Source data · NVD / CISA · public domain

CVSS
3.1 · 5.3 MEDIUM · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Weaknesses (CWE)
CWE-209
Affected products
0 configuration(s)
Published / Modified
2026-06-11 / 2026-06-23

NVD description (verbatim)

Several Spring WS integration paths with Spring Security could surface detailed account state (for example locked or disabled user semantics) to remote SOAP clients through exception messages or callback outcomes, instead of failing with generic authentication errors. That behavior assists remote attackers in distinguishing valid accounts from invalid ones and inferring lifecycle state. Affected versions: Spring Web Services 5.0.0 through 5.0.1; 4.1.0 through 4.1.3; 4.0.0 through 4.0.18; 3.1.0 through 3.1.8.

1 reference(s) · View on NVD →

SEC.co analysis · AI-assisted, reviewed against source

Technical summary

The vulnerability stems from insufficient error handling in Spring WS authentication flows when integrated with Spring Security. Specifically, exception messages and callback outcomes that propagate to remote SOAP clients can disclose account state semantics (locked, disabled, nonexistent) instead of abstracting them behind uniform authentication failures. The root cause is CWE-209 (Information Exposure Through an Error Message), where granular account information leaks via SOAP faults or response metadata. Affected versions include Spring WS 5.0.0–5.0.1, 4.1.0–4.1.3, 4.0.0–4.0.18, and 3.1.0–3.1.8.

Business impact

Account enumeration attacks become feasible without authentication barriers, increasing reconnaissance efficiency for threat actors. This can accelerate targeted brute-force campaigns or social engineering by confirming which email addresses or usernames belong to legitimate accounts. For organizations operating SOAP services, the reputational and compliance risk lies in exposing user identity metadata beyond intended API consumers. While the vulnerability does not grant unauthorized access, it substantially lowers the cost of account discovery.

Affected systems

Any deployment using Spring Web Services versions 5.0.0 through 5.0.1, 4.1.0 through 4.1.3, 4.0.0 through 4.0.18, or 3.1.0 through 3.1.8 with Spring Security integration is at risk. Exposure is specific to SOAP authentication endpoints; REST or non-WS integration paths are unaffected. Organizations running older Long-Term Support (LTS) versions of Spring WS should prioritize assessment, as many remain in active maintenance.

Exploitability

Exploitation requires only network access to a SOAP endpoint and no authentication credentials. An attacker can submit login attempts and observe whether error responses reveal account existence or state. The attack is passive reconnaissance—no special tools, payloads, or kernel exploits are needed. The CVSS score of 5.3 reflects low confidentiality impact (information disclosure only), no integrity or availability damage, and a straightforward attack vector. However, the ease of execution and the foundation it provides for follow-on attacks elevate practical concern.

Remediation

Upgrade to patched versions: Spring WS 5.0.2 or later, 4.1.4 or later, 4.0.19 or later, or 3.1.9 or later. Patched releases normalize authentication error responses to mask account state differences. If immediate patching is infeasible, implement network-layer controls to restrict SOAP endpoint access to trusted clients or apply a Web Application Firewall (WAF) rule to scrub verbose error messages from responses before they reach external clients.

Patch guidance

Spring Web Services maintains four active release tracks. Consult the official Spring WS advisory and security documentation to confirm patch availability for your version line. Patches are expected to be available in the minor version increments immediately following the latest affected version in each track. Test patches in a staging environment that mirrors your SOAP service configuration and integrations before deploying to production. Pay special attention to any custom error handlers or callbacks that may override the default Spring Security authentication behavior.

Detection guidance

Monitor SOAP authentication failure logs and responses for variance in error messages tied to different account states. If logs or response metadata reveal patterns like 'User locked', 'User disabled', or 'User not found', your system is likely vulnerable. Review SOAP fault strings and HTTP headers in authentication responses. Security scanning tools capable of SOAP protocol analysis can detect account enumeration patterns by submitting multiple login attempts and correlating response differences. Log and alert on unusual SOAP authentication probing patterns.

Why prioritize this

Although the CVSS score is moderate (5.3), the vulnerability enables efficient account enumeration—a critical first step in targeted attacks. Organizations with SOAP APIs, particularly in financial services, healthcare, or high-security environments, should deprioritize based purely on CVSS and instead consider business context. The ease of exploitation and the foundational reconnaissance value make this a worthwhile target for Q3 2026 patch cycles. Enterprises relying on SOAP security posture should treat this as a high-priority application-level patch.

Risk score, explained

CVSS 5.3 (Medium) reflects the constraint that information disclosure alone cannot cause system compromise, data theft, or service disruption. However, the vector (Network / Low Complexity / No Privileges / No User Interaction) underscores how trivially the vulnerability can be triggered. The true risk is contextual: for organizations with large user bases or public SOAP APIs, account enumeration at scale can identify high-value targets for credential stuffing or phishing. Risk assessment should incorporate threat modeling around SOAP service visibility and the sensitivity of account metadata.

Frequently asked questions

Does this vulnerability require SOAP integration with Spring Security, or does it affect all Spring WS deployments?

The vulnerability is specific to Spring WS instances that integrate Spring Security for authentication. Non-WS or REST-only deployments are not affected. If your Spring WS service uses alternative authentication mechanisms (custom handlers, external OAuth providers), review those implementations to determine whether they exhibit the same error-handling flaw.

Can this be exploited remotely without any credentials or special network access?

Yes. An attacker with network access to your SOAP endpoint (typically HTTP/HTTPS) can submit authentication requests and observe response differences that reveal account state. No authentication, credentials, or special tools are required—a basic SOAP client or curl command suffices.

If I upgrade to a patched version, do I need to make any changes to my application code?

Patches are designed to be backward-compatible. In most cases, you simply upgrade the Spring WS library version and test your existing SOAP services. However, if your application has custom error handlers or callbacks that explicitly return account state information, you may need to review and align those with the patched behavior.

What is the relationship between this CVE and Spring Boot or Spring Framework?

This CVE is specific to Spring Web Services (the SOAP framework), not the broader Spring Framework or Spring Boot. If you are not using Spring WS for SOAP services, this does not affect you. Spring Security patches are independent and should be kept current separately.

This analysis is provided for informational purposes and does not constitute professional security advice. Organizations should verify all technical details, affected versions, and patch availability against the official Spring Web Services security advisory and vendor documentation. Patch version numbers and availability dates should be confirmed with the vendor before deployment. SEC.co makes no warranty regarding the completeness or accuracy of this summary. Consult your security team, system architects, and the vendor's security contact for advice tailored to your environment. Source: NVD (public-domain), retrieved 2026-07-20. Analysis generated by SEC.co (claude-haiku-4-5).