What’s Vulnerable › Vulnerabilities
CVE-2026-84947: undici vulnerable to response truncation via oversized chunked responses in the dump interceptor
- Severity: medium (CVSS 5.3 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-09-04 · updated 2026-09-15
- Weakness: CWE-20
Description
undici's dump interceptor reads and discards a response body up to a configurable maximum size. When a response declares a Content-Length that exceeds the maximum, the interceptor aborts cleanly, but when a response has no Content-Length and is chunked, the interceptor instead signals completion early once the accumulated size reaches the maximum, without pausing or aborting the request. Because the underlying parser keeps delivering body bytes, a second completion signal fires and trips an internal assertion, which aborts the request and tears down the connection. The application is left observing a misleading successful status with an empty or truncated body while the connection has actually been disconnected. This affects undici versions from 7.1.0 up to 7.29.1 and from 8.0.0 up to 8.10.2. Users should upgrade to undici 7.29.1 or 8.10.2.
Affected products
- undici: from 7.1.0 before 7.29.1; from 8.0.0 before 8.10.2 — fixed in 7.29.1, 8.10.2
- Npm Undici: from 7.1.0 before 7.29.1; from 8.0.0 before 8.10.2 — fixed in 7.29.1, 8.10.2
How to fix
Upgrade to a fixed version: undici 7.29.1, 8.10.2; Npm Undici 7.29.1, 8.10.2. Check the vendor advisory for mitigations.
References
- https://cna.openjsf.org/security-advisories.html
- https://github.com/nodejs/undici/security/advisories/GHSA-2gqq-gqf2-x968
Get alerted when CVE-2026-84947 or the next vulnerability affects your stack