GHSA-x2r2-rvhq-2mqv

Spring Security: Open Redirect via Unvalidated Post-Login Redirect URL Stored in CookieRequestCache

At a glance

Published
Updated
CVE
CVE-2026-41706
CVSS_V3
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

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 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 packages

PackageVersions
Maven · org.springframework.security:spring-security-webintroduced 7.0.0, fixed 7.0.6
Maven · org.springframework.security:spring-security-webintroduced 6.5.0, fixed 6.5.11
Maven · org.springframework.security:spring-security-webintroduced 6.3.0, last affected 6.3.16
Maven · org.springframework.security:spring-security-webintroduced 5.8.0, last affected 5.8.25
Maven · org.springframework.security:spring-security-webintroduced 0, last affected 5.7.23

References

Sources

SourceLicence
OSV.devCC-BY 4.0 — GitHub Advisory Database