Skip to content
Fencer Intel
medium 5.4

CVE-2026-40995 json

X.509 authentication bypasses Spring Security account checks

published 4mo ago modified 2mo ago also GHSA-6mfm-98wv-32wm , EUVD-2026-36205

cvss
5.4
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.1%
EPSS 0.1% chance of exploitation in 30 days, percentile 4%
public exploits
0
none known

Summary

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.

Patch / fix

  • maven org.springframework.ws:spring-ws-security 4.1.4, 5.0.2
  • Spring Spring Web Services 3.1.9, 4.0.19, 4.1.3.1, 5.0.1.1

Is CVE-2026-40995 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
partial
Assessed
4mo ago

Exploit prediction

0.15% chance of exploitation in the next 30 days, higher than 4% of all scored CVEs (FIRST EPSS, 2026-11-09).

CVSS scores

assigned by version score vector
CNA 3.1 5.4 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
GitHub 3.1 5.4 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N

Affected packages

ecosystem package affected fixed in
maven org.springframework.ws: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
5.0.2
4.1.4

Affected products

  • Spring Spring Web Services

Classification

Weakness

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.