CVE-2026-18149: undici vulnerable to Denial of Service via orphaned RetryHandler response body
Impact undici's RetryHandler can leave a response body pending indefinitely. When a retried request receives a non-retryable response after a truncated one, the original response.body held by the application is never settled, so reads such as response.body.text() hang and bodyTimeout does not fire. A malicious server can repeat this to accumulate pending promises and streams, leading to denial of service.
Published Sep 29, 2026
Affected packages
undici
- Ecosystem
- npm
- Affected
- >= 7.11.0, < 7.29.1
- Fixed in
- 7.29.1
- Check
npm ls undici
undici
- Ecosystem
- npm
- Affected
- >= 8.0.0, < 8.10.2
- Fixed in
- 8.10.2
- Check
npm ls undici
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Impact
undici's RetryHandler can leave a response body pending indefinitely. When a retried request receives a non-retryable response after a truncated one, the original response.body held by the application is never settled, so reads such as response.body.text() hang and bodyTimeout does not fire. A malicious server can repeat this to accumulate pending promises and streams, leading to denial of service.
Patches
Patched in undici v7.29.1 and v8.10.2.
Workarounds
Impose an independent request deadline and destroy the response body when it expires. bodyTimeout alone does not prevent this.
Credited to mcollina, UlisesGascon, samuel871211.
References
- https://github.com/nodejs/undici/security/advisories/GHSA-pmjh-fq2x-6v4x
- https://nvd.nist.gov/vuln/detail/CVE-2026-18149
- https://github.com/nodejs/undici/commit/3c6726599cea8646384dde846c97d630da472a74
- https://github.com/nodejs/undici/commit/e905b5b87e6953bcc542af90557b2fee5b7b5974
- https://hackerone.com/reports/3892751
- https://cna.openjsf.org/security-advisories.html
- https://github.com/nodejs/undici/releases/tag/v7.29.1
- https://github.com/nodejs/undici/releases/tag/v8.10.2
- https://github.com/advisories/GHSA-pmjh-fq2x-6v4x
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More npm vulnerabilities
All npm entriesCVE-2026-109383
undici vulnerable to TLS certificate validation bypass via dropped tls options in Agent
high7.4Oct 27, 2026CVE-2026-109829
undici vulnerable to cache poisoning and cross-user disclosure via cross-origin redirects
high7.4Oct 27, 2026CVE-2026-109855
undici WebSocket client vulnerable to Denial of Service via failed HTTP/2 handshake
high7.5Oct 27, 2026CVE-2026-109932
undici WebSocket client vulnerable to Denial of Service via unbounded automatic PONG buffering
medium5.9Oct 27, 2026CVE-2026-87018
undici vulnerable to Denial of Service via TLS 1.2 certificate-changing renegotiation
high7.5Oct 27, 2026CVE-2026-87029
undici vulnerable to Denial of Service via unhandled exception in the decompress interceptor
medium5.9Oct 27, 2026
