Uncontrolled Resource Consumption in Undici by Node.js
CVE-2026-2581

5.9MEDIUM

Key Information:

Vendor

Undici

Status
Vendor
CVE Published:
12 March 2026

What is CVE-2026-2581?

This vulnerability allows attackers to exploit Undici's deduplication interceptor, leading to excessive memory consumption. When enabled, if vulnerable versions handle large or chunked responses from untrusted upstream endpoints, they can accumulate response data in memory. This can result in the application being overwhelmed and experiencing crashes due to Out of Memory (OOM) conditions. To mitigate the risk, users are advised to update to the latest Undici releases where changes to deduplication behavior ensure response chunks are streamed to downstream handlers immediately, thus preventing excessive memory usage.

Affected Version(s)

undici < 6.24.0; 7.0.0 < 7.24.0 < 6.24.0; 7.0.0 < 7.24.0

undici 6.24.0: 7.24.0

References

CVSS V3.1

Score:
5.9
Severity:
MEDIUM
Confidentiality:
None
Integrity:
None
Availability:
None
Attack Vector:
Network
Attack Complexity:
High
Privileges Required:
None
User Interaction:
None
Scope:
Unchanged

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Credit

Matteo Collina
Ulises GascĂłn
Adnan Jakati
.