undici WebSocket client can crash Node.js when connecting to a malicious server
A Node.js app using this library can be made to crash by a hostile server it connects to over a WebSocket. Updating the library stops the crash.
| Severity | HighCVSS 7.5 of 10 |
|---|---|
| Being exploited? | UnclearNo reports either way yet |
| Fix available? | Yes8.11.2 · since 27 Oct 2026 |
| How sure is this? | Official sourceBacked by an official source |
How the attack works simplified
- 1Malicious serverHosts a hostile WebSocket endpoint over HTTP/2
- 2Client connectsApp opens WebSocket via undici 8.11.0/8.11.1
- 3Failed handshakeServer sends invalid upgrade response; abort is a no-op
- 4Stream left openStream has no error listener
- 5Process exitsServer destroys connection; unhandled error crashes Node.js
- ResultClient Node.js process crashes
What happened
In undici 8.11.0 and 8.11.1, the experimental WebSocket client over HTTP/2 leaves an underlying stream open without an error listener after a failed handshake; when the server destroys the connection, the unhandled error exits the Node.js process.
Are you affected?
You are affected if you use undici 8.11.0 or 8.11.1 in Node.js and open WebSocket connections (HTTP/2 enabled by default via allowH2: true) to servers you do not fully trust.
| Package / product | Affected versions | Fixed in |
|---|---|---|
| undici · npm | >= 8.11.0, < 8.11.2 | 8.11.2 |
What to do
- Upgrade undici to 8.11.2 or later
- Until upgraded, set allowH2: false to disable HTTP/2 for WebSocket connections
- Avoid opening WebSocket connections to untrusted servers until the update is applied
Timeline
- 27 Oct 2026, 16:09 UTCPublicly disclosed
- 27 Oct 2026, 16:09 UTCReported by GitHub Advisory · GitHub Advisory
- 27 Oct 2026, 16:11 UTCPicked up by Zero Radar
Sources 1 report, oldest first
Official vendor, government CERT or advisory database
- undici WebSocket client vulnerable to Denial of Service via failed HTTP/2 handshakeGitHub Advisory · 27 Oct 2026, 16:09 UTC
Technical details
- ID
- CVE-2026-109855 · GHSA-qq8j-7v2v-3rwp
- CVSS
- 7.5 / 10
- EPSS
- 0.3% chance of exploitation within 30 days
- Disclosed
- 27 Oct 2026, 16:09 UTC
- On Zero Radar
- 27 Oct 2026, 16:11 UTC (1 min after disclosure)
- Last change
- 27 Oct 2026, 16:11 UTC
The plain-language parts and the attack diagram were written by an AI model (anthropic/claude-haiku-5.5) from the sources above. Facts like versions, exploitation and dates come from the sources themselves. How Zero Radar works