Use of Cache Containing Sensitive Information Affecting org.springframework.cloud:spring-cloud-gateway-server-webflux package, versions [,5.0.5)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JAVA-ORGSPRINGFRAMEWORKCLOUD-22732853
  • published22 Nov 2026
  • disclosed19 Nov 2026
  • credithusss

Introduced: 19 Nov 2026

NewCVE-2026-59426  (opens in a new tab)
CWE-524  (opens in a new tab)

How to fix?

Upgrade org.springframework.cloud:spring-cloud-gateway-server-webflux to version 5.0.5 or higher.

Overview

Affected versions of this package are vulnerable to Use of Cache Containing Sensitive Information in the CacheKeyGenerator class, which builds the global LocalResponseCache key from the request URI, Authorization header, cookies, and Vary headers but not the matched route. When several routes share a request URI but are selected by different predicates and forward to different upstreams, a response cached for one route is returned to a caller that matches only another. This affects applications that enable the global LocalResponseCache and define multiple routes distinguished by predicate rather than URI.

Workaround

This vulnerability can be avoided by disabling the global cache with spring.cloud.gateway.server.webflux.global-filter.local-response-cache.enabled=false and applying the route-level LocalResponseCache filter on each route that needs caching, since each route-level filter uses its own cache.

CVSS Base Scores

version 4.0
version 3.1