CVE-2026-9678
MediumCVSS 5.9Exploitation Probability (EPSS)
Low risk35th percentile - higher than 35% of all known CVEs
Summary
A vulnerability in Undici allows incorrect classification of responses as cacheable when Cache-Control headers contain whitespace. This can lead to authenticated user data being served to another user from the cache.
Risk Assessment
Organizations may be exposed to the disclosure of authenticated user data, posing a serious threat to privacy and data security.
Recommendation
It is recommended to upgrade to undici v7.28.0 or v8.5.0. If an upgrade is not possible, disable shared-cache mode for traffic that includes Authorization headers.
Other vulnerabilities in Undici
See all- CVE-2026-135194Medium
In undici (HTTP client for Node.js) versions 7.29.1–7.30.3 and 8.10.2–8.14.0, when a dispatcher composes the dump and retry interceptors and the application discards a response body with the dump method, a malicious server announcing a larger content-length than it sends can cause the abort reason to be lost. The default retry function then throws, surfacing as an unhandled error event that exits the Node.js process. A remote, unauthenticated server can trigger denial of service with a single response.
- CVE-2026-133890High
In undici (HTTP client for Node.js) versions 7.30.1–7.30.3 and 8.12.2–8.14.0, the fix for earlier cross-origin redirect cache poisoning issues is incomplete. A path beginning with two slashes is misread as a protocol-relative URL, so a redirect to an attacker-controlled origin can be recorded as a hop to the trusted origin and bypass the every-hop origin check. An attacker controlling a redirect target can have their response cached under the trusted URL and served to later callers from the shared cache.
- CVE-2026-132045Low
In undici (HTTP client for Node.js) versions 7.29.0–7.30.3 and 8.9.0–8.14.0, the RFC 9111 cache interceptor parses Cache-Control and Vary response headers with a regular expression that backtracks quadratically. A malicious origin returning a header value with a long run of internal whitespace forces quadratic CPU time and synchronously blocks the Node.js event loop for about 100–200 ms at the default header limit, and for several seconds when the limit is raised. The default fetch and request paths are not affected because they trim headers with a linear scanner.
- CVE-2026-129981Medium
In undici (HTTP client for Node.js) versions 7.17.0–7.30.3 and 8.0.0–8.14.0, when the cache interceptor uses a shared cache and serves a response within its stale-while-revalidate window, it revalidates the stored response in the background. If that background 304 Not Modified carries an ETag differing from the cached representation, undici reuses the stored body and binds it to the new validator instead of discarding it. A remote origin can thus make the shared cache keep serving a stale representation to later callers.
- CVE-2026-144348Low
undici is an HTTP client for Node.js. In versions 5.16.0 through 6.29.1, 7.0.0 through 7.30.3, and 8.0.0 through 8.14.0, ProxyAgent adds the proxy credentials (from the auth or token options, or the username and password in the proxy URL) as a proxy-authorization entry directly on the headers object passed in its options instead of on a copy, so every other agent holding that same object sends those credentials to its own proxy. EnvHttpProxyAgent, available since 6.14.0, passes the same headers object to the agents it creates for HTTP_PROXY and HTTPS_PROXY, so when an application sets the headers option and the two variables name different proxies, one proxy receives the credentials meant for the other. The same happens when an application reuses one headers object across several ProxyAgent instances, letting the operator of one proxy capture credentials intended for another. Applications that do not set the headers option are not affected. The issue is fixed in undici 6.29.2, 7.30.4, and 8.14.1.
- CVE-2026-141997High
undici, an HTTP client for Node.js, in versions 6.26.0 through 6.29.1, 7.26.0 through 7.30.3, and 8.3.0 through 8.4.0 contains an assertion failure when a server sends a large response and closes the connection during backpressure. This causes an uncaught AssertionError and terminates the Node.js process via a malicious or compromised server.
- CVE-2026-141996High
undici in versions 6.8.0 through 6.29.1, 7.0.0 through 7.30.3, and 8.0.0 through 8.14.0 has a flaw in the redirect interceptor: on a cross-origin redirect it keeps the TLS servername of the first request, so the target's certificate is validated against the first host's name. A party with a valid certificate for the first host can impersonate the target and intercept or modify the redirected request and response.
- CVE-2026-139849High
undici in versions 6.14.0 through 6.29.1, 7.0.0 through 7.30.3, and 8.0.0 through 8.14.0 has a flaw in EnvHttpProxyAgent: target TLS options are applied on only one route (direct or proxied), so ca, checkServerIdentity, servername, client certificate, and rejectUnauthorized settings are silently dropped. This can let an attacker with a publicly trusted certificate intercept connections the application expected to pin.
- CVE-2026-139839Medium
undici, an HTTP client for Node.js, in versions 7.17.0 through 7.30.3 and 8.0.0 through 8.14.0 has an issue in the shared cache interceptor: when a stale entry is served within its stale-while-revalidate window and revalidated in the background, a 304 Not Modified response that adds a Vary field the stored response did not have is not treated as a change of representation. undici re-stores the old, unvaried body under the background caller's value of that header and marks it fresh, so later callers with that header value are served a body generated for a different request, possibly for another user or tenant, without the origin being contacted.
- CVE-2026-139829High
undici in versions 7.0.0 through 7.30.3 and 8.0.0 through 8.14.0 has a flaw when using the stream API with a Node.js Readable request body over HTTP/2: a server that starts a response and destroys the HTTP/2 session during upload causes the error path to be invoked twice, leading to an uncaught TypeError and Node.js process exit. The attacker only needs to control the HTTP/2 server's behavior.
Original NVD description (English source)
Impact: Undici's cache interceptor incorrectly classifies some responses as cacheable when the upstream Cache-Control header uses whitespace-padded qualified private or no-cache field names such as private=" authorization" or no-cache="\tauthorization". The parser preserves the surrounding whitespace, so later comparisons against the literal authorization field name fail and the response is stored. In shared-cache mode, this allows a response containing one user's authenticated data to be served from cache to a subsequent caller, including an unauthenticated caller, when both requests resolve to the same cache key. Affected applications are those that explicitly enable the cache interceptor (interceptors.cache()) in shared mode, forward Authorization headers upstream, and receive cacheable responses with non-canonical qualified private or no-cache directives. Patches: Upgrade to undici v7.28.0 or v8.5.0. Workarounds: If upgrade is not immediately possible, disable shared-cache mode for traffic that includes Authorization headers, avoid caching responses to authenticated requests, or add Vary: Authorization upstream.
Vulnerability data from NVD (NIST) · CISA KEV · EPSS

