CVE-2026-22737
Spring Framework Improper Path Limitation with Script View Templates
Also known as GHSA-4773-3jfm-qmx3
Mitigation
- Upgrade org.springframework:spring-webmvc to one of 7.0.6, 6.2.17 (or later in the same release line).
- Upgrade org.springframework:spring-webflux to one of 7.0.6, 6.2.17 (or later in the same release line).
Who should check
- Projects that depend on Maven package org.springframework:spring-webmvc (>= 7.0.0-M1, < 7.0.6)
- Projects that depend on Maven package org.springframework:spring-webflux (>= 7.0.0-M1, < 7.0.6)
- Anyone running Spring Framework >= 7.0.0, <= 7.0.5; >= 6.2.0, <= 6.2.16; >= 6.1.0, <= 6.1.25; >= 5.3.0, <= 5.3.46
Vulnerability facts
- Affected
- org.springframework:spring-webmvc >= 7.0.0-M1, < 7.0.6; org.springframework:spring-webflux >= 7.0.0-M1, < 7.0.6
- Fixed in
- 7.0.6, 6.2.17
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 5.9 (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: High
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: None
- Availability impact: None
- EPSS
- 0.61% chance of exploitation in 30 days (percentile 43, 2026-11-26)
- CWE
- CWE-22
- Modified
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 and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Maven org.springframework:spring-webmvc | >= 7.0.0-M1, < 7.0.6 | 7.0.6, 6.2.17 | osv |
| Maven org.springframework:spring-webflux | >= 7.0.0-M1, < 7.0.6 | 7.0.6, 6.2.17 | osv |
| Spring Framework | >= 7.0.0, <= 7.0.5; >= 6.2.0, <= 6.2.16; >= 6.1.0, <= 6.1.25; >= 5.3.0, <= 5.3.46 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-22737. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-22737.md Affected: org.springframework:spring-webmvc >= 7.0.0-M1, < 7.0.6; org.springframework:spring-webflux >= 7.0.0-M1, < 7.0.6 Fixed in: 7.0.6, 6.2.17 Steps: 1. Search this machine and project for org.springframework:spring-webmvc (Maven), org.springframework:spring-webflux (Maven), Spring Framework: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
FAQ
Is CVE-2026-22737 being exploited?
There is no confirmed exploitation: CVE-2026-22737 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.61% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-22737?
Medium: CVSS 5.9 (v3.1, scored by CNA). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.
Which versions are affected by CVE-2026-22737?
org.springframework:spring-webmvc >= 7.0.0-M1, < 7.0.6; org.springframework:spring-webflux >= 7.0.0-M1, < 7.0.6.
Is there a fix for CVE-2026-22737?
Yes. Fixed in 7.0.6, 6.2.17. Upgrade org.springframework:spring-webmvc to one of 7.0.6, 6.2.17 (or later in the same release line). Upgrade org.springframework:spring-webflux to one of 7.0.6, 6.2.17 (or later in the same release line).
How do I check if I'm affected by CVE-2026-22737?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.