{"schemaVersion":3,"id":"CVE-2022-39386","aliases":["GHSA-4pcg-wr6c-h9cq"],"status":"published","duplicateOf":null,"title":null,"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 should be possible to attach the error handler manually. The recommended path is upgrading to the patched versions.","dates":{"published":"2022-11-08T00:00:00.000Z","modified":"2025-04-23T16:39:54.047Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.5,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Npm","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00795,"percentile":0.55697,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0.016000000000000042,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.00779},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00779,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00779,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00779,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00779,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00779,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00779,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00779,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00779,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00779,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00779,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00779,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00779,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00779,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00779,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00779,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00779,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00779,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00779,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00779,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00779,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00779,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00779,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00779,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00779,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00779,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00779,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00779,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00779,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00779,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00779,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00795,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00795,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00795,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00795,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00795,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00795,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00795,"percentile":0.55697}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.00779,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00779,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00779,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00779,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00779,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00779,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00779,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00779,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00779,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00779,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00779,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00779,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00779,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00779,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00779,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00779,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00779,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00779,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00779,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00779,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00779,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00779,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00779,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00779,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00795,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00795,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00795,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00795,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00795,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00795,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00795,"percentile":0.55697}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-248","name":"Uncaught Exception","description":"An exception is thrown from a function, but it is not caught.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/248.html"}],"affected":[{"vendor":"fastify","product":"fastify-websocket","name":"fastify-websocket","label":"fastify-websocket","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 5.0.0, < 5.0.1","noFixRecorded":false,"fixedIn":null},{"text":"≥ 6.0.0, < 7.1.1","noFixRecorded":false,"fixedIn":null},{"text":"≤ 4.3.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 5.0.0, < 5.0.1 | ≥ 6.0.0, < 7.1.1 | ≤ 4.3.0","eol":null,"hubHref":"/vendor/fastify/fastify-websocket"},{"vendor":"fastify","product":"websocket","name":"websocket","label":"websocket","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 6.0.0, < 7.1.1","noFixRecorded":false,"fixedIn":null},{"text":"5.0.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 6.0.0, < 7.1.1 | 5.0.0","eol":null,"hubHref":"/vendor/fastify/websocket"},{"vendor":"Npm","product":"fastify-websocket","name":"fastify-websocket","label":"fastify-websocket","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/fastify-websocket","purlType":"npm","versions":[{"text":"≤ 4.3.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 4.3.0","eol":null,"hubHref":null},{"vendor":"@fastify","product":"websocket","name":"@fastify/websocket","label":"websocket","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/@fastify/websocket","purlType":"npm","versions":[{"text":"≥ 5.0.0, < 5.0.1","noFixRecorded":false,"fixedIn":null},{"text":"≥ 6.0.0, < 7.1.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 5.0.0, < 5.0.1 | ≥ 6.0.0, < 7.1.1","eol":null,"hubHref":null}],"affectedCount":4,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/fastify/fastify-websocket/security/advisories/GHSA-4pcg-wr6c-h9cq","label":"github.com/fastify/fastify-websocket/security/advisories/GHSA-4pcg-wr6c-h9cq","hostname":"github.com","tags":["WEB","Third Party Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-39386","label":"nvd.nist.gov/vuln/detail/CVE-2022-39386","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/fastify/fastify-websocket/pull/228","label":"github.com/fastify/fastify-websocket/pull/228","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/fastify/fastify-websocket/commit/7e8c41a51c101c3d5ce88caee4f71d9c29eb2863","label":"github.com/fastify/fastify-websocket/commit/7e8c41a51c101c3d5ce88caee4f71d9c29eb2863","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/fastify/fastify-websocket/commit/c24adeb3efd57a18b2f287c35d029e88b5a47194","label":"github.com/fastify/fastify-websocket/commit/c24adeb3efd57a18b2f287c35d029e88b5a47194","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/fastify/fastify-websocket","label":"github.com/fastify/fastify-websocket","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/fastify/fastify-websocket/releases/tag/v5.0.1","label":"github.com/fastify/fastify-websocket/releases/tag/v5.0.1","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/fastify/fastify-websocket/releases/tag/v7.1.1","label":"github.com/fastify/fastify-websocket/releases/tag/v7.1.1","hostname":"github.com","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2022-11-08T00:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-04-23T16:39:54.047Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":30,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T04:44:48.513Z","stale":false,"partial":false}}