Intel

AIKIDO-2026-11165

spring-security-web is vulnerable to Improper Validation of Certificate with Host Mismatch

CVE-2026-47838Published Jun 11, 2026
June 11, 2026

68

CVE Score

Medium

Improper Validation of Certificate with Host Mismatch

Are you affected? Scan for Free

TL;DR

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.

How do I fix this?

Upgrade the org.springframework.security:spring-security-web library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Versions

0.0.1 - 6.5.10

Fixed in 6.5.11

Background info

spring-security-web is vulnerable to Improper Validation of Certificate with Host Mismatch in versions 0.0.1 - 6.5.10.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea