Uncaught Exception Affecting undici package, versions >=6.25.0 <6.28.1>=7.28.0 <7.29.1>=8.1.0 <8.10.2


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.41% (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-19635226
  • published6 Sept 2026
  • disclosed4 Sept 2026
  • creditkrsecu

Introduced: 4 Sep 2026

NewCVE-2026-85024  (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 lib/web/websocket/permessage-deflate.js, whose cleanup calls removeAllListeners() on the zlib InflateRaw object, removing the error listener while the stream is still active. An attacker can crash the Node.js process, and repeat the crash on every reconnect to form a crash loop, by sending a permessage-deflate WebSocket message of roughly 130 KB that exceeds the decompressed-payload size limit and contains a malformed DEFLATE block, so the resulting Z_DATA_ERROR has no listener. This requires the application to use undici's WebSocket client or Node's bundled globalThis.WebSocket against an attacker-controlled or compromised WebSocket server.

CVSS Base Scores

version 4.0
version 3.1