Uncaught Exception Affecting undici package, versions >=6.7.0 <6.28.1>=7.0.0 <7.29.1>=8.0.0 <8.10.2


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.39% (33rd 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-19635210
  • published6 Sept 2026
  • disclosed4 Sept 2026
  • creditmanus-use

Introduced: 4 Sep 2026

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

How to fix?

Upgrade undici to version 6.28.1, 7.29.1, 8.10.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 its WebSocket client, in the form of a TypeError inside a queueMicrotask callback when a server's 101 response carries a Sec-WebSocket-Protocol header the client never requested. An attacker can crash the process by returning a 101 handshake response that names a subprotocol the client did not offer. This requires the application to open a WebSocket without requesting a subprotocol to an attacker-controlled or compromised server, or over plaintext ws:// where a MitM can alter the handshake.

CVSS Base Scores

version 4.0
version 3.1