Allocation of Resources Without Limits or Throttling Affecting undici package, versions >=7.0.0 <7.30.4>=8.0.0 <8.14.1


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.86% (60th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Allocation of Resources Without Limits or Throttling vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-UNDICI-23775828
  • published5 Dec 2026
  • disclosed5 Dec 2026
  • creditgargantuanapple

Introduced: 5 Dec 2026

NewCVE-2026-137980  (opens in a new tab)
CWE-770  (opens in a new tab)

How to fix?

Upgrade undici to version 7.30.4, 8.14.1 or higher.

Overview

undici is an An HTTP/1.1 client, written from scratch for Node.js

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling via the MemoryCacheStore and SqliteCacheStore built-in cache stores, which count response body bytes against their configured byte limits but retain each delivered body chunk as a separate Buffer object. A malicious or compromised HTTP 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 - causing per-chunk object overhead (over 100 bytes of heap per payload byte) that is not bounded by the byte limits. With MemoryCacheStore, a few concurrent such responses can exhaust the heap and crash the process while the advertised byte limits are still satisfied; with SqliteCacheStore, whose default maxEntrySize is 2 GB, a single such response is sufficient.

Note: This is only exploitable when the cache interceptor is composed with either built-in store and cacheable requests are issued to an untrusted origin.

Workaround

Avoid composing the cache interceptor, with either built-in store, with requests to untrusted origins.

CVSS Base Scores

version 4.0
version 3.1