All vulnerabilities
CVE-2026-85014GHSA-rx4f-c7p8-82vq

undici vulnerable to Denial of Service via WebSocketStream unclean close

undici undicinpmLibraries & packages
CVSS
5.9Medium
ExploitationNo known exploitationNot in CISA KEV, which does not prove it is unexploitedCISA KEV
Exploit odds (EPSS)0.37%Chance of exploitation activity in the next 30 days, higher than 29% of CVEs. Scored 23 Oct 2026FIRST EPSS
Fixed in7.29.1Also 8.10.2GitHub
Published4 Sep 2026Updated 29 Sep 2026CVE List

What fixes it

A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.

Description

Impact

undici's WebSocketStream crashes the client process when a WebSocket connection is closed abruptly without a close handshake. On such an unclean close, the internal socket-close handler calls abort() on the writable stream even when the application holds a writer lock. Per the WHATWG Streams standard, aborting a locked stream returns a promise that rejects with a TypeError, and the handler discards that promise. The unobserved rejection surfaces as an unhandledRejection and, under Node.js's default behavior, terminates the process.

A malicious or compromised WebSocket server can crash a client with a single connection teardown (a TCP reset, a proxy teardown, or a protocol-violating frame). Affected applications are those using the WebSocketStream API and writing through a writer, which is the standard way to write.

All releases from undici 7.0.0 are affected. WebSocketStream was introduced in 7.0.0.

Patches

Upgrade to undici v7.29.1 or v8.10.2.

Workarounds

No workaround is available.

Text from GitHub Advisory Database

Affected versions 8

  • undici, npm>= 7.0.0, < 7.29.1GitHub
  • undici, npm>= 8.0.0, < 8.10.2GitHub
  • undiciaffected: 7.0.0 before 7.29.1CVE List
  • undiciunaffected: 7.29.1CVE List
  • undiciaffected: 8.0.0 before 8.10.2CVE List
  • undiciunaffected: 8.10.2CVE List
  • undici, npmfrom 7.0.0, fixed in 7.29.1OSV
  • undici, npmfrom 8.0.0, fixed in 8.10.2OSV

References 8