{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-39386","id":"CVE-2022-39386","title":"fastify-websocket vulnerable to uncaught exception via crash on malformed packet","description":"@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 sh","descriptionLong":"@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.","published":"2022-11-08T00:00:00.000Z","updated":"2026-10-28T02:30:44.891886751Z","reserved":"2022-09-02T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"GitHub_M","metric":{"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","rating":"high","source":"GitHub_M"},"metrics":[{"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","rating":"high","source":"GitHub_M"},{"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","rating":"high","source":"github.com"},{"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","rating":"high","source":"NVD"},{"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","rating":"high","source":"OSV"},{"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","rating":"high","source":"GitHub"}],"rating":"high","products":["fastify-websocket"],"affectedProducts":[{"vendor":"fastify","product":"fastify-websocket","defaultStatus":null,"versions":[{"version":">= 5.0.0, < 5.0.1","status":"affected"},{"version":">= 6.0.0, < 7.1.1","status":"affected"},{"version":"<= 4.3.0","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"@fastify/websocket","purl":"pkg:npm/%40fastify/websocket","ranges":[">=5.0.0 <5.0.1",">=6.0.0 <7.1.1"],"fixed":["5.0.1","7.1.1"],"advisory":"GHSA-4pcg-wr6c-h9cq"},{"ecosystem":"npm","name":"fastify-websocket","purl":"pkg:npm/fastify-websocket","ranges":["<=4.3.0"],"fixed":[],"advisory":"GHSA-4pcg-wr6c-h9cq"}],"cwes":["CWE-248"],"aliases":["GHSA-4pcg-wr6c-h9cq"],"references":[{"url":"https://github.com/fastify/fastify-websocket/security/advisories/GHSA-4pcg-wr6c-h9cq","tags":["x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/39xxx/CVE-2022-39386.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-39386","tags":["advisory"]},{"url":"https://github.com/fastify/fastify-websocket/pull/228","tags":["web"]},{"url":"https://github.com/fastify/fastify-websocket/commit/7e8c41a51c101c3d5ce88caee4f71d9c29eb2863","tags":["web"]},{"url":"https://github.com/fastify/fastify-websocket/commit/c24adeb3efd57a18b2f287c35d029e88b5a47194","tags":["web"]},{"url":"https://github.com/fastify/fastify-websocket","tags":["package"]},{"url":"https://github.com/fastify/fastify-websocket/releases/tag/v5.0.1","tags":["web"]},{"url":"https://github.com/fastify/fastify-websocket/releases/tag/v7.1.1","tags":["web"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial"},"epss":0.00864,"epssPercentile":0.59364,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-39386","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-39386","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-39386","ok":true,"note":"2 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-4pcg-wr6c-h9cq","ok":true,"note":"GHSA-4pcg-wr6c-h9cq"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-39386","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}