CVE-2026-138000: undici vulnerable to Denial of Service via unhandled exception resuming tuple-array header requests
undici is an HTTP client for Node.js. In versions 8.12.0 through 8.14.0, when an application composes the retry interceptor outside an interceptor that normalizes request headers, such as dns, cache, or deduplicate, and passes request headers as an array of name and value pairs, an origin that sends part of a resumable response body and then closes the connection makes the retry interceptor rebuild the request headers for a byte-range resume. The resume logic reads every header array as a flat name and value list, so it throws an uncaught TypeError inside the retry timer and terminates the Node.js process. The attacker only needs to control the response, which results in denial of service of the client process. The 7.x line is not affected. The issue is fixed in undici 8.14.1, and users should upgrade to 8.14.1 or later. As a workaround, pass request headers as an object or a flat name and value array instead of an array of pairs.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 8.14.1
Event History
Frequently Asked Questions
Which deployments are exposed to this denial-of-service condition?
Deployments using undici versions 8.12.0 through 8.14.0 are affected only when the retry interceptor is composed outside a header-normalizing interceptor, such as dns, cache, or deduplicate, and request headers are supplied as an array of name/value pairs. The undici 7.x line is not affected.
What must an attacker be able to do to trigger the crash?
The attacker needs to control an origin response used by the client. They can trigger the condition by sending part of a resumable response body and then closing the connection, causing retry-based byte-range resume handling to throw an uncaught TypeError and terminate the Node.js process.
What can be done if upgrading is not immediately possible?
Pass request headers as an object or as a flat name-and-value array rather than an array of pairs. This avoids the header representation that causes the resume logic to fail.
What version resolves the issue?
Upgrade undici to version 8.14.1 or later.