{"id":"CVE-2023-31125","aliases":["CVE-2023-31125","GHSA-q9mw-68c2-j6m5"],"related":[],"kind":"vulnerability","state":"published","title":"Uncaught exception in engine.io","summary":"Engine.IO is the implementation of transport-based cross-browser/cross-device bi-directional communication layer for Socket.IO. An uncaught exception vulnerability was introduced in version 5.1.0 and included in version 4.1.0 of the `socket.io` parent package. Older versions are not impacted. A specially crafted HTTP request can trigger an uncaught exception on the Engine.IO server, thus killing the Node.js process. This impacts all the users of the `engine.io` package, including those who use depending packages like `socket.io`. This issue was fixed in version 6.4.2 of Engine.IO. There is no known workaround except upgrading to a safe version.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Engine.IO is the implementation of transport-based cross-browser/cross-device bi-directional communication layer for Socket.IO. An uncaught exception vulnerability was introduced in version 5.1.0 and included in version 4.1.0 of the `socket.io` parent package. Older versions are not impacted. A specially crafted HTTP request can trigger an uncaught exception on the Engine.IO server, thus killing the Node.js process. This impacts all the users of the `engine.io` package, including those who use depending packages like `socket.io`. This issue was fixed in version 6.4.2 of Engine.IO. There is no known workaround except upgrading to a safe version.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nA specially crafted HTTP request can trigger an uncaught exception on the Engine.IO server, thus killing the Node.js process.\n\n```\nTypeError: Cannot read properties of undefined (reading 'handlesUpgrades')\n    at Server.onWebSocket (build/server.js:515:67)\n```\n\nThis impacts all the users of the [`engine.io`](https://www.npmjs.com/package/engine.io) package, including those who uses depending packages like [`socket.io`](https://www.npmjs.com/package/socket.io).\n\n### Patches\n\nA fix has been released today (2023/05/02): [6.4.2](https://github.com/socketio/engine.io/releases/tag/6.4.2)\n\nThis bug was introduced in version 5.1.0 and included in version 4.1.0 of the `socket.io` parent package. Older versions are not impacted.\n\nFor `socket.io` users:\n\n| Version range               | `engine.io` version | Needs minor update?                                                                                    |\n|-----------------------------|---------------------|--------------------------------------------------------------------------------------------------------|\n| `socket.io@4.6.x`           | `~6.4.0`            | `npm audit fix` should be sufficient                                                                   |\n| `socket.io@4.5.x`           | `~6.2.0`            | Please upgrade to `socket.io@4.6.x`                                                                    |\n| `socket.io@4.4.x`           | `~6.1.0`            | Please upgrade to `socket.io@4.6.x`                                                                    |\n| `socket.io@4.3.x`           | `~6.0.0`            | Please upgrade to `socket.io@4.6.x`                                                                    |\n| `socket.io@4.2.x`           | `~5.2.0`            | Please upgrade to `socket.io@4.6.x`                                                                    |\n| `socket.io@4.1.x`           | `~5.1.1`            | Please upgrade to `socket.io@4.6.x`                                                                    |\n| `socket.io@4.0.x`           | `~5.0.0`            | Not impacted |\n| `socket.io@3.1.x`           | `~4.1.0`            | Not impacted |\n| `socket.io@3.0.x`           | `~4.0.0`            | Not impacted |\n| `socket.io@2.5.0`           | `~3.6.0`            | Not impacted |\n| `socket.io@2.4.x` and below | `~3.5.0`            | Not impacted |\n\n### Workarounds\n\nThere is no known workaround except upgrading to a safe version.\n\n### For more information\n\nIf you have any questions or comments about this advisory:\n\n* Open an issue in [`engine.io`](https://github.com/socketio/engine.io)\n\nThanks to Thomas Rinsma from Codean for the responsible disclosure.","format":"markdown","source":"ghsa"}],"published":"2023-05-03T21:56:51.000Z","modified":"2026-09-10T03:50:08.184Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":6.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":6.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-248"],"affected":[{"ranges":[{"version":">= 5.1.0, < 6.4.2","status":"affected"}],"vendor":"socketio","product":"engine.io","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"5.1.0","status":"affected","fixed":"6.4.2"}],"ecosystem":"npm","package":"engine.io","purl":"pkg:npm/engine.io","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"5.1.0","fixed":"6.4.2"}],"vendor":"socket","product":"engine.io","cpe":"cpe:2.3:a:socket:engine.io:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/socketio/engine.io/security/advisories/GHSA-q9mw-68c2-j6m5","tags":["vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/socketio/engine.io/commit/fc480b4f305e16fe5972cf337d055e598372dc44","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/socketio/engine.io/releases/tag/6.4.2","tags":["release-notes","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://security.netapp.com/advisory/ntap-20230622-0002/","tags":["x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-31125","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/socketio/engine.io","tags":["package"],"sources":["ghsa"]},{"url":"https://security.netapp.com/advisory/ntap-20230622-0002","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-01-29T14:56:37.468Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-31125","url":"https://www.cve.org/CVERecord?id=CVE-2023-31125","licence":"CVE Terms of Use","modified":"2025-02-13T16:49:44.361Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-q9mw-68c2-j6m5","url":"https://github.com/advisories/GHSA-q9mw-68c2-j6m5","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:08.184Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-31125","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-31125","licence":"Public domain","modified":"2026-06-17T05:56:19.340Z"}],"updatedAt":"2026-11-25T22:58:23.981Z","epss":{"score":0.01327,"percentile":0.71822,"date":"2026-12-01T12:00:22.000Z"}}