All reports
Medium

Spring Web Services: X.509 authentication bypasses Spring Security account checks

Affected versions

Affected versions
>= 4.1.0, <= 4.1.3
Fixed version
4.1.4
Affected versions
>= 3.1.0, <= 3.1.8
Fixed version
Not reported
Affected versions
>= 5.0.0, <= 5.0.1
Fixed version
5.0.2
Affected versions
>= 4.0.0, <= 4.0.18
Fixed version
Not reported

Exploitation

CVE-2026-40995

Probability of exploitation in the next 30 days: 0.15%

FIRST EPSS · 2026-11-18

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.

Links