User Impersonation Affecting org.springframework.security:spring-security-web package, versions [, 6.5.11)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.12% (2nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JAVA-ORGSPRINGFRAMEWORKSECURITY-17305998
  • published11 Jun 2026
  • disclosed9 Jun 2026
  • creditNikita Markevich

Introduced: 9 Jun 2026

CVE-2026-47838  (opens in a new tab)
CWE-290  (opens in a new tab)

How to fix?

Upgrade org.springframework.security:spring-security-web to version 6.5.11 or higher.

Overview

org.springframework.security:spring-security-web is a package within Spring Security that provides security services for the Spring IO Platform.

Affected versions of this package are vulnerable to User Impersonation via username extraction in SubjectDnX509PrincipalExtractor. An attacker can impersonate another user by presenting a specially crafted X.509 certificate containing a malformed Common Name (CN) value that causes the extractor to resolve an incorrect username during certificate-based authentication.

Note:

  1. This vulnerability is a continuation of CVE-2026-22747, which addressed the same issue in Spring Security 7.0.x.

  2. Exploitation requires compromise or misuse of a trusted upstream certificate validation process, as this component operates within Spring Security's pre-authentication flow and assumes presented certificates have already been validated.

CVSS Base Scores

version 4.0
version 3.1