GitHub Advisoryadvisory · Maven
GHSA-x2r2-rvhq-2mqv Spring Security: Open Redirect via Unvalidated Post-Login Redirect URL Stored in CookieRequestCache
MEDIUM
Official page ↗
- Aliases
- CVE-2026-41706
- Ecosystem
- Maven
- Packages
- org.springframework.security:spring-security-web
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Weaknesses
- CWE-601
- Reviewed
- 2026-08-12
Affected packages
• Maven org.springframework.security:spring-security-web: >= 7.0.0, < 7.0.6 → fixed in 7.0.6
• Maven org.springframework.security:spring-security-web: >= 6.5.0, < 6.5.11 → fixed in 6.5.11
• Maven org.springframework.security:spring-security-web: >= 6.3.0, <= 6.3.16 (no fix yet)
• Maven org.springframework.security:spring-security-web: >= 5.8.0, <= 5.8.25 (no fix yet)
• Maven org.springframework.security:spring-security-web: <= 5.7.23 (no fix yet)
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.
Related
Alias · CVE (1)
- CVE-2026-41706 Spring Security's CookieRequestCache and CookieServerRequestCache store the pre-authentication request URL in a browser cookie so that… vulnerability
Weakness · CWE (1)
- CWE-601 URL Redirection to Untrusted Site weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-41706 advisory
- https://github.com/spring-projects/spring-security package
- https://github.com/spring-projects/spring-security/releases/tag/6.5.11 web
- https://github.com/spring-projects/spring-security/releases/tag/7.0.6 web
- https://spring.io/security/cve-2026-41706 web