HIGH

CVE-2026-59427

Spring Cloud Gateway LocalResponseCache Stores private and no-store Responses, Leaking Authenticated Content

Description

Spring Cloud Gateway's LocalResponseCache decides whether an upstream response may be stored by comparing each complete Cache-Control header value with the strings private and no-store, instead of parsing the comma-separated directives. A protected upstream response with a combined value, such as private, no-store or the Spring Security default no-cache, no-store, max-age=0, must-revalidate, is therefore stored in the route cache even though the upstream prohibited it. A later request can then be served that cached response without reaching the upstream, so an unauthenticated attacker can read content that was meant for an authenticated user.

Applications are affected only if LocalResponseCache is enabled on a route that forwards to an upstream that returns user-specific or otherwise private responses with a Cache-Control header containing more than one directive, and the upstream does not distinguish callers with a Vary header.

Affected Maven artifacts (1)

ArtifactAffected versionsFixed in
org.springframework.cloud » spring-cloud-gateway-server
>= 4.0.0, <= 4.2.10>= 4.3.0, <= 4.3.6>= 5.0.0, < 5.0.5
5.0.5

Blast radius

1affected artifacts
40affected versions
53dependent artifacts (est.)
497dependent versions

60% of the dependent artifacts (32) still pull an affected version in their latest release.

DepthDependent versions
Direct
148
2 hops
241
3 hops
52
4 hops
56

Most used dependents

Computed from the dependency graph of build 20261127.1117 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.