{"id":"CVE-2022-21676","aliases":["CVE-2022-21676","GHSA-273r-mgr4-v34f"],"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. 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 starting from version `4.0.0`, including those who uses depending packages like `socket.io`. Versions prior to `4.0.0` are not impacted. A fix has been released for each major branch, namely `4.1.2` for the `4.x.x` branch, `5.2.1` for the `5.x.x` branch, and `6.1.1` for the `6.x.x` branch. 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. 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 starting from version `4.0.0`, including those who uses depending packages like `socket.io`. Versions prior to `4.0.0` are not impacted. A fix has been released for each major branch, namely `4.1.2` for the `4.x.x` branch, `5.2.1` for the `5.x.x` branch, and `6.1.1` for the `6.x.x` branch. 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> RangeError: Invalid WebSocket frame: RSV2 and RSV3 must be clear\n>   at Receiver.getInfo (/.../node_modules/ws/lib/receiver.js:176:14)\n>   at Receiver.startLoop (/.../node_modules/ws/lib/receiver.js:136:22)\n>   at Receiver._write (/.../node_modules/ws/lib/receiver.js:83:10)\n>   at writeOrBuffer (internal/streams/writable.js:358:12)\n\nThis impacts all the users of the [`engine.io`](https://www.npmjs.com/package/engine.io) package starting from version `4.0.0`, 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 for each major branch:\n\n| Version range | Fixed version |\n| --- | --- |\n| `engine.io@4.x.x` | `4.1.2` |\n| `engine.io@5.x.x` | `5.2.1` |\n| `engine.io@6.x.x` | `6.1.1` |\n\nPrevious versions (`< 4.0.0`) are not impacted.\n\nFor `socket.io` users:\n\n| Version range | `engine.io` version | Needs minor update? |\n| --- | --- | --- |\n| `socket.io@4.4.x` | `~6.1.0` | -\n| `socket.io@4.3.x` | `~6.0.0` | Please upgrade to `socket.io@4.4.x`\n| `socket.io@4.2.x` | `~5.2.0` | -\n| `socket.io@4.1.x` | `~5.1.1` | Please upgrade to `socket.io@4.4.x`\n| `socket.io@4.0.x` | `~5.0.0` | Please upgrade to `socket.io@4.4.x`\n| `socket.io@3.1.x` | `~4.1.0` | -\n| `socket.io@3.0.x` | `~4.0.0` | Please upgrade to `socket.io@3.1.x` or `socket.io@4.4.x` (see [here](https://socket.io/docs/v4/migrating-from-3-x-to-4-0/))\n\nIn most cases, running `npm audit fix` should be sufficient. You can also use  `npm update engine.io --depth=9999`.\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 Marcus Wejderot from Mevisio for the responsible disclosure.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Engine.IO es la implementación de la capa de comunicación bidireccional entre navegadores y dispositivos para Socket.IO. Una petición HTTP especialmente diseñada puede desencadenar una excepción no capturada en el servidor de Engine.IO, matando así el proceso de Node.js. Esto afecta a todos los usuarios del paquete \"engine.io\" a partir de la versión \"4.0.0\", incluyendo aquellos que usan paquetes dependientes como \"socket.io\". Las versiones anteriores a \"4.0.0\" no están afectadas. Ha sido publicado una corrección para cada rama principal, a saber, \"4.1.2\" para la rama \"4.x.x\", \"5.2.1\" para la rama \"5.x.x\", y \"6.1.1\" para la rama \"6.x.x\". No se presenta ninguna medida de mitigación conocida, excepto la actualización a una versión segura","source":"nvd"}],"published":"2022-01-12T18:25:15.000Z","modified":"2026-06-17T04:26:44.410Z","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"},{"scorer":"NVD","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":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","score":5,"rating":"MEDIUM"}],"cwes":["CWE-754","CWE-755"],"affected":[{"ranges":[{"version":">= 4.0.0, < 4.1.2","status":"affected"},{"version":">= 5.0.0, < 5.2.1","status":"affected"},{"version":">= 6.0.0, < 6.1.1","status":"affected"}],"vendor":"socketio","product":"engine.io","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"4.0.0","status":"affected","fixed":"4.1.2"}],"ecosystem":"npm","package":"engine.io","purl":"pkg:npm/engine.io","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"5.0.0","status":"affected","fixed":"5.2.1"}],"ecosystem":"npm","package":"engine.io","purl":"pkg:npm/engine.io","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"6.0.0","status":"affected","fixed":"6.1.1"}],"ecosystem":"npm","package":"engine.io","purl":"pkg:npm/engine.io","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"4.0.0","fixed":"4.1.2"},{"status":"affected","introduced":"5.0.0","fixed":"5.2.1"},{"status":"affected","introduced":"6.0.0","fixed":"6.1.1"}],"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-273r-mgr4-v34f","tags":["third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/socketio/engine.io/commit/66f889fc1d966bf5bfa0de1939069153643874ab","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/socketio/engine.io/commit/a70800d7e96da32f6e6622804ef659ebc58659db","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/socketio/engine.io/commit/c0e194d44933bd83bf9a4b126fca68ba7bf5098c","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/socketio/engine.io/releases/tag/4.1.2","tags":["release-notes","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/socketio/engine.io/releases/tag/5.2.1","tags":["release-notes","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/socketio/engine.io/releases/tag/6.1.1","tags":["release-notes","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://security.netapp.com/advisory/ntap-20220209-0002/","tags":["third-party-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-21676","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/socketio/engine.io","tags":["web"],"sources":["ghsa"]},{"url":"https://security.netapp.com/advisory/ntap-20220209-0002","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2025-04-23T15:58:14.583Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-21676","url":"https://www.cve.org/CVERecord?id=CVE-2022-21676","licence":"CVE Terms of Use","modified":"2025-04-23T19:13:15.800Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-273r-mgr4-v34f","url":"https://github.com/advisories/GHSA-273r-mgr4-v34f","licence":"CC-BY-4.0","modified":"2023-11-08T04:08:07.289Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-21676","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-21676","licence":"Public domain","modified":"2026-06-17T04:26:44.410Z"}],"updatedAt":"2026-11-25T22:58:09.219Z","epss":{"score":0.02851,"percentile":0.87091,"date":"2026-12-01T12:00:22.000Z"}}