Vulnerability · Published Sep 4, 2026 · Assigned by openjs
CVE-2026-18149undici vulnerable to Denial of Service via orphaned RetryHandler response body
Medium 5.9
In plain English
A medium-severity security flaw 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.5% (higher than 42% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
undici's retry handler can leave an already-exposed response body pending forever. When a server returns a successful response that declares a Content-Length, sends only part of the body, and closes the connection, the retry handler retries the request. If the retry returns a non-retryable status such as 400, the handler forwards that new response downstream and replaces its internal response stream, but the original response body that the application still holds is never ended or destroyed. As a result calls that read that body never settle, and the configured body timeout does not fire because its timer is tied to the connection parser rather than the orphaned body. An attacker-controlled server can trigger this with two short responses without keeping a connection open, and repeated requests accumulate pending promises and streams that can exhaust application concurrency or memory. This affects undici versions from 7.11.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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | node-undici | no fix listed | DEBIAN-CVE-2026-18149 |
| Debian:13 | node-undici | no fix listed | DEBIAN-CVE-2026-18149 |
| Debian:14 | node-undici | 8.10.2+dfsg+~cs3.2.2-1 | DEBIAN-CVE-2026-18149 |
| Ubuntu:24.04:LTS | node-undici | no fix listed | UBUNTU-CVE-2026-18149 |
| Ubuntu:26.04:LTS | node-undici | no fix listed | UBUNTU-CVE-2026-18149 |
| Ubuntu:26.10 | node-undici | no fix listed | UBUNTU-CVE-2026-18149 |
| npm | undici | 8.10.2 | GHSA-pmjh-fq2x-6v4x |
| npm | undici | 7.29.1 | GHSA-pmjh-fq2x-6v4x |
Affected products (as reported)
Weakness: CWE-772 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H