# CVE-2026-40995: X.509 authentication bypasses Spring Security account checks

- Priority: **Routine**
- Reason: Not severe (CVSS 5.4, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-06-11 · Modified: 2026-06-23
- Aliases: GHSA-6mfm-98wv-32wm
- Record: https://cvemate.com/vulnerability/CVE-2026-40995 · JSON: https://cvemate.com/vulnerability/CVE-2026-40995/json

## Description

```text
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.
```

## Signals

- CVSS: 5.4 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
- EPSS: 0.148%, percentile 4.189%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- broadcom 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.ws spring-ws-security (Maven): ≥ 5.0.0, \< 5.0.2 \| ≥ 4.1.0, \< 4.1.4 \| ≥ 4.0.0, ≤ 4.0.18 \| ≥ 3.1.0, ≤ 3.1.8
- spring 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

## References

- <https://spring.io/security/cve-2026-40995>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-40995>
- <https://github.com/spring-projects/spring-ws/commit/e5dc311359e14f5b25bcb33f20d43cc3513e9d10>
- <https://github.com/spring-projects/spring-ws>

---

Data as of 2026-12-05T03:44:38.246Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
