{"id":"CVE-2022-39386","published":"2022-11-08T00:00:00Z","modified":"2025-04-23T16:39:54Z","title":"fastify-websocket vulnerable to uncaught exception via crash on malformed packet","vendor":"fastify","product":"fastify-websocket","tier":"tail","description":{"text":"@fastify/websocket provides WebSocket support for Fastify. Any application using @fastify/websocket could crash if a specific, malformed packet is sent. All versions of fastify-websocket are also impacted. That module is deprecated, so it will not be patched. This has been patched in version 7.1.1 (fastify v4) and version 5.0.1 (fastify v3). There are currently no known workarounds. However, it should be possible to attach the error handler manually. The recommended path is upgrading to the patched versions.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00921,"percentile":0.58559,"provenance":"source"},"cwes":[{"id":"CWE-248","name":"Uncaught Exception"}],"references":[{"url":"https://github.com/fastify/fastify-websocket/security/advisories/GHSA-4pcg-wr6c-h9cq","tags":[]}],"priority":{"score":17.0,"factors":[{"name":"EPSS percentile","points":11.71},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"fastify","affectedVersions":[{"vendor":"fastify","product":"fastify-websocket","versions":[">= 5.0.0, < 5.0.1",">= 6.0.0, < 7.1.1","<= 4.3.0"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2025-04-23T15:49:19.702238Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@fastify/websocket","vulnerableRanges":[">=5.0.0, <5.0.1",">=6.0.0, <7.1.1"],"patched":["5.0.1","7.1.1"],"from":["GHSA-4pcg-wr6c-h9cq"],"provenance":"source"},{"ecosystem":"npm","package":"fastify-websocket","vulnerableRanges":["<=4.3.0"],"patched":[],"from":["GHSA-4pcg-wr6c-h9cq"],"provenance":"source"}],"summary":{"text":"The fastify-websocket module, which provides WebSocket support for the Fastify framework, contains an uncaught exception flaw that causes the application to crash when it receives a specific malformed packet. An attacker with only network access can trigger it remotely, with no authentication, no user interaction, and no special configuration required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:03:21Z"},"euvd":{"id":"EUVD-2022-7228","exploited":false,"provenance":"source"}}