CVE-2026-41841: Spring Framework Information Disclosure via Static Resource Cache in Spring MVC and WebFlux

MEDIUM | JUNE 08, 2026 | CVE-2026-41841

Description

Spring MVC and WebFlux applications are vulnerable to Information Disclosure attacks when resolving static resources.

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

  • The application uses Spring MVC or Spring WebFlux.
  • The application has configured several resource handlers, using different resource locations.
  • At least one of the resource handlers requires authentication to access resources.
  • The application has configured a shared cache for these configurations.

When all the conditions above are met, an attacker can get access to a protected resource if a publicly available resource with the same name was resolved first and cached.

Affected Spring Products and Versions

Spring Framework:

  • 7.0.0 - 7.0.7
  • 6.2.0 - 6.2.18
  • 6.1.0 - 6.1.27
  • 5.3.0 - 5.3.48

Versions that are no longer supported 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.8 OSS
7.0.7.1 Commercial
6.2.x 6.2.19 OSS
6.2.18.1 Commercial
6.1.x 6.1.28 Commercial
5.3.x 5.3.49 Commercial

No further mitigation steps are necessary.

Credit

This issue was discovered internally.

References

History

  • 2026-06-08: 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