# CVE-2026-22737: Spring Framework Improper Path Limitation with Script View Templates

> Attackers can read files outside configured directories in Spring MVC or WebFlux apps using Java scripting engine template views.

- **Severity:** Medium 5.9 (`CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 19 Mar 2026
- **Updated:** 20 Mar 2026
- **Also known as:** CLEANSTART-2026-CP60630, CLEANSTART-2026-DU72906, CLSA-2026-1787057569, CLSA-2026-1787820941, CLSA-2026-1787917450, CLSA-2026-1787918303, CLSA-2026-1788513738, DEBIAN-CVE-2026-22737, ECHO-a17b-0823-d9af, GHSA-4773-3jfm-qmx3, MINI-7v4v-f6p5-3pg4, MINI-86p9-crqm-rq5r, MINI-8gcf-7mq4-3927, MINI-cv92-ffx2-79pq, MINI-g3w5-6v85-h6x6, MINI-j27q-2g5w-66mx, MINI-mrhr-p82g-xg3r, MINI-wvgg-78x5-jfx6, MINI-xjmr-wxvh-gx2v, ROOT-APP-MAVEN-CVE-2026-22737, UBUNTU-CVE-2026-22737

## What is CVE-2026-22737?

CVE-2026-22737 is a medium-severity path traversal vulnerability in Vmware Spring Framework, published on 19 Mar 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official 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.

Weakness: CWE-22 (Improper Limitation of a Pathname to a Restricted Directory)

## Which versions are affected by CVE-2026-22737?

16 open source packages ship an affected version, including org.springframework:spring-webflux and org.springframework:spring-webmvc. It affects 1 product.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `org.springframework:spring-webflux` | Maven | From 5.3.0 to 5.3.39 | None |
| `org.springframework:spring-webflux` | Maven | From 5.3.0 to 5.3.39 | None |
| `org.springframework:spring-webflux` | Maven | From 6.0.0 to 6.1.21 | None |
| `org.springframework:spring-webflux` | Maven | From 6.0.0 to 6.1.21 | None |
| `org.springframework:spring-webflux` | Maven | From 6.2.0 | 6.2.17 |
| `org.springframework:spring-webflux` | Maven | From 6.2.0 | 6.2.17 |
| `org.springframework:spring-webflux` | Maven | From 7.0.0-M1 | 7.0.6 |
| `org.springframework:spring-webflux` | Maven | From 7.0.0-M1 | 7.0.6 |
| `org.springframework:spring-webmvc` | Maven | From 5.3.0 to 5.3.39 | None |
| `org.springframework:spring-webmvc` | Maven | From 5.3.0 to 5.3.39 | None |
| `org.springframework:spring-webmvc` | Maven | From 6.0.0 to 6.1.21 | None |
| `org.springframework:spring-webmvc` | Maven | From 6.0.0 to 6.1.21 | None |
| `org.springframework:spring-webmvc` | Maven | From 6.2.0 | 6.2.17 |
| `org.springframework:spring-webmvc` | Maven | From 6.2.0 | 6.2.17 |
| `org.springframework:spring-webmvc` | Maven | From 7.0.0-M1 | 7.0.6 |
| `org.springframework:spring-webmvc` | Maven | From 7.0.0-M1 | 7.0.6 |

Products: Vmware Spring Framework.

## How do I fix CVE-2026-22737?

Upgrade org.springframework:spring-webflux to a fixed version for your release line: 6.2.17 or 7.0.6.

## Is CVE-2026-22737 being exploited?

There is no known exploitation of CVE-2026-22737 in the wild and no public exploit code.

## Other vulnerabilities in Vmware Spring Framework

- [CVE-2026-47884](https://insights.sbomify.com/CVE-2026-47884/): Spring Framework Improper Path Limitation in XsltView (critical 9.8)
- [CVE-2026-47890](https://insights.sbomify.com/CVE-2026-47890/): Spring Framework Server Sent Event stream corruption while rendering fragments (critical 9.8)
- [CVE-2026-47891](https://insights.sbomify.com/CVE-2026-47891/): Spring Framework maxInMemorySize Bypassed in Jaxb2Decoder (critical 9.8)
- [CVE-2026-47892](https://insights.sbomify.com/CVE-2026-47892/): Spring Framework Header Predicate Bypass in WebFlux Functional Endpoints (critical 9.8)
- [CVE-2026-59313](https://insights.sbomify.com/CVE-2026-59313/): Server Sent Event stream corruption in Spring MVC functional web framework (critical 9.8)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-22737 and fix it if it is affected.

What it is: CVE-2026-22737 is a medium-severity path traversal vulnerability in Vmware Spring Framework, published on 19 Mar 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2026-22737 in the wild and no public exploit code.

Affected packages and fixed versions:
- org.springframework:spring-webflux (Maven): affected from 5.3.0 up to 5.3.39; no fix listed
- org.springframework:spring-webflux (Maven): affected from 5.3.0 up to 5.3.39; no fix listed
- org.springframework:spring-webflux (Maven): affected from 6.0.0 up to 6.1.21; no fix listed
- org.springframework:spring-webflux (Maven): affected from 6.0.0 up to 6.1.21; no fix listed
- org.springframework:spring-webflux (Maven): affected from 6.2.0; fixed in 6.2.17
- org.springframework:spring-webflux (Maven): affected from 6.2.0; fixed in 6.2.17
- org.springframework:spring-webflux (Maven): affected from 7.0.0-M1; fixed in 7.0.6
- org.springframework:spring-webflux (Maven): affected from 7.0.0-M1; fixed in 7.0.6
- org.springframework:spring-webmvc (Maven): affected from 5.3.0 up to 5.3.39; no fix listed
- org.springframework:spring-webmvc (Maven): affected from 5.3.0 up to 5.3.39; no fix listed
- org.springframework:spring-webmvc (Maven): affected from 6.0.0 up to 6.1.21; no fix listed
- org.springframework:spring-webmvc (Maven): affected from 6.0.0 up to 6.1.21; no fix listed

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-22737/ (Markdown: https://insights.sbomify.com/CVE-2026-22737/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-22737
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-22737
- OSV: https://osv.dev/vulnerability/CVE-2026-22737

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-22737/
Summaries are generated and may contain mistakes; the official description above is the record.
