HIGH 7.5

CVE-2026-22754

Spring Security Doesn't Correctly Include Servlet Path in Path Matching of XML Authorization Rules

Description

Vulnerability in Spring Spring Security. If an application uses <sec:intercept-url servlet-path="/servlet-path" pattern="/endpoint/**"/> to define the servlet path for computing a path matcher, then the servlet path is not included and the related authorization rules are not exercised. This can lead to an authorization bypass. 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