{"id":"CVE-2026-59725","aliases":["CVE-2026-59725","GHSA-r635-g3xr-vw7x"],"related":[],"kind":"vulnerability","state":"published","title":"Socket.IO: Engine.IO Polling Transport Connection Exhaustion","summary":"Socket.IO enables bidirectional and low-latency communication for every platform. From 4.1.0 before 6.6.7, Engine.IO protocol v4 polling transport does not properly close the HTTP response for invalid binary POST requests with Content-Type: application/octet-stream, allowing an unauthenticated attacker to exhaust server-side connections and sockets. This issue is fixed in version 6.6.7.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Socket.IO enables bidirectional and low-latency communication for every platform. From 4.1.0 before 6.6.7, Engine.IO protocol v4 polling transport does not properly close the HTTP response for invalid binary POST requests with Content-Type: application/octet-stream, allowing an unauthenticated attacker to exhaust server-side connections and sockets. This issue is fixed in version 6.6.7.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nAn unauthenticated remote attacker can cause a denial of service in affected versions of **engine.io** by opening Engine.IO polling sessions and sending an invalid binary `POST` request with:\n\n```\nContent-Type: application/octet-stream\n```\n\n\nagainst an Engine.IO protocol v4 polling transport.\n\nIn the vulnerable code path, the server reports a transport error but does not properly close the HTTP response associated with the malformed request. As a result, the underlying HTTP connection may remain open, consuming one server-side socket/resource per crafted request.\n\nAn attacker can repeat this with many sessions to exhaust available HTTP connections, sockets, file descriptors, or related server resources, potentially preventing legitimate clients from connecting.\n\n### Patches\n\nThe issue was fixed in:\n\n- **engine.io `6.6.7`**\n\nThe fix ensures that invalid binary polling `POST` requests are explicitly rejected with an HTTP response and closed properly.\n\nUsers should upgrade to:\n\n```sh\nnpm install engine.io@^6.6.7\n```\n\nor a later fixed version.\n\nIf using Socket.IO through the monorepo/packages, update to a Socket.IO release that depends on a fixed `engine.io` version.\n\n### Workarounds\n\nIf upgrading immediately is not possible, possible mitigations include:\n\n- Block or reject polling `POST` requests with `Content-Type: application/octet-stream` for Engine.IO protocol v4 at a reverse proxy, load balancer, WAF, or application middleware.\n- Disable HTTP long-polling if your deployment can use WebSocket-only transport.\n- Enforce strict request/connection timeouts at the HTTP server, reverse proxy, or load balancer.\n- Apply per-IP rate limits and connection limits for Engine.IO endpoints.\n- Restrict access to the Socket.IO/Engine.IO endpoint where feasible.\n\nExample Socket.IO configuration to disable polling, if compatible with your clients:\n\n```js\nconst io = new Server(httpServer, {\n  transports: [\"websocket\"],\n});\n```\n\n## References\n\n- Fix commit: https://github.com/socketio/socket.io/commit/fc11285e14964c2132d122164bf130c355f60671\n- engine.io changelog entry for `6.6.7`: https://github.com/socketio/socket.io/blob/main/packages/engine.io/CHANGELOG.md#667-2026-04-27\n- socket.io repository: https://github.com/socketio/socket.io\n- engine.io package: https://www.npmjs.com/package/engine.io","format":"markdown","source":"ghsa"},{"lang":"es","text":"Socket.IO permite comunicación bidireccional y de baja latencia para cada plataforma. Desde la versión 4.1.0 anterior a la 6.6.7, el transporte de sondeo del protocolo Engine.IO v4 no cierra correctamente la respuesta HTTP para solicitudes POST binarias no válidas con Content-Type: application/octet-stream, permitiendo a un atacante no autenticado agotar las conexiones y los sockets del lado del servidor. Este problema está solucionado en la versión 6.6.7.","source":"nvd"}],"published":"2026-07-08T15:37:52.293Z","modified":"2026-10-25T20:10:00.147Z","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-404"],"affected":[{"ranges":[{"version":">= 4.1.0, < 6.6.7","status":"affected"}],"vendor":"socketio","product":"engine.io","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"4.1.0","status":"affected","fixed":"6.6.7"}],"ecosystem":"npm","package":"engine.io","purl":"pkg:npm/engine.io","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"4.1.0","fixed":"6.6.7"}],"vendor":"socket","product":"engine.io","cpe":"cpe:2.3:a:socket:engine.io:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/socketio/socket.io/security/advisories/GHSA-r635-g3xr-vw7x","tags":["patch","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/socketio/socket.io/commit/fc11285e14964c2132d122164bf130c355f60671","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/socketio/socket.io/releases/tag/engine.io@6.6.7","tags":["release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-59725","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/socketio/socket.io","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-07-08T16:50:45.800Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-59725","url":"https://www.cve.org/CVERecord?id=CVE-2026-59725","licence":"CVE Terms of Use","modified":"2026-10-14T18:46:37.137Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-r635-g3xr-vw7x","url":"https://github.com/advisories/GHSA-r635-g3xr-vw7x","licence":"CC-BY-4.0","modified":"2026-09-10T03:51:11.922Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-59725","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-59725","licence":"Public domain","modified":"2026-10-25T20:10:00.147Z"}],"updatedAt":"2026-11-25T22:59:27.389Z","epss":{"score":0.00354,"percentile":0.31143,"date":"2026-12-01T12:00:22.000Z"}}