Uncaught Exception Affecting undici package, versions >=8.11.0 <8.11.2


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.28% (19th 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-20954499
  • published15 Oct 2026
  • disclosed15 Oct 2026
  • creditJongsik Kim

Introduced: 15 Oct 2026

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

How to fix?

Upgrade undici to version 8.11.2 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 in the experimental WebSocket client, where a response failing handshake validation triggers an abort that is a no-op because the request is already marked completed, so the underlying ClientHttp2Stream stays open with no error listener attached. An attacker running the server can crash the connecting Node.js process by answering a WebSocket upgrade with a response that fails that validation and then destroying the connection, at which point the orphaned stream emits an unhandled error. This requires the client to open a WebSocket to the attacker's server over HTTP/2, which allowH2: true permits by default.

Workaround

This vulnerability can be avoided by setting allowH2: false, which disables HTTP/2 for WebSocket connections.

CVSS Base Scores

version 4.0
version 3.1