CVE-2026-132045: undici vulnerable to Denial of Service via quadratic Cache-Control and Vary header parsing

Published Dec 5, 2026
·
Updated

undici is an HTTP client for Node.js. In versions 7.29.0 through 7.30.3 and 8.9.0 through 8.14.0, when the RFC 9111 cache interceptor is in use, undici parses the server's Cache-Control and Vary response headers with an optional-whitespace trimming helper whose regular expression backtracks quadratically. A malicious or compromised origin that returns a header value with a long run of internal whitespace forces the client to spend quadratic CPU time parsing a single, size-bounded response, synchronously blocking the Node.js event loop for around 100 to 200 milliseconds at the default maximum header size, and for several seconds when applications raise that limit, with concurrent responses serialized. The default fetch and request paths are not affected because they trim response headers with a linear scanner, so only applications that use the cache interceptor are affected. The issue is fixed in undici 7.30.4 and 8.14.1, and users should upgrade to one of those versions or later. As a workaround, do not use the cache interceptor.

Affected Software

1 affected component
npm/undici>=7.29.0<=7.30.3, >=8.9.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 7.30.4
  2. Upgrade

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

    Fixed in 8.14.1
  3. Configuration

    Do not use the cache interceptor as a workaround.

    undici RFC 9111 cache interceptor cache interceptor = disabled

Event History

Dec 5, 2026
CVE Published
via MITRE·10:20 AM
Data Sourced
via MITRE·10:20 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which applications are exposed to this issue?

Only applications using undici's RFC 9111 cache interceptor are affected, and only in versions 7.29.0 through 7.30.3 or 8.9.0 through 8.14.0. The default fetch and request paths are not affected.

2

What does an attacker need to do to trigger the denial of service?

An attacker needs to control, compromise, or otherwise cause the client to receive a response from an origin that includes a Cache-Control or Vary header with a long run of internal whitespace. No authentication or user interaction is required, but exploiting the issue requires the cache interceptor to be in use.

3

What is the operational impact?

Parsing one size-bounded malicious response can synchronously block the Node.js event loop for about 100 to 200 milliseconds at the default maximum header size. If the application has increased the header-size limit, blocking can last several seconds, and concurrent responses are serialized.

4

What can be done if upgrading is not immediately possible?

Disable or avoid use of the undici cache interceptor. This removes the affected parsing path.

5

How can I remediate affected deployments?

Upgrade undici to version 7.30.4 or later on the 7.x line, or 8.14.1 or later on the 8.x line.

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