Home › Vulnerabilities › Spring
Four Spring Cloud Gateway flaws: two cache issues risk exposing private responses, one enables denial of service
NVD published four Spring Cloud Gateway vulnerabilities on 2026-12-02, three rated HIGH (CVSS 7.5) and one MEDIUM (CVSS 5.9). The two most serious involve the LocalResponseCache feature, which can store and serve responses that should be private to unauthenticated callers.
What to look into
- 4 vulnerabilities in Spring Cloud Gateway: 3 high, 1 medium (CVSS up to 7.5).
- None of them is known to be exploited yet.
- Start with CVE-2026-59427 (7.5 high): 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 p… An attacker without an account can exploit this over the network, without any user action.
- 4 of 4 can be attacked over the network without logging in, 3 of them without anyone clicking anything.
Key points
- CVE-2026-59427 and CVE-2026-59426 (both HIGH) can expose cached private responses to unauthenticated callers under specific LocalResponseCache configurations.
- CVE-2026-59425 (HIGH) lets repeated unauthenticated requests exhaust sockets and channels on routes using JsonToGrpc.
- CVE-2026-59428 (MEDIUM) concerns cross-origin WebSocket handshakes that the gateway accepted by default; it now rejects them with 403 unless origins are allowed.
- The records state the conditions for each flaw, but no fixed versions or detection steps.
The batch covers four flaws in Spring Cloud Gateway, published by NVD on 2026-12-02. They fall into three groups: caching flaws, a resource-exhaustion flaw, and a cross-origin WebSocket flaw.
Caching flaws
Two of the three HIGH-severity records (CVSS 7.5) concern LocalResponseCache. Both can cause a response meant for one caller to be served to another.
CVE-2026-59427 is a parsing error. LocalResponseCache checks each complete Cache-Control header value against the strings private and no-store, rather than parsing its comma-separated directives. As a result, a protected response carrying a combined value, such as private, no-store, may still be cached. The record says an unauthenticated attacker could then read content cached for an authenticated user. This applies only when LocalResponseCache is enabled on a route whose upstream returns private responses with a multi-directive Cache-Control header and does not distinguish callers with a Vary header.
CVE-2026-59426 is a key-design issue. The global LocalResponseCache filter uses one cache for all routes that lack a route-level cache filter, and the cache key omits the route itself. If routes match the same URI but differ only by predicates outside the key, a response cached for a restricted route may reach a caller who matches only a public route. This applies only when the global filter is enabled and at least two such routes overlap.
Denial of service
CVE-2026-59425 (HIGH, CVSS 7.5) affects the JsonToGrpc filter, which creates a new Netty-backed gRPC ManagedChannel for every matching request and never shuts it down or reuses it. According to the record, an unauthenticated attacker reaching such a route can send repeated requests so the gateway keeps sockets and channel resources open, causing denial of service.
Cross-origin WebSocket handshakes
CVE-2026-59428 (MEDIUM, CVSS 5.9) concerns WebsocketRoutingFilter, which accepts WebSocket handshakes without checking the Origin header. The record says a malicious web page could cause a victim's browser to open a connection through the gateway, using automatically attached credentials such as cookies. Spring Cloud Gateway now rejects cross-origin handshakes by default with 403 Forbidden. Specific origins can be allowed through spring.cloud.gateway.server.webflux.websocket.allowed-origins and spring.cloud.gateway.server.webflux.websocket.allowed-origin-patterns, or spring.cloud.gateway.websocket. on the 4.x and 3.1.x lines.
Scope and fixes
The sources do not name fixed versions for any of these four issues, and they give no detection method. Each flaw applies only under specific configurations, so administrators should first check whether those features are in use.
What to do
- Check whether LocalResponseCache (global or route-level) is enabled, and review routes that use it for private upstream responses and overlapping URIs.
- Check whether any route uses the JsonToGrpc filter or a ws or wss URI.
- For WebSocket routes, configure spring.cloud.gateway.server.webflux.websocket.allowed-origins or allowed-origin-patterns for legitimate origins (or spring.cloud.gateway.websocket. on 4.x and 3.1.x).
The 4 vulnerabilities
- CVE-2026-59427 7.5 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…
- CVE-2026-59426 7.5 Spring Cloud Gateway's global LocalResponseCache filter uses a single cache shared by every route that does not configure the route-level LocalResponseCache filter. The cache key is built from the request URI, the Authorization header, the…
- CVE-2026-59425 7.5 Spring Cloud Gateway's JsonToGrpc filter creates a new Netty-backed gRPC ManagedChannel for every HTTP request that matches a route using the filter. The channel is never shut down or reused, so its socket and channel resources remain open…
- CVE-2026-59428 5.9 Spring Cloud Gateway's WebsocketRoutingFilter accepts WebSocket handshakes without checking the Origin header. Browsers do not apply the same-origin policy or CORS to WebSocket handshakes. They only send the Origin header and rely on the s…
Frequently asked questions
How many Spring Cloud Gateway vulnerabilities were published on December 2, 2026?
4 vulnerabilities: 3 high, 1 medium, with CVSS scores up to 7.5.
Are any of them being exploited?
None of them is in CISA's Known Exploited Vulnerabilities catalog yet.
Which one should be fixed first?
CVE-2026-59427 (CVSS 7.5): 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 p…