CVE-2026-2229
HighCVSS 7.5Exploitation Probability (EPSS)
Elevated risk65th percentile - higher than 65% of all known CVEs
Summary
The undici WebSocket client is vulnerable to a denial-of-service attack due to improper validation of the server_max_window_bits parameter in the permessage-deflate extension. A malicious server can send an out-of-range value (outside 8-15), causing an unhandled RangeError exception and immediate Node.js process termination.
Risk Assessment
A malicious WebSocket server can remotely crash applications using the undici client, leading to service disruption and potential loss of availability.
Recommendation
Immediately update the undici library to a version that fixes the validation of the server_max_window_bits parameter and adds exception handling in createInflateRaw().
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)
ImpactThe undici WebSocket client is vulnerable to a denial-of-service attack due to improper validation of the server_max_window_bits parameter in the permessage-deflate extension. When a WebSocket client connects to a server, it automatically advertises support for permessage-deflate compression. A malicious server can respond with an out-of-range server_max_window_bits value (outside zlib's valid range of 8-15). When the server subsequently sends a compressed frame, the client attempts to create a zlib InflateRaw instance with the invalid windowBits value, causing a synchronous RangeError exception that is not caught, resulting in immediate process termination. The vulnerability exists because: * The isValidClientWindowBits() function only validates that the value contains ASCII digits, not that it falls within the valid range 8-15 * The createInflateRaw() call is not wrapped in a try-catch block * The resulting exception propagates up through the call stack and crashes the Node.js process
Vulnerability data from NVD (NIST) · CISA KEV · EPSS

