Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. undici
  4. ›
  5. CVE-2026-22036

CVE-2026-22036: Undici has an unbounded decompression chain in HTTP responses on Node.js Fetch API via Content-Encoding leads to resource exhaustion

January 14, 2026 (updated January 22, 2026)

The fetch() API supports chained HTTP encoding algorithms for response content according to RFC 9110 (e.g., Content-Encoding: gzip, br). This is also supported by the undici decompress interceptor.

However, the number of links in the decompression chain is unbounded and the default maxHeaderSize allows a malicious server to insert thousands compression steps leading to high CPU usage and excessive memory allocation.

References

  • github.com/advisories/GHSA-g9mf-h72j-4rw9
  • github.com/nodejs/undici
  • github.com/nodejs/undici/commit/b04e3cbb569c1596f86c108e9b52c79d8475dcb3
  • github.com/nodejs/undici/security/advisories/GHSA-g9mf-h72j-4rw9
  • nvd.nist.gov/vuln/detail/CVE-2026-22036

Code Behaviors & Features

Detect and mitigate CVE-2026-22036 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 6.23.0, all versions starting from 7.0.0 before 7.18.2

Fixed versions

  • 7.18.2
  • 6.23.0

Solution

Upgrade to versions 6.23.0, 7.18.2 or above.

Impact 3.7 LOW

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L

Learn more about CVSS

Weakness

  • CWE-770: Allocation of Resources Without Limits or Throttling

Source file

npm/undici/CVE-2026-22036.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:00 +0000.