Vulnerability · Published Jun 11, 2026 · Assigned by vmware
CVE-2026-40995X.509 authentication bypasses Spring Security account checks
Medium 5.4
In plain English
A medium-severity improper authentication in Spring Web Services from Spring. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.1% (higher than 4% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
X509AuthenticationProvider could issue a fully authenticated X509AuthenticationToken when a presented certificate mapped to UserDetails, without applying Spring Security's standard account lifecycle checks (disabled, locked, expired, or credentials-expired accounts). 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Maven | org.springframework.ws:spring-ws-security | 5.0.2 | GHSA-6mfm-98wv-32wm |
| Maven | org.springframework.ws:spring-ws-security | 4.1.4 | GHSA-6mfm-98wv-32wm |
| Maven | org.springframework.ws:spring-ws-security | no fix listed | GHSA-6mfm-98wv-32wm |
| Maven | org.springframework.ws:spring-ws-security | no fix listed | GHSA-6mfm-98wv-32wm |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Spring | Spring Web Services | 5.0.0 – before 5.0.1.14.1.0 – before 4.1.3.14.0.0 – before 4.0.193.1.0 – before 3.1.9 |
Weakness: CWE-287 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N