undici vulnerabilities
60 known CVE vulnerabilities in undici, translated and rated.
- CVE-2026-11525Low
A vulnerability in undici allows the acceptance of incorrect SameSite attribute values in the Set-Cookie header, potentially leading to a weakening of the cookie's SameSite policy. Instead of the required case-insensitive exact match, values containing 'Strict', 'Lax', or 'None' as substrings are accepted.
- CVE-2026-12151High
The undici WebSocket client does not limit the number of message fragments, allowing a malicious server to send many small continuation frames. This causes unbounded memory growth and denial of service (DoS).
- CVE-2026-2581Medium
In Undici, when interceptors.deduplicate() is enabled, response data for deduplicated requests can accumulate in memory. An attacker can exploit this with large/chunked responses and concurrent identical requests, causing high memory usage and potential OOM process termination.
- CVE-2026-2229High
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.
- CVE-2026-1528High
A vulnerability in the undici library allows a server to send a WebSocket frame with a 64-bit length field containing an extremely large value. The ByteParser overflows internal math, enters an invalid state, and throws a fatal TypeError that terminates the process.
- CVE-2026-1527Medium
When an application passes user-controlled input to the upgrade option of client.request(), an attacker can inject CRLF sequences (\r\n) to inject arbitrary HTTP headers or terminate the HTTP request prematurely and smuggle raw data to non-HTTP services. undici writes the upgrade value directly to the socket without validating for invalid header characters.
- CVE-2026-1526High
The undici WebSocket client is vulnerable to a denial-of-service attack via unbounded memory consumption during permessage-deflate decompression. A malicious WebSocket server can send a small compressed frame (a 'decompression bomb') that expands to an extremely large size in memory, causing the Node.js process to exhaust available memory and crash or become unresponsive.
- CVE-2026-1525Medium
Undici allows duplicate HTTP Content-Length headers when provided in an array with case-variant names (e.g., Content-Length and content-length). This produces malformed HTTP/1.1 requests with multiple conflicting Content-Length values.
- CVE-2026-22036Medium
Undici is an HTTP/1.1 client for Node.js. Prior to 7.18.0 and 6.23.0, the number of links in the decompression chain is unbounded and the default maxHeaderSize allows a malicious server to insert thousands compression steps leading to high CPU usage and excessive memory allocation.
- CVE-2025-47279Low
Undici, an HTTP/1.1 client for Node.js, prior to versions 5.29.0, 6.21.2, and 7.5.0 is vulnerable to a memory leak. If an attacker sets up a server with an invalid certificate and can force the application to call the webhook repeatedly, they can cause a memory leak. This has been patched in versions 5.29.0, 6.21.2, and 7.5.0.
Vulnerability data from NVD (NIST) · CISA KEV · EPSS

