CVE-2026-141997: undici vulnerable to Denial of Service via reachable assertion in the HTTP/1.1 response parser

Published Dec 5, 2026
·
Updated

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

1 affected component
npm/undici>=6.26.0<=6.29.1, >=7.26.0<=7.30.3, >=8.3.0<=8.4.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/undici to a version that resolves this vulnerability.

    Fixed in 6.29.2
  2. Upgrade

    Upgrade npm/undici to a version that resolves this vulnerability.

    Fixed in 7.30.4
  3. Upgrade

    Upgrade npm/undici to a version that resolves this vulnerability.

    Fixed in 8.4.1

Event History

Dec 5, 2026
CVE Published
via MITRE·09:45 AM
Data Sourced
via MITRE·09:45 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

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.

2

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.

3

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.

4

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203