CVE-2026-135194: undici vulnerable to Denial of Service via unhandled error in the dump and retry interceptors
undici is an HTTP client for Node.js. In versions 7.29.1 through 7.30.3 and 8.10.2 through 8.14.0, when a dispatcher is composed with the dump and retry interceptors and the application discards a response body with the documented dump method, a malicious or faulty server that announces a larger content-length than it sends, delivers a partial body, and closes the connection makes the abort reason get lost on the way to the retry handler, whose default retry function then throws while reading it. The throw surfaces as an error event on an internal client with no listener, so the Node.js process exits, and neither the application's try/catch nor the promise returned by request catches it. A remote, unauthenticated server can trigger this with a single response, which results in denial of service. The bug was introduced by the fix for CVE-2026-84947, and earlier releases and the 6.x line are not affected. The issue is fixed in undici 7.30.4 and 8.14.1, and users should upgrade to one of those versions or later. As a workaround, avoid composing the retry interceptor together with the dump interceptor on dispatchers whose response bodies are discarded, or pass a custom retry function that tolerates a non-object error.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
npm/undicito a version that resolves this vulnerability.Fixed in 7.30.4 - Upgrade
Upgrade
npm/undicito a version that resolves this vulnerability.Fixed in 8.14.1 - Compensating control
As a workaround, avoid composing the retry interceptor with the dump interceptor on dispatchers whose response bodies are discarded, or pass a custom retry function that tolerates a non-object error.
Event History
Frequently Asked Questions
Which deployments are affected?
Affected deployments use undici versions 7.29.1 through 7.30.3 or 8.10.2 through 8.14.0, compose both the dump and retry interceptors on a dispatcher, and discard response bodies with the documented dump method. Earlier releases and the 6.x line are not affected.
What does an attacker need to do to trigger the denial of service?
A remote unauthenticated server needs to return a response with a Content-Length larger than the body actually sent, send only a partial body, and close the connection. A single such response can cause the Node.js process to exit.
Can application error handling catch the failure?
No. The failure is emitted as an error event on an internal client without a listener, so it is not caught by the application's try/catch or by the promise returned from request.
What can be done before upgrading?
Avoid composing the retry interceptor with the dump interceptor on dispatchers where response bodies are discarded. Alternatively, provide a custom retry function that does not read the lost abort reason.
Which versions fix the issue?
Upgrade to undici 7.30.4, 8.14.1, or a later version.