CVE-2026-41706: Open Redirect When Using CookieRequestCache
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 is stored in the cookie and is used without validation as the post-login redirect target.
Affected versions: Spring Security 5.7.0 through 5.7.23; 5.8.0 through 5.8.25; 6.3.0 through 6.3.16; 6.4.0 through 6.4.16; 6.5.0 through 6.5.10; 7.0.0 through 7.0.5.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2026-41706?
CVE-2026-41706 has a medium severity rating of 6.1.
What is the risk associated with CVE-2026-41706?
CVE-2026-41706 has a risk score of 38.
How do I fix CVE-2026-41706?
To fix CVE-2026-41706, you should upgrade to the patched version of Spring Security which addresses this vulnerability.
What does CVE-2026-41706 affect?
CVE-2026-41706 affects the CookieRequestCache and CookieServerRequestCache components of Spring Security.
What exploitation vector is associated with CVE-2026-41706?
CVE-2026-41706 allows for open redirection due to the storage of absolute URLs in cookies.