CVE-2026-138000: undici vulnerable to Denial of Service via unhandled exception resuming tuple-array header requests

Published Dec 5, 2026
·
Updated

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

1 affected component
npm/undici>=8.12.0<=8.14.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 8.14.1

Event History

Dec 5, 2026
CVE Published
via MITRE·09:51 AM
Data Sourced
via MITRE·09:51 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

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.

2

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.

3

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.

4

What version resolves the issue?

Upgrade undici to version 8.14.1 or later.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203