spring-security-web is vulnerable to Improper Validation of Certificate with Host Mismatch
68
Medium Risk
This CVE is a continuation of CVE-2026-22747, which addressed this same issue for Spring Security 7.0.x. SubjectDnX509PrincipalExtractor does not correctly handle certain malformed X.509 certificate CN values, which can lead to reading the wrong value for the username. In a carefully crafted certificate, this can lead to an attacker impersonating another user.
You are affected if you are using a version that falls within the vulnerable range.
spring-security-web is vulnerable to Improper Validation of Certificate with Host Mismatch in versions 0.0.1 - 5.7.24, 5.8.0 - 5.8.26, 6.3.0 - 6.3.17, 6.4.0 - 6.4.17 and 6.5.0 - 6.5.10.
Upgrade the org.springframework.security:spring-security-web library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

SOC 2Compliant
ISO 27001Compliant