GHSA-x2r2-rvhq-2mqv
Spring Security: Open Redirect via Unvalidated Post-Login Redirect URL Stored in CookieRequestCache
Quick fix
GHSA-x2r2-rvhq-2mqv — org.springframework.security:spring-security-web: upgrade to the fixed version with the command below.
# pom.xml: bump <version>7.0.6</version> for org.springframework.security:spring-security-web Details
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.
Are you affected?
Enter the version of the package you're using.
Affected packages
7.0.0 Fixed in: 7.0.6 # pom.xml: bump <version>7.0.6</version> for org.springframework.security:spring-security-web 6.5.0 Fixed in: 6.5.11 # pom.xml: bump <version>6.5.11</version> for org.springframework.security:spring-security-web 6.3.0 No fixed version published yet for org.springframework.security:spring-security-web (maven). Pin to a known-safe version or switch to an alternative.
5.8.0 No fixed version published yet for org.springframework.security:spring-security-web (maven). Pin to a known-safe version or switch to an alternative.
0 No fixed version published yet for org.springframework.security:spring-security-web (maven). Pin to a known-safe version or switch to an alternative.
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]