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

MEDIUM | MARCH 19, 2026 | CVE-2026-22737

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.

The application must have a mapping for "/**" that results in view rendering, and where the view name is not explicitly specified.

Affected Spring Products and Versions

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
  • Older, unsupported versions are also affected.

Mitigation

Users of affected versions should upgrade to the corresponding fixed version.

Affected version(s) Fix version Availability
7.0.x 7.0.6 OSS
6.2.x 6.2.17 OSS
6.1.x 6.1.26 Commercial
5.3.x 5.3.47 Commercial

No further mitigation steps are necessary.

Credit

This vulnerability was discovered and responsibly reported by Gyu-hyeok Lee (g2h).

References

History

  • 2026-03-19: Initial vulnerability report published.

Get ahead

VMware offers training and certification to turbo-charge your progress.

Learn more

Get support

Tanzu Spring offers support and binaries for OpenJDK™, Spring, and Apache Tomcat® in one simple subscription.

Learn more

Upcoming events

Check out all the upcoming events in the Spring community.

View all