Uncaught Exception Affecting undici package, versions >=7.29.1 <7.30.4>=8.10.2 <8.14.1


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

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-23775847
  • published5 Dec 2026
  • disclosed5 Dec 2026
  • creditleventozen

Introduced: 5 Dec 2026

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

How to fix?

Upgrade undici to version 7.30.4, 8.14.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 unhandled error propagation in the dump and retry interceptors when a dispatcher is composed with both and the application discards a response body via body.dump(). A malicious or faulty server that announces a larger content-length than it actually sends, delivers a partial body, and closes the connection causes the abort reason to be lost before reaching the retry handler. The default retry function then receives undefined and throws while reading it, surfacing as an error event on an internal Client with no listener, which causes the Node.js process to exit. Neither the application's try/catch nor the promise returned by request() catches this error, so a remote, unauthenticated server can crash the process with a single response.

Note: This is only exploitable when a dispatcher is composed with both the dump and retry interceptors and response bodies are discarded using body.dump().

Workaround

Avoid composing the retry interceptor together with the dump interceptor on dispatchers whose response bodies are discarded, or pass a custom retry function to interceptors.retry() that tolerates a non-object error by returning it instead of reading properties from it.

CVSS Base Scores

version 4.0
version 3.1