CVE-2026-22737: Spring Framework Improper Path Limitation with Script View Templates
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.
Published Mar 20, 2026
Affected packages
org.springframework:spring-webmvc
- Ecosystem
- Maven
- Affected
- >= 7.0.0-M1, < 7.0.6
- Fixed in
- 7.0.6
- Check
mvn dependency:tree -Dincludes=org.springframework:spring-webmvc
org.springframework:spring-webmvc
- Ecosystem
- Maven
- Affected
- >= 6.2.0, < 6.2.17
- Fixed in
- 6.2.17
- Check
mvn dependency:tree -Dincludes=org.springframework:spring-webmvc
org.springframework:spring-webmvc
- Ecosystem
- Maven
- Affected
- >= 6.0.0, <= 6.1.21
- Fixed in
- No patched version yet
- Check
mvn dependency:tree -Dincludes=org.springframework:spring-webmvc
org.springframework:spring-webmvc
- Ecosystem
- Maven
- Affected
- >= 5.3.0, <= 5.3.39
- Fixed in
- No patched version yet
- Check
mvn dependency:tree -Dincludes=org.springframework:spring-webmvc
org.springframework:spring-webflux
- Ecosystem
- Maven
- Affected
- >= 7.0.0-M1, < 7.0.6
- Fixed in
- 7.0.6
- Check
mvn dependency:tree -Dincludes=org.springframework:spring-webflux
org.springframework:spring-webflux
- Ecosystem
- Maven
- Affected
- >= 6.2.0, < 6.2.17
- Fixed in
- 6.2.17
- Check
mvn dependency:tree -Dincludes=org.springframework:spring-webflux
org.springframework:spring-webflux
- Ecosystem
- Maven
- Affected
- >= 6.0.0, <= 6.1.21
- Fixed in
- No patched version yet
- Check
mvn dependency:tree -Dincludes=org.springframework:spring-webflux
org.springframework:spring-webflux
- Ecosystem
- Maven
- Affected
- >= 5.3.0, <= 5.3.39
- Fixed in
- No patched version yet
- Check
mvn dependency:tree -Dincludes=org.springframework:spring-webflux
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Maven vulnerabilities
All Maven entriesCVE-2026-47884
Spring Framework Improper Path Limitation in XsltView
critical9.8No fixAug 27, 2026CVE-2026-47890
Spring Framework Server Sent Event stream corruption while rendering fragments
critical9.8No fixAug 27, 2026CVE-2026-47892
Spring Framework Header Predicate Bypass in WebFlux Functional Endpoints
critical9.8No fixAug 27, 2026CVE-2026-41839
Spring Framework Escalation via Session Fixation in WebFlux
medium4.2No fixJun 9, 2026CVE-2026-41840
Spring Framework Denial of Service via Multipart Requests in WebFlux
medium5.9No fixJun 9, 2026CVE-2026-41841
Spring Framework Information Disclosure via Static Resource Cache in Spring MVC and WebFlux
medium5.9No fixJun 9, 2026
