CVE-2026-22741
Spring MVC and WebFlux applications are vulnerable to cache poisoning when resolving static resources.
Description
Spring MVC and WebFlux applications are vulnerable to cache poisoning when resolving static resources.
More precisely, an application can be vulnerable when all the following are true:
- the application is using Spring MVC or Spring WebFlux
- the application is configuring the resource chain support https://docs.spring.io/spring-framework/reference/web/webmvc/mvc-config/static-resources.html#page-title with caching enabled
- the application adds support for encoded resources resolution
- the resource cache must be empty when the attacker has access to the application
When all the conditions above are met, the attacker can send malicious requests and poison the resource cache with resources using the wrong encoding. This can cause a denial of service by breaking the front-end application for clients.
Affected Maven artifacts (2)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.springframework » spring-webflux | <= 5.3.47>= 6.1.0, <= 6.1.26>= 6.2.0, < 6.2.18>= 7.0.0, < 7.0.7 | 6.2.18, 7.0.7 |
| org.springframework » spring-webmvc | <= 5.3.47>= 6.1.0, <= 6.1.26>= 6.2.0, < 6.2.18>= 7.0.0, < 7.0.7 | 6.2.18, 7.0.7 |
Blast radius
74% of the dependent artifacts (31,822) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 205,441 |
| 2 hops | 470,290 |
| 3 hops | 529,740 |
| 4 hops | 300,997 |
| 5 hops | 133,885 |
| 6 hops | 56,215 |
Most used dependents
- org.springframework.boot » spring-boot-starter-web19,081 usages
- org.springframework » spring-test12,234 usages
- org.springframework » spring-orm3,194 usages
- org.springframework.boot » spring-boot-starter-webflux2,764 usages
- io.springfox » springfox-swagger21,926 usages
- org.wso2.carbon » org.wso2.carbon.core1,598 usages
- io.springfox » springfox-swagger-ui1,418 usages
- org.springframework.boot » spring-boot-starter-websocket1,319 usages
- net.sf.ehcache » ehcache1,234 usages
- org.jenkins-ci.main » jenkins-core1,191 usages
- org.wso2.carbon » org.wso2.carbon.utils1,179 usages
- org.springframework.boot » spring-boot-starter-thymeleaf1,158 usages
- org.springframework.data » spring-data-mongodb1,154 usages
- org.springframework » spring1,074 usages
- org.springdoc » springdoc-openapi-starter-webmvc-ui1,040 usages
Computed from the dependency graph of build 20261124.0621 (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.
