CVE-2026-40995: X509AuthenticationProvider could issue a fully authenticated X509AuthenticationToken when a presented certific
CVE-2026-40995 is a medium-severity flaw (CVSS 5.4) affecting spring web services. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- No elevated risk signals yet
A fixed release or distro patch exists.
Risk facts
| CVSS score | 5.4 (Medium) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | Low |
| User interaction | None |
| EPSS exploit chance | 0.1% (top 96%) |
| CISA exploited list | No |
| Weakness | CWE-287 |
| Published | 2026-06-11 |
| Last modified | 2026-09-04 |
Last updated 2026-09-04 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2026-40995?
spring web services: upgrade to 3.1.9, 4.0.19, 4.1.3.1, 5.0.1.1. Exact commands for each OS are on this page.
Is CVE-2026-40995 being exploited?
CVE-2026-40995 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2026-40995 affect?
CVE-2026-40995 affects spring web services. Severity is medium (CVSS 5.4). 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 cre
How urgent is CVE-2026-40995?
Priority 20/100. No elevated risk signals yet.
Related CVEs
- CVE-2026-40998 HIGH 8.2 UPGRADE Jaxp13XPathTemplate evaluated XPath expressions for StreamSource and SAXSource inputs using a code path that p
- CVE-2026-40999 HIGH 8.6 UPGRADE When WS-Addressing is used with non-anonymous ReplyTo or FaultTo addresses, Spring WS may initiate outbound co
- CVE-2026-41000 LOW 3.7 UPGRADE Wss4jSecurityInterceptor did not consistently wire Apache WSS4J ReplayCache instances into RequestData for val
- CVE-2026-40994 HIGH 8.2 UPGRADE Wss4jSecurityInterceptor initialized its BSP (WS-I Basic Security Profile) compliance flag so that inbound val
- CVE-2026-40996 MEDIUM 4.8 UPGRADE Wss4jSecurityInterceptor defaulted allowRSA15KeyTransportAlgorithm to true, overriding Apache WSS4J's safer de