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)
| 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-22753 | nvd.nist.gov |
| Package | spring-projects/spring-security | github.com |
| Web | security/cve-2026-22753 | spring.io |
