CVE-2026-40995

published 11 Jun 2026 · updated 23 Jun 2026

X.509 authentication bypasses Spring Security account checks

5.4MediumCVSS 5.4EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 3.1.9, 4.0.19, 4.1.3.1 and 1 more.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Spring>=3.1.0 <3.1.9, >=4.0.0 <4.0.19, >=4.1.0 <4.1.3.1, >=5.0.0 <5.0.1.13.1.9, 4.0.19, 4.1.3.1, 5.0.1.1

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-40995 severity on Zeptric[![CVE-2026-40995](https://zeptric.io/badge/cve/CVE-2026-40995.svg)](https://zeptric.io/cve/CVE-2026-40995)