CVE-2026-22741: 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.0 - 5.3.47

Older, unsupported versions are also vulnerable.

Mitigation

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

Affected version(s) Fix version Availability
7.0.x 7.0.7 OSS
6.2.x 6.2.18 OSS
6.1.x 6.1.27 Commercial
5.3.x 5.3.48 Commercial

No further mitigation steps are necessary.

Credit

This issue was responsibly reported by Yuki Matsuhashi.

References

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