MODERATE 6.8

CVE-2026-22747

Spring Security Vulnerable to Unauthorized User Impersonation when Using X.509 Client Certificates

Description

Vulnerability in Spring Spring Security. SubjectX500PrincipalExtractor 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. This issue affects Spring Security: from 7.0.0 through 7.0.4.

Affected Maven artifacts (1)

ArtifactAffected versionsFixed in
org.springframework.security » spring-security-web
>= 7.0.0, < 7.0.5
7.0.5

Blast radius

1affected artifacts
5affected versions
1,163dependent artifacts (est.)
8,378dependent versions

17% of the dependent artifacts (202) still pull an affected version in their latest release.

DepthDependent versions
Direct
809
2 hops
2,020
3 hops
3,137
4 hops
2,257
5 hops
146
6 hops
9

Most used dependents

Computed from the dependency graph of build 20261127.1117 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.