Static resource cache poisoning in Spring MVC and WebFlux

LOW | APRIL 17, 2026 | CVE-2026-22741

Description

Spring MVC and WebFlux applications are vulnerable to cache poisoning when resolving static resources.

More precisely, an application can be vulnerable when all the following are true:

  • the application is using Spring MVC or Spring WebFlux
  • the application is configuring the resource chain support with caching enabled
  • the application adds support for encoded resources resolution
  • the resource cache must be empty when the attacker has access to the application

When all the conditions above are met, the attacker can send malicious requests and poison the resource cache with resources using the wrong encoding. This can cause a denial of service by breaking the front-end application for clients.

Affected Spring Products and Versions

Spring Framework:

  • 7.0.0 - 7.0.6
  • 6.2.0 - 6.2.17
  • 6.1.0 - 6.1.26
  • 5.3.47 and earlier

Mitigation

Users of affected versions should upgrade to the corresponding fixed version.
Fix versionAvailability
7.0.7OSS
6.2.18OSS
6.1.27Enterprise Support Only
5.3.48Enterprise Support Only

No further mitigation steps are necessary.

Credit

This issue was responsibly reported by Yuki Matsuhashi.

History

  • 2026-04-17: 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