CVE-2026-40995: X.509 authentication bypasses Spring Security account checks
Vulnerability summary
CVE-2026-40995 is a medium (CVSS 5.4) Improper Authentication vulnerability in broadcom spring_web_services. EPSS estimates a 0.15% chance of exploitation in the next 30 days, higher than 4.1% of scored vulnerabilities.
Not severe (CVSS 5.4, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 11-06-2026PublishedVulnerability first disclosed.
- 23-06-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
3 scores · 3 sources · 1 version- OSV · MavenEcosystem advisory · calculated5.4MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
- NVDNIST5.4MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
EPSS trend
Probability
0.15%
Chance of exploitation in the next 30 days
Percentile
4%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.15% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Broadcom1 product
- spring_web_services< 3.1.9 | ≥ 4.0.0, < 4.0.19 | ≥ 4.1.0, < 4.1.3.1 | ≥ 5.0.0, < 5.0.1.1
Org.springframework.ws1 product
- spring-ws-security≥ 5.0.0, < 5.0.2 | ≥ 4.1.0, < 4.1.4 | ≥ 4.0.0, ≤ 4.0.18 | ≥ 3.1.0, ≤ 3.1.8
Spring1 product
- spring web services≥ 5.0.0, < 5.0.1.1 | ≥ 4.1.0, < 4.1.3.1 | ≥ 4.0.0, < 4.0.19 | ≥ 3.1.0, < 3.1.9
3 vendors · 3 products