CVE-2026-59427: Spring Cloud Gateway LocalResponseCache Stores private and no-store Responses, Leaking Authenticated Content
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 Software
Event History
Frequently Asked Questions
Which deployments are actually exposed?
A deployment is affected only when LocalResponseCache is enabled on a route, that route forwards to an upstream returning user-specific or private content, and the upstream uses a multi-directive Cache-Control header. The upstream also must not separate callers using a Vary header.
What does an attacker need to exploit this?
An attacker can make a later unauthenticated request after an authenticated user's protected response has been cached. No authentication, user interaction, or upstream access is required for that later request.
How can I determine whether a route may be leaking content?
Review routes with LocalResponseCache enabled and inspect upstream Cache-Control responses. Routes are at risk when private responses use combined directives such as "private, no-store" or "no-cache, no-store, max-age=0, must-revalidate" and do not use Vary to distinguish callers.
What can be done if patching is not immediately possible?
Disable LocalResponseCache on routes that proxy authenticated, user-specific, or otherwise private upstream content. This prevents those upstream responses from being served from the route cache.