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.
Published: 2026-06-09
Score: 6.1 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Spring Security’s CookieRequestCache stores the full absolute URL the user attempted to access before authentication in a cookie and then uses that value to redirect the user after login without any validation. This flaw allows an attacker to craft a malicious link that, when clicked, redirects the user to a target site of the attacker’s choosing immediately after they log in, potentially facilitating phishing or credential theft attacks. The weakness corresponds to CWE‑601, an input validation flaw that permits construction of disallowed URLs.

Affected Systems

The vulnerability affects Spring Security in several releases: versions 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, and 7.0.0 through 7.0.5. All deployed instances of the affected Spring applications that rely on CookieRequestCache for redirecting after login are susceptible.

Risk and Exploitability

The CVSS score of 6.1 reflects a medium severity open redirect. The EPSS score is not available, so the historical exploitation probability cannot be inferred. The vulnerability is not listed in CISA’s KEV catalog, indicating no confirmed public exploits as of the last update. Attackers can exploit the flaw by instructing users to visit a specially crafted URL that triggers the redirect after authentication, making a noticeable attack vector that does not require privileged access or advanced technical skill.

Generated by OpenCVE AI on June 10, 2026 at 01:27 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Spring Security to a version that has removed the unvalidated redirect functionality (any release above 7.0.5).
  • If an upgrade is not immediately possible, modify the application to disable CookieRequestCache or replace it with a validated redirect strategy. This can be done by configuring the security filter chain to enforce whitelist validation of target URLs.
  • Incorporate application‑level checks for redirect URLs prior to processing, ensuring that only internal or approved external destinations are allowed.

Generated by OpenCVE AI on June 10, 2026 at 01:27 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

References
History

Wed, 10 Jun 2026 03:00:00 +0000

Type Values Removed Values Added
First Time appeared Spring
Spring spring Security
Vendors & Products Spring
Spring spring Security

Wed, 10 Jun 2026 00:00:00 +0000

Type Values Removed Values Added
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.
Title Open Redirect When Using CookieRequestCache
Weaknesses CWE-601
References
Metrics cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N'}


Subscriptions

Spring Spring Security
cve-icon MITRE

Status: PUBLISHED

Assigner: vmware

Published:

Updated: 2026-06-09T23:47:58.903Z

Reserved: 2026-04-22T06:21:34.489Z

Link: CVE-2026-41706

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-06-10T00:16:51.223

Modified: 2026-06-10T00:16:51.223

Link: CVE-2026-41706

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-06-10T02:45:15Z

Weaknesses