# CVE-2026-2581: undici is vulnerable to Unbounded Memory Consumption in in Undici's DeduplicationHandler via Response Buffering leads to DoS

- Severity: Medium 5.9 (CVSS:3.1, scored by openjs) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.63%, higher than 51% of CVEs (2026-12-01)
- Published: 2026-03-12T20:13:19.571Z
- Modified: 2026-09-10T03:50:40.209Z
- Also known as: GHSA-phc3-fgpg-7m6h
- Weaknesses: CWE-770
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: openjs

## 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.

(As written by CVE List.)

## Affected

- undici: < 6.24.0; 7.0.0 < 7.24.0 (not affected: 6.24.0: 7.24.0)
- undici (npm): from 7.17.0 before 7.24.0
- nodejs undici: from 7.17.0 before 7.24.0

## Every score

- openjs: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/nodejs/undici/security/advisories/GHSA-phc3-fgpg-7m6h> (mitigation, vendor-advisory, web)
- <https://hackerone.com/reports/3513473> (permissions-required, web)
- <https://cna.openjsf.org/security-advisories.html> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-2581> (advisory)
- <https://github.com/nodejs/undici> (package)

## Sources

- CVE List: [CVE-2026-2581](https://www.cve.org/CVERecord?id=CVE-2026-2581), CVE Terms of Use, modified 2026-03-13
- GitHub Advisory Database: [GHSA-phc3-fgpg-7m6h](https://github.com/advisories/GHSA-phc3-fgpg-7m6h), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-2581](https://nvd.nist.gov/vuln/detail/CVE-2026-2581), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-2581 · Whole record: https://cve.day/CVE-2026-2581.json · Rebuilt by cve.day 2026-11-25T22:59:15.859Z
