CVE-2026-84890

undici vulnerable to Denial of Service via unbounded decompression of compressed responses

Published Sep 4, 2026 CVSS 3.1 · 5.9 Medium EPSS < 1% KEV · Not listed
Description
undici's decompress interceptor decompresses response bodies according to the untrusted Content-Encoding header. While the number of content-encoding layers is capped, the total decompressed output size is unbounded and there is no configuration option to limit it. A malicious or faulty upstream can therefore return a small compressed payload, a compression bomb, that expands to hundreds of megabytes or more in client memory, an asymmetric resource consumption that can exhaust memory and crash the process. This affects undici versions from 7.15.0 up to 7.29.1 and from 8.0.0 up to 8.10.2. Users should upgrade to undici 7.29.1 or 8.10.2.

Analysis

AI-generated

Technical impact

Undici’s decompress interceptor blindly expands response bodies based on the untrusted Content‑Encoding header. While the number of content‑encoding layers is capped, the total decompressed size is unlimited, giving an attacker the ability to send a tiny compressed payload that expands to hundreds of megabytes or more, exhausting the client’s memory and causing the process to crash. This flaw is classified as a resource‑exhaustion vulnerability (CWE‑770) and a concurrency error (CWE‑409), and results in a denial of service that can disrupt application availability.

Affected Systems

The vulnerability exists in undici versions 7.15.0 through 7.29.1 and 8.0.0 through 8.10.2. The affected product is the JavaScript HTTP client library undici, commonly used in Node.js applications.

Risk and Exploitability

With a CVSS score of 5.9, the flaw represents moderate severity. The exploit probability is not quantified (EPSS not available) and the vulnerability is not listed in CISA’s KEV catalog, indicating no known large‑scale exploitation to date. However, any system that acts as an undici client and receives responses from an untrusted upstream can be targeted. A malicious sender can craft a response encoded with a compression bomb that, when decompressed by the client, consumes excessive memory, ultimately leading to process termination and service disruption. The attack vector requires network access to the client’s inbound traffic where undici processes responses.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade undici to version 7.29.1 or 8.10.2, which includes the fix for this unbounded decompression issue.
  • Restrict or strip Content‑Encoding headers from upstream responses before they reach the decompression interceptor, preventing compression bombs.
  • Configure memory limits or monitor resource usage to detect and mitigate excessive decompression, such as placing the undici client behind a container with capped memory or enabling OS limits.

Generated by OpenCVE AI on September 5, 2026 at 01:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-3xpg-4rpp-hhhm undici vulnerable to Denial of Service via unbounded decompression of compressed responses
History
Type Values Removed Values Added
First Time appeared Nodejs
Nodejs undici
CPEs cpe:2.3:a:nodejs:undici:*:*:*:*:*:node.js:*:*
Vendors & Products Nodejs
Nodejs undici
Type Values Removed Values Added
First Time appeared Undici
Undici undici
Vendors & Products Undici
Undici undici
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description undici's decompress interceptor decompresses response bodies according to the untrusted Content-Encoding header. While the number of content-encoding layers is capped, the total decompressed output size is unbounded and there is no configuration option to limit it. A malicious or faulty upstream can therefore return a small compressed payload, a compression bomb, that expands to hundreds of megabytes or more in client memory, an asymmetric resource consumption that can exhaust memory and crash the process. This affects undici versions from 7.15.0 up to 7.29.1 and from 8.0.0 up to 8.10.2. Users should upgrade to undici 7.29.1 or 8.10.2.
Title undici vulnerable to Denial of Service via unbounded decompression of compressed responses
Weaknesses CWE-770
References
Metrics cvssV3_1

{'score': 5.9, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H'}

Weaknesses
  • CWE-409

    Improper Handling of Highly Compressed Data (Data Amplification)

  • CWE-770

    Allocation of Resources Without Limits or Throttling

Sources

Status
PUBLISHED
Assigner
openjs
Published
Updated
Sep 4, 2026, 6:33 PM
Reserved
Sep 2, 2026, 2:36 PM
Status
Analyzed
Published
Sep 4, 2026, 6:18 PM
Modified
Sep 11, 2026, 4:55 PM
Severity
Moderate
Public date
Sep 4, 2026, 5:04 PM