CVE-2026-137980: undici vulnerable to Denial of Service via unbounded cache memory from tiny response chunks

Published Dec 5, 2026
·
Updated

undici is an HTTP client for Node.js. In versions 7.0.0 through 7.30.3 and 8.0.0 through 8.14.0, the built-in cache stores, MemoryCacheStore and SqliteCacheStore, count response body bytes against their byte limits but hold each delivered body chunk as a separate Buffer, so a malicious or compromised origin can send a cacheable response framed as a very large number of tiny chunks, for example one million one-byte HTTP/1.1 chunks, whose per-object overhead is not bounded by those limits. With MemoryCacheStore a few concurrent such responses, each within the configured entry and total size limits, can exhaust the heap and terminate the process, and with SqliteCacheStore, whose default maximum entry size is 2 GB, a single response is enough. The application only needs to use the cache interceptor with either store and issue cacheable requests to the untrusted origin, which results in denial of service. 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, avoid using the cache interceptor with either built-in store for requests to untrusted origins.

Affected Software

1 affected component
npm/undici>=7.0.0<=7.30.3, >=8.0.0<=8.14.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade undici to a version that resolves this vulnerability.

    Fixed in 7.30.4
  2. Upgrade

    Upgrade undici to a version that resolves this vulnerability.

    Fixed in 8.14.1
  3. Compensating control

    Avoid using the cache interceptor with MemoryCacheStore or SqliteCacheStore for requests to untrusted origins.

Event History

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

Frequently Asked Questions

1

Which applications are exposed to this denial-of-service condition?

Applications using undici's cache interceptor with either MemoryCacheStore or SqliteCacheStore are exposed when they make cacheable requests to an untrusted origin. The affected versions are 7.0.0 through 7.30.3 and 8.0.0 through 8.14.0.

2

What does an attacker need to do to trigger the issue?

A malicious or compromised origin must serve a cacheable response as a very large number of tiny body chunks. No credentials or user interaction are required, but the application must request that origin through the cache interceptor using one of the built-in stores.

3

Are default cache limits sufficient to prevent exploitation?

No. The stores enforce response body byte limits but do not bound the per-Buffer overhead created by many tiny chunks. SqliteCacheStore's default maximum entry size is 2 GB, and a single crafted response can be sufficient.

4

What can be done if an upgrade cannot be applied immediately?

Do not use the cache interceptor with MemoryCacheStore or SqliteCacheStore for requests to untrusted origins. Upgrade to undici 7.30.4, 8.14.1, or a later version when possible.

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