---
id: CVE-2026-41706
title: >-
  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
summary: >-
  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 versi…
severity: medium
cvss: 6.1
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N'
cwe:
  - CWE-601
vendor: vmware
product: spring_security
affected:
  - spring_security < 5.7.24
  - 'spring_security >= 5.8.0, < 5.8.26'
  - 'spring_security >= 6.3.0, < 6.3.17'
  - 'spring_security >= 6.4.0, < 6.4.17'
  - 'spring_security >= 6.5.0, < 6.5.10.2'
  - 'spring_security >= 7.0.0, < 7.0.5.1'
patched:
  - spring_security 7.0.5.1
published: '2026-06-10'
updated: '2026-07-17'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-41706'
references:
  - url: 'https://spring.io/security/cve-2026-41706'
    label: security@vmware.com
tags:
  - nvd
epss: 0.00211
epssPercentile: 0.11648
ingestedAt: '2026-07-17T21:16:24.129Z'
---

## Overview

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

- `spring_security < 5.7.24`
- `spring_security >= 5.8.0, < 5.8.26`
- `spring_security >= 6.3.0, < 6.3.17`
- `spring_security >= 6.4.0, < 6.4.17`
- `spring_security >= 6.5.0, < 6.5.10.2`
- `spring_security >= 7.0.0, < 7.0.5.1`

## Remediation

Upgrade past the affected range:

- `spring_security 7.0.5.1`
