CVE-2026-141997: undici vulnerable to Denial of Service via reachable assertion in the HTTP/1.1 response parser
undici is an HTTP client for Node.js. In versions 6.26.0 through 6.29.1, 7.26.0 through 7.30.3, and 8.3.0 through 8.4.0, the HTTP/1.1 client asserts that the response parser is not paused when the connection ends, but the parser is paused whenever the application applies backpressure to a response body. A server that sends a response large enough to fill the body buffer and then closes or resets the connection triggers an AssertionError inside a socket event listener, outside any promise or error event the application can handle, so it becomes an uncaught exception and terminates the Node.js process. A malicious or compromised server reached through undici, including request and the global fetch, can crash the client with a single response regardless of the application's error handling. The issue is fixed in undici 6.29.2, 7.30.4, and 8.4.1, and users should upgrade to one of those versions or later. There is no workaround.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
npm/undicito a version that resolves this vulnerability.Fixed in 6.29.2 - 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.4.1
Event History
Frequently Asked Questions
Which applications are exposed to this denial-of-service issue?
Applications using affected undici versions are exposed when they make HTTP/1.1 requests to a malicious or compromised server. This includes applications using undici directly, as well as those using its request API or global fetch.
What does an attacker need to do to crash the Node.js process?
The attacker needs to control, compromise, or otherwise cause the application to contact an HTTP/1.1 server that sends a response large enough to fill the response-body buffer and then closes or resets the connection. No application privileges or user interaction are required.
Can application-level promise rejection or error handling prevent the crash?
No. The AssertionError occurs in a socket event listener outside of promises or application error events, making it an uncaught exception that terminates the Node.js process regardless of the application's error handling.
What should teams do if they use an affected version?
Upgrade undici to 6.29.2, 7.30.4, or 8.4.1 or later, as appropriate for the installed release line. No workaround is available if patching cannot be performed immediately.