cvelo
P2 · HighCVSS 7.5

undici vulnerable to Denial of Service via unbounded cache memory from tiny response chunks

  • CVE-2026-137980
  • EUVD-2026-145407

Description

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.

Text from the CVE.org record.

Recommendation

  • undici

    • If you run a version from 8.0.0 to before 8.14.1update to 8.14.1 or laterMinor version change: check the release notes
    • If you run a version from 7.0.0 to before 7.30.4update to 7.30.4 or laterMinor version change: check the release notes

Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.

Affected

  • undici

    Affected versionsFixed in
    from 8.0.0 to before 8.14.18.14.1
    from 7.0.0 to before 7.30.47.30.4

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.