Skip to content
OpenAdvisories
Medium · 5.9 CVE-2026-22737 EUVD-2026-13406GHSA-4773-3jfm-qmx3

Spring Framework Improper Path Limitation with Script View Templates

Published Mar 19, 2026 · Updated Mar 20, 2026 · Assigned by vmware

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 products

VendorProductAffectedFixed
Spring 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 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 libspring-java No fix yet —
Debian 13 libspring-java No fix yet —
Debian 12 libspring-java No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 libspring-java No fix yet —
Ubuntu 26.04 LTS libspring-java No fix yet —
Ubuntu 25.10 libspring-java No fix yet —
Show 6 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 24.04 LTS libspring-java No fix yet —
Ubuntu Pro 22.04 LTS libspring-java No fix yet —
Ubuntu Pro 20.04 LTS libspring-java No fix yet —
Ubuntu Pro 18.04 LTS libspring-java No fix yet —
Ubuntu Pro 16.04 LTS libspring-java No fix yet —
Ubuntu Pro 14.04 LTS libspring-java No fix yet —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling apache-nifi-registry 2.8.0-r3 —
Wolfi rolling thingsboard-tb-node +1 4.3.1.1-r0 —

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.springframework:spring-webflux >= 7.0.0-M1, < 7.0.6 7.0.6 GHSA-4773-3jfm-qmx3
Maven org.springframework:spring-webflux >= 6.2.0, < 6.2.17 6.2.17 GHSA-4773-3jfm-qmx3
Maven org.springframework:spring-webflux >= 6.0.0, <= 6.1.21 — GHSA-4773-3jfm-qmx3
Maven org.springframework:spring-webflux >= 5.3.0, <= 5.3.39 — GHSA-4773-3jfm-qmx3
Maven org.springframework:spring-webmvc >= 7.0.0-M1, < 7.0.6 7.0.6 GHSA-4773-3jfm-qmx3
Maven org.springframework:spring-webmvc >= 6.2.0, < 6.2.17 6.2.17 GHSA-4773-3jfm-qmx3
Maven org.springframework:spring-webmvc >= 6.0.0, <= 6.1.21 — GHSA-4773-3jfm-qmx3
Maven org.springframework:spring-webmvc >= 5.3.0, <= 5.3.39 — GHSA-4773-3jfm-qmx3

Advisories 3

References