Summary
Netty Vulnerable to Cache Poisoning and Information Disclosure via CORS Vary Header Overwrite
Advisory details
Summary
Netty's CorsHandler silently overwrites existing Vary headers, enabling cache poisoning and sensitive information disclosure.
Details
io.netty.handler.codec.http.cors.CorsHandler#setVaryHeader overwrites any existing Vary headers set by backend applications.
private static void setVaryHeader(final HttpResponse response) {
response.headers().set(HttpHeaderNames.VARY, HttpHeaderNames.ORIGIN);
}
Because set() replaces all existing values for the header, if a backend application sets a Vary header (such as Vary: Authorization or Vary: Cookie) to ensure that intermediate caches (like CDNs) cache responses separately per user, the CorsHandler will overwrite it with Vary: origin. This causes the caching proxy to ignore the authorization context and cache the response based solely on the URL and Origin, allowing an attacker to retrieve another user's cached sensitive data.
Impact
This is a Cache Poisoning vulnerability that leads to Information Disclosure. It impacts any Netty-based web application that uses the CorsHandler, sets its own Vary headers to manage caching of authenticated or user-specific responses (e.g., Vary: Authorization), and is deployed behind a caching proxy or CDN. The end-users of these applications are impacted, as their sensitive data may be leaked to unauthorized actors.
References
- https://github.com/advisories/GHSA-8c42-7qj2-3j46
- https://github.com/netty/netty/security/advisories/GHSA-8c42-7qj2-3j46
- https://github.com/netty/netty/pull/17213
- https://github.com/netty/netty/pull/17217
- https://github.com/netty/netty/releases/tag/netty-4.1.137.Final
- https://github.com/netty/netty/releases/tag/netty-4.2.17.Final
Related vulnerabilities
All Supply chain →- MEDIUMCVE-2026-54625
django CMS: Page cache ignores plugin-declared Vary headers (disclosure & poisoning)
- HIGHGHSA-p77j-g7h5-r2vw
GeoLens's authorization and cache-scope flaws disclose private dataset data and metadata to unauthorized users (fixed in 1.2.4)
- HIGHCVE-2026-71316
Nuxt runtime payload cache discloses another user's SSR data across users and to unauthenticated clients
- MEDIUMCVE-2026-14643
undici vulnerable to cross-user information disclosure via whitespace around equals in Cache-Control directives
- MEDIUMCVE-2026-64648
Next.js: Cache confusion of response bodies for requests with bodies
- HIGHCVE-2026-61836
Directus: Authorization-dependent response served from unsegmented cache key