Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.springframework/spring-webmvc
  4. ›
  5. CVE-2026-22737

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

March 20, 2026

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

  • github.com/advisories/GHSA-4773-3jfm-qmx3
  • github.com/spring-projects/spring-framework
  • nvd.nist.gov/vuln/detail/CVE-2026-22737
  • spring.io/security/cve-2026-22737

Code Behaviors & Features

Detect and mitigate CVE-2026-22737 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 5.3.0 up to 5.3.39, all versions starting from 6.0.0 up to 6.1.21, all versions starting from 6.2.0 before 6.2.17, all versions starting from 7.0.0-M1 before 7.0.6

Fixed versions

  • 7.0.6
  • 6.2.17

Solution

Upgrade to versions 6.2.17, 7.0.6 or above.

Impact 5.9 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

maven/org.springframework/spring-webmvc/CVE-2026-22737.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 24 Mar 2026 12:17:49 +0000.