Uncaught Exception Affecting undici package, versions >=6.26.0 <6.29.2>=7.26.0 <7.30.4>=8.3.0 <8.4.1


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.86% (60th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Uncaught Exception vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-UNDICI-23775829
  • published5 Dec 2026
  • disclosed5 Dec 2026
  • creditTravis Baldwin

Introduced: 5 Dec 2026

NewCVE-2026-141997  (opens in a new tab)
CWE-248  (opens in a new tab)

How to fix?

Upgrade undici to version 6.29.2, 7.30.4, 8.4.1 or higher.

Overview

undici is an An HTTP/1.1 client, written from scratch for Node.js

Affected versions of this package are vulnerable to Uncaught Exception via a reachable assertion in the HTTP/1.1 response parser (Parser.finish() in lib/dispatcher/client-h1.js). The parser is paused whenever the application applies backpressure to a response body, but Parser.finish() asserts that the parser is not paused when the connection ends. A server that sends a response large enough to fill the 64 KiB 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. This becomes an uncaught exception that terminates the Node.js process, and is reachable through request() and the global fetch() with a single response regardless of the application's error handling.

CVSS Base Scores

version 4.0
version 3.1