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

CVE-2026-2581: Undici has Unbounded Memory Consumption in its DeduplicationHandler via Response Buffering that leads to DoS

March 13, 2026

This is an uncontrolled resource consumption vulnerability (CWE-400) that can lead to Denial of Service (DoS).

In vulnerable Undici versions, when interceptors.deduplicate() is enabled, response data for deduplicated requests could be accumulated in memory for downstream handlers. An attacker-controlled or untrusted upstream endpoint can exploit this with large/chunked responses and concurrent identical requests, causing high memory usage and potential OOM process termination.

Impacted users are applications that use Undici’s deduplication interceptor against endpoints that may produce large or long-lived response bodies.

References

  • cna.openjsf.org/security-advisories.html
  • github.com/advisories/GHSA-phc3-fgpg-7m6h
  • github.com/nodejs/undici
  • github.com/nodejs/undici/security/advisories/GHSA-phc3-fgpg-7m6h
  • hackerone.com/reports/3513473
  • nvd.nist.gov/vuln/detail/CVE-2026-2581

Code Behaviors & Features

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

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 7.17.0 before 7.24.0

Fixed versions

  • 7.24.0

Solution

Upgrade to version 7.24.0 or above.

Impact 5.9 MEDIUM

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

Learn more about CVSS

Weakness

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

Source file

npm/undici/CVE-2026-2581.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sat, 14 Mar 2026 12:18:02 +0000.