Resource exhaustion in Nodejs Undici
CVE-2026-2581
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. PatchesThe issue has been patched by changing deduplication behavior to stream response chunks to downstream handlers as they arrive (instead of full-body accumulation), and by preventing late deduplication when body streaming has already started. Users should upgrade to the first official Undici (and Node.js, where applicable) releases that include this patch.
EPSS: 0.006 (43.6th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 5.9 (Medium). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H.
Affected products
- Nodejs Undici
- Undici — versions < 6.24.0; 7.0.0 < 7.24.0, 6.24.0: 7.24.0
Weakness classification (CWE)
References
- ce714d77-add3-4f53-aff5-83d477b104bb (Mitigation, Vendor Advisory)
- ce714d77-add3-4f53-aff5-83d477b104bb (Permissions Required)
- ce714d77-add3-4f53-aff5-83d477b104bb (Vendor Advisory)
Frequently asked questions
- What is CVE-2026-2581?
- CVE-2026-2581 is a medium-severity vulnerability in Nodejs Undici, classified under Allocation of Resources Without Limits or Throttling. CVSS score: 5.9/10. Published 2026-03-12.
- How severe is CVE-2026-2581?
- Medium severity. CVSS v3 base score is 5.9 out of 10.