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)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.springframework.security » spring-security-config | >= 7.0.0, < 7.0.5 | 7.0.5 |
Blast radius
20% of the dependent artifacts (192) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 473 |
| 2 hops | 1,107 |
| 3 hops | 2,723 |
| 4 hops | 1,447 |
| 5 hops | 164 |
| 6 hops | 24 |
Most used dependents
- org.springframework.boot » spring-boot-starter-security3,614 usages
- org.apereo.cas » cas-server-core-util-api492 usages
- org.springframework.boot » spring-boot-security479 usages
- org.springframework.boot » spring-boot-starter-oauth2-resource-server466 usages
- org.springframework.boot » spring-boot-starter-oauth2-client447 usages
- org.apereo.cas » cas-server-core-configuration-api442 usages
- org.apereo.cas » cas-server-core-authentication-api400 usages
- org.apereo.cas » cas-server-core-util296 usages
- org.apereo.cas » cas-server-core-web-api288 usages
- org.apereo.cas » cas-server-core-services280 usages
- org.apereo.cas » cas-server-core-configuration264 usages
- org.apereo.cas » cas-server-core-services-api243 usages
- org.apereo.cas » cas-server-core-authentication232 usages
- org.apereo.cas » cas-server-core-web212 usages
- org.apereo.cas » cas-server-core-tickets182 usages
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
| Advisory | NVD CVE-2026-22754 | nvd.nist.gov |
| Package | spring-projects/spring-security | github.com |
| Web | security/cve-2026-22754 | spring.io |
