Vulnerability · Published Mar 12, 2026 · Assigned by openjs
CVE-2026-2581undici is vulnerable to Unbounded Memory Consumption in in Undici's DeduplicationHandler via Response Buffering leads to DoS
Medium 5.9
In plain English
A medium-severity resource allocation without limits in undici from undici. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 48% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | nodejs | 1:24.14.1-2.module_el8.10.0+4160+4819ac42 | ALSA-2026:7670 |
| AlmaLinux:9 | nodejs | 1:24.14.1-2.module_el9.7.0+222+ef1c61e1 | ALSA-2026:7350 |
| AlmaLinux:8 | nodejs-devel | 1:24.14.1-2.module_el8.10.0+4160+4819ac42 | ALSA-2026:7670 |
| AlmaLinux:9 | nodejs-devel | 1:24.14.1-2.module_el9.7.0+222+ef1c61e1 | ALSA-2026:7350 |
| AlmaLinux:8 | nodejs-docs | 1:24.14.1-2.module_el8.10.0+4160+4819ac42 | ALSA-2026:7670 |
| AlmaLinux:9 | nodejs-docs | 1:24.14.1-2.module_el9.7.0+222+ef1c61e1 | ALSA-2026:7350 |
| AlmaLinux:8 | nodejs-full-i18n | 1:24.14.1-2.module_el8.10.0+4160+4819ac42 | ALSA-2026:7670 |
| AlmaLinux:9 | nodejs-full-i18n | 1:24.14.1-2.module_el9.7.0+222+ef1c61e1 | ALSA-2026:7350 |
| AlmaLinux:8 | nodejs-libs | 1:24.14.1-2.module_el8.10.0+4160+4819ac42 | ALSA-2026:7670 |
| AlmaLinux:9 | nodejs-libs | 1:24.14.1-2.module_el9.7.0+222+ef1c61e1 | ALSA-2026:7350 |
| AlmaLinux:8 | nodejs-nodemon | 3.0.3-1.module_el8.10.0+4061+f8ceeab9 | ALSA-2026:7670 |
| AlmaLinux:9 | nodejs-nodemon | 3.0.3-3.module_el9.7.0+209+ecf6523e | ALSA-2026:7350 |
| AlmaLinux:8 | nodejs-packaging | 2021.06-6.module_el8.10.0+4086+70facd4a | ALSA-2026:7670 |
| AlmaLinux:9 | nodejs-packaging | 2021.06-6.module_el9.7.0+209+ecf6523e | ALSA-2026:7350 |
| AlmaLinux:8 | nodejs-packaging-bundler | 2021.06-6.module_el8.10.0+4086+70facd4a | ALSA-2026:7670 |
| AlmaLinux:9 | nodejs-packaging-bundler | 2021.06-6.module_el9.7.0+198+8bf605ba | ALSA-2026:7350 |
| AlmaLinux:10 | nodejs24-docs | 1:24.14.1-2.el10_1 | ALSA-2026:7675 |
| AlmaLinux:10 | nodejs24-npm | 1:11.11.0-1.24.14.1.2.el10_1 | ALSA-2026:7675 |
| AlmaLinux:8 | npm | 1:11.11.0-1.24.14.1.2.module_el8.10.0+4160+4819ac42 | ALSA-2026:7670 |
| AlmaLinux:9 | npm | 1:11.11.0-1.24.14.1.2.module_el9.7.0+222+ef1c61e1 | ALSA-2026:7350 |
| AlmaLinux:8 | v8-13.6-devel | 3:13.6.233.17-1.24.14.1.2.module_el8.10.0+4160+4819ac42 | ALSA-2026:7670 |
| AlmaLinux:9 | v8-13.6-devel | 3:13.6.233.17-1.24.14.1.2.module_el9.7.0+222+ef1c61e1 | ALSA-2026:7350 |
| Debian:13 | node-undici | no fix listed | DEBIAN-CVE-2026-2581 |
| Debian:14 | node-undici | 7.24.5+dfsg+~cs3.2.0-1 | DEBIAN-CVE-2026-2581 |
| Rocky Linux:8 | nodejs-nodemon | 0:3.0.3-1.module+el8.10.0+2084+ab509703 | RLSA-2026:7670 |
| Rocky Linux:9 | nodejs-nodemon | 0:3.0.3-3.module+el9.7.0+40025+0e0cf6b2 | RLSA-2026:7350 |
| Rocky Linux:8 | nodejs-packaging | 0:2021.06-6.module+el8.10.0+40048+6d99f608 | RLSA-2026:7670 |
| Rocky Linux:9 | nodejs-packaging | 0:2021.06-6.module+el9.7.0+40052+e32ea525 | RLSA-2026:7350 |
| Rocky Linux:10 | nodejs24 | 1:24.14.1-2.el10_1 | RLSA-2026:7675 |
| Ubuntu:24.04:LTS | node-undici | no fix listed | UBUNTU-CVE-2026-2581 |
| Ubuntu:25.10 | node-undici | no fix listed | UBUNTU-CVE-2026-2581 |
| Ubuntu:26.04:LTS | node-undici | no fix listed | UBUNTU-CVE-2026-2581 |
| Ubuntu:26.10 | node-undici | no fix listed | UBUNTU-CVE-2026-2581 |
| npm | undici | 7.24.0 | GHSA-phc3-fgpg-7m6h |
Affected products (as reported)
Weakness: CWE-770 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H