Get ahead
VMware offers training and certification to turbo-charge your progress.
Learn moreSpring 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:
CookieRequestCache (Servlet) or CookieServerRequestCache (WebFlux) as its RequestCache implementation.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.
Spring Security:
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.
To report a security vulnerability for a project within the Spring portfolio, see the Security Policy