CVE-2026-22737
Spring Framework Improper Path Limitation with Script View Templates
Description
Use of Java scripting engine enabled (e.g. JRuby, Jython) template views in Spring MVC and Spring WebFlux applications can result in disclosure of content from files outside the configured locations for script template views. This issue affects Spring Framework: from 7.0.0 through 7.0.5, from 6.2.0 through 6.2.16, from 6.1.0 through 6.1.25, from 5.3.0 through 5.3.46.
Affected Maven artifacts (2)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.springframework » spring-webflux | >= 5.3.0, <= 5.3.39>= 6.0.0, <= 6.1.21>= 6.2.0, < 6.2.17>= 7.0.0-M1, < 7.0.6 | 6.2.17, 7.0.6 |
| org.springframework » spring-webmvc | >= 5.3.0, <= 5.3.39>= 6.0.0, <= 6.1.21>= 6.2.0, < 6.2.17>= 7.0.0-M1, < 7.0.6 | 6.2.17, 7.0.6 |
Blast radius
79% of the dependent artifacts (16,208) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 105,541 |
| 2 hops | 249,105 |
| 3 hops | 224,662 |
| 4 hops | 152,414 |
| 5 hops | 35,595 |
| 6 hops | 7,402 |
Most used dependents
- org.springframework.boot » spring-boot-starter-web19,081 usages
- org.springframework.boot » spring-boot-starter-webflux2,764 usages
- org.springframework.boot » spring-boot-starter-websocket1,319 usages
- org.springdoc » springdoc-openapi-starter-webmvc-ui1,040 usages
- org.springframework.boot » spring-boot-starter-webmvc777 usages
- com.atlassian.confluence » confluence724 usages
- org.springframework.webflow » spring-webflow716 usages
- com.vaadin » vaadin-core640 usages
- org.redisson » redisson-spring-boot-starter574 usages
- org.openmrs.web » openmrs-web521 usages
- org.apereo.inspektr » inspektr-support-spring515 usages
- org.springframework.boot » spring-boot-webmvc502 usages
- org.apereo.cas » cas-server-core-util-api492 usages
- org.apereo.cas » cas-server-core-configuration-api442 usages
- org.apereo.cas » cas-server-core-authentication-api400 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.
References
| Advisory | NVD CVE-2026-22737 | nvd.nist.gov |
| Package | spring-projects/spring-framework | github.com |
| Web | security/cve-2026-22737 | spring.io |
