CVE-2026-41706: Open Redirect When Using CookieRequestCache

MEDIUM | JUNE 09, 2026 | CVE-2026-41706

Description

Spring Security's CookieRequestCache and CookieServerRequestCache store the pre-authentication request URL in a browser cookie so that users can be redirected back to their intended destination after a successful login. In affected versions, the full absolute URL (including scheme, host, and port) is stored in the cookie and is used without validation as the post-login redirect target.

An application can be vulnerable when all the following conditions are met:

  • The application uses CookieRequestCache (Servlet) or CookieServerRequestCache (WebFlux) as its RequestCache implementation.
  • An attacker is able to influence the value of the REDIRECT_URI cookie, for example through cookie injection via a related subdomain, an HTTP response splitting attack, or a protocol downgrade from HTTPS to HTTP.

When all the conditions above are met, an attacker may be able to cause an authenticated user to be redirected to an attacker-controlled URL immediately after a successful login, enabling phishing attacks.

Affected Spring Products and Versions

Spring Security:

  • 5.7.0 - 5.7.23
  • 5.8.0 - 5.8.25
  • 6.3.0 - 6.3.16
  • 6.4.0 - 6.4.16
  • 6.5.0 - 6.5.10
  • 7.0.0 - 7.0.5
  • Older, unsupported versions are also affected.

Mitigation

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

Affected version(s) Fix version Availability
5.7.x 5.7.24 Enterprise Support Only
5.8.x 5.8.26 Enterprise Support Only
6.3.x 6.3.17 Enterprise Support Only
6.4.x 6.4.17 Enterprise Support Only
6.5.x 6.5.11 OSS
7.0.x 7.0.6 OSS

No further mitigation steps are necessary.

References

History

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