Overview
CVE-2026-139829 is an error-handling defect in undici, the HTTP client bundled with and used widely by Node.js applications. Under a specific combination of API usage and server behavior over HTTP/2, a single request-body error reaches undici's stream handler error path more than once, causing an uncaught TypeError that escapes the application's callback and error chain and terminates the Node.js process.
The flaw is assigned a CVSS base score of 7.5 with a "high" severity label, and there is no public record of in-the-wild exploitation. The vulnerability is not listed on the CISA Known Exploited Vulnerabilities catalog as of the published advisory.
Affected systems
The issue affects undici in the following ranges:
- undici 7.0.0 through 7.30.3
- undici 8.0.0 through 8.14.0
The 6.x line is described in the advisory as not reaching the crashing path because its HTTP/2 client reports the session error first.
Triggering conditions are specific. All of the following must be true for the remote sequence to produce a process crash:
- The application calls the undici
streamAPI with a Node.jsReadablerequest body.
- The request is made over HTTP/2 (not HTTP/1.1).
- The remote server begins sending a response before the upload has finished.
- The remote server then destroys the HTTP/2 session while the upload is still pending.
- The first request-body error is delivered to undici's stream-handler error path more than once, which clears a stored callback.
request, Buffer, and generator-style request bodies are not affected by this remote trigger. Server-side DoS scenarios are also out of scope; the failure occurs in the client process.
The attacker must control, or be able to influence, the behavior of the HTTP/2 server reached by the vulnerable client. This includes direct uploads to user-selected endpoints, reverse-proxy or forwarding workflows where the destination is attacker-selectable, and any architecture in which a remote service can manipulate HTTP/2 response timing during an in-flight streaming upload.
Technical details
When undici is streaming a Readable request body over HTTP/2 and the server starts a response before the body completes, undici continues the upload while also handling response stream state. The advisory describes a case in which the same underlying request-body error can reach the stream handler error path twice. The second invocation clears the stored callback that the response writable's error handler relies on. The subsequent access against the cleared reference is an uncaught TypeError that occurs outside the application's visible callback and error-handling chain.
The defect is therefore a callback-lifecycle and error-routing issue rather than a memory-corruption vulnerability. There is no claim of code execution, data disclosure, authentication bypass, or privilege escalation. The practical impact is process termination of the Node.js client, which can interrupt the failing request and any concurrent work handled by the same Node.js process.
Mitigation
Patch
- Upgrade applications using undici 7.x to 7.30.4 or later.
- Upgrade applications using undici 8.x to 8.14.1 or later.
- After upgrading, verify the resolved undici version in the deployed dependency tree, including transitive copies that may be vendored or pinned inside other packages.
Workarounds when an upgrade is not immediately possible
- For streaming uploads directed at untrusted HTTP/2 servers, use the
requestAPI instead ofstream.
- Buffer request bodies fully client-side before submission so the streaming pending-upload condition cannot arise.
- Where streaming to untrusted HTTP/2 endpoints is unavoidable, isolate the operation so that a client-process crash does not propagate to critical services.
Detection and monitoring
- Search application code and dependencies for use of undici's
streamAPI with Node.jsReadablerequest bodies over HTTP/2.
- Monitor Node.js crash telemetry and process logs for uncaught
TypeErrorevents tied to a response writable's error handler around HTTP/2 session errors or aborted uploads.
- Correlate client-side crash incidents with HTTP/2 servers that begin responses before request completion and then reset or destroy the session.
- Inventory undici versions across production environments, containers, and lockfiles; multiple undici copies may exist in a single dependency graph.
- Treat the absence of public exploitation reports and the absence of a KEV listing as a lack of documented exploitation, not as evidence that the behavior cannot be triggered.