HIGH 7.5

CVE-2026-22753

Spring Security Doesn't Correctly Include Servlet Path in Path Matching of HttpSecurity#securityMatchers

Description

Vulnerability in Spring Spring Security. If an application is using securityMatchers(String) and a PathPatternRequestMatcher.Builder bean to prepend a servlet path, matching requests to that filter chain may fail and its related security components will not be exercised as intended by the application. This can lead to the authentication, authorization, and other security controls being rendered inactive on intended requests. 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-config
>= 7.0.0, < 7.0.5
7.0.5

Blast radius

1affected artifacts
5affected versions
945dependent artifacts (est.)
5,938dependent versions

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

DepthDependent versions
Direct
473
2 hops
1,107
3 hops
2,723
4 hops
1,447
5 hops
164
6 hops
24

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.

References

Advisorynvd.nist.gov
Packagegithub.com
Webspring.io