Node undici HTTP client library versions >=7.15.0 <7.29.1 and >=8.0.0 <8.10.2 are vulnerable to a denial of service (DoS) attack due to unbounded decompression of HTTP response bodies. The decompress interceptor decompresses responses based on the Content-Encoding header from untrusted sources without limiting the decompressed size, allowing a small compressed payload to expand massively in memory and crash or hang the Node.js process. This vulnerability is fixed in versions 7.29.1 and 8.10.2 by adding a maximum size limit on decompressed output.
Node undici versions 7.0.0 through before 7.29.1 and 8.0.0 through before 8.10.2 contain a vulnerability in the shared cache interceptor where Set-Cookie headers are cached and served to other users. This behavior can lead to cross-user cookie disclosure and allows untrusted upstream sources to inject cookies into cached responses, violating RFC 6265. The vulnerability does not affect private cache mode. The issue is fixed in versions 7.29.1 and 8.10.2.
The undici HTTP client library's dump interceptor has a vulnerability where it prematurely ends responses with oversized chunked bodies if no Content-Length is declared. This causes the application to receive a misleading 200 status with a truncated or empty response body. The issue affects versions 7.1.0 up to but not including 7.29.1, and 8.0.0 up to but not including 8.10.2. The vulnerability has a medium severity rating and does not impact confidentiality or availability but can cause integrity issues due to truncated data. Fixed versions 7.29.1 and 8.10.2 address this problem.
Node.js undici library's BalancedPool constructor improperly handles TLS options by deep cloning its options via JSON serialization, which drops function-valued TLS options such as custom checkServerIdentity callbacks. This leads to TLS certificate validation bypass when using BalancedPool with such custom callbacks, allowing acceptance of TLS peers that should be rejected. Other undici components like Client, Pool, and Agent are not affected. The issue is fixed in versions 7.29.1 and 8.10.2.
The Node.js HTTP client library undici has a cache interceptor vulnerability where unsafe HTTP methods such as POST, PUT, PATCH, and DELETE are improperly cached due to a logic flaw. This can cause state-changing requests to be bypassed by serving cached responses, potentially leading to inconsistent application state. The issue affects undici versions from 7.0.0 up to but not including 7.29.1 and from 8.0.0 up to but not including 8.10.2. Fixed versions 7.29.1 and 8.10.2 prevent caching unsafe method responses while still invalidating cache entries on successful unsafe requests. No workarounds are provided.
A denial of service vulnerability exists in the undici library's WebSocketStream API for Node.js. When a remote peer closes the TCP connection abruptly without performing a proper WebSocket close handshake, the client process crashes. This is due to an unhandled promise rejection triggered by aborting a writable stream while a writer lock is held. The vulnerability affects undici versions from 7.0.0 up to but not including 7.29.1, and from 8.0.0 up to but not including 8.10.2. Patches are available in versions 7.29.1 and 8.10.2. No workaround is currently available.
A vulnerability in the undici WebSocket client for Node.js causes the process to crash when processing a specially crafted permessage-deflate compressed message that exceeds the decompressed payload size limit and contains a malformed DEFLATE block. This triggers an unhandled error in the internal zlib InflateRaw stream, leading to process termination. The issue affects undici versions 6.25.0 through before 6.28.1, 7.28.0 through before 7.29.1, and 8.1.0 through before 8.10.2. No workaround is available, but patched versions have been released.
A vulnerability in the undici HTTP client library versions 8.10.0 and 8.10.1 allows cross-origin cache poisoning due to missing origin isolation in cache and deduplication interceptors. This flaw causes cache keys to omit the destination origin, enabling an attacker controlling one origin's response to poison the cache for another trusted origin. The issue does not affect the default Agent-based dispatch path. A patch is available in version 8.10.2.
Red Hat has released a security advisory addressing multiple vulnerabilities in Red Hat Hardened Images RPMs, including updates to nodejs24 packages for aarch64 and x86_64 architectures. The advisory covers several CVEs such as CVE-2026-18149 and others. A patch is available to remediate these issues. The update includes bug fixes and enhancements to various nodejs24-related RPMs. The vulnerabilities are rated with high severity.
undici versions prior to 6.28.0, 7.29.0, and 8.9.0 are vulnerable to a CRLF injection via the blob-like body 'type' property. This vulnerability allows an attacker to inject CRLF sequences into HTTP headers, potentially enabling HTTP header injection and request smuggling. The flaw occurs because the 'type' property of a duck-typed blob-like object is inserted into headers without validation. Native Blob objects are not affected as they sanitize the 'type' property. The issue is fixed in undici versions 6.28.0, 7.29.0, and 8.9.0.
Undici versions prior to 7.29.0 and 8.9.0 have a vulnerability in their cache interceptor where optional whitespace around the '=' in qualified Cache-Control directives (no-cache or private) causes improper parsing. This can lead to authenticated user data being cached and served to other users in shared-cache mode, potentially exposing sensitive information. The issue affects applications using shared-cache mode with Authorization headers and cacheable responses containing such directives. Upgrading to undici v7.29.0 or v8.9.0 mitigates this vulnerability.
Undici versions prior to 6.28.0, 7.29.0, and 8.9.0 contain a vulnerability in the interceptors.retry() feature where the response body length may not match the Content-Length header after retrying or resuming a partial response. This mismatch can cause downstream response desynchronization, connection hangs, or response corruption in clients or intermediaries that rely on the Content-Length header for framing. The issue arises when an upstream server returns a partial content response with incorrect Content-Length, and the retry interceptor retries the request, resulting in a stale Content-Length header being forwarded. The vulnerability is patched in undici versions 6.28.0, 7.29.0, and 8.9.0 and later.
The undici WebSocket client is vulnerable to a denial of service caused by unbounded memory growth. This occurs because the client enforces a maximum cumulative payload size but does not limit the number of fragments in a WebSocket message. An attacker-controlled server can send many small or empty continuation frames, causing memory exhaustion in the client process. All undici versions starting from 6.17.0 up to but not including 6.27.0, versions from 7.0.0 up to but not including 7.28.0, and versions from 8.0.0 up to but not including 8.5.0 are affected. The issue is fixed in versions 6.27.0, 7.28.0, and 8.5.0. No workaround is available other than upgrading.
Undici's fetch implementation has a vulnerability in its integrity option handling. When the integrity option is specified with an algorithm but an incorrect hash value, fetch may incorrectly accept tampered requests. This flaw allows an attacker who can alter the integrity option to bypass integrity checks. The issue is fixed in versions 5.28.4 and 6.11.1.
Undici, a Node.js HTTP client, had a vulnerability where the Proxy-Authorization header was not cleared on cross-origin redirects for certain request methods like undici.request(), unlike fetch() which cleared these headers. This could lead to unintended credential exposure during redirects. The issue has been patched in versions 5.28.4 and 6.11.1. Users are advised to upgrade to these versions or use fetch() or disable maxRedirections as a workaround.