CVE-2022-39386: Fastify WebSocket - Denial of Service
- Cve: CVE-2022-39386
- Name: Fastify WebSocket - Denial of Service
- 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.
- Impact: Attackers can cause application crashes or denial of service by sending malformed WebSocket packets.
- Remediation: Upgrade to version 7.1.1 (fastify v4) or 5.0.1 (fastify v3).
- Vulnerability impact: denial_of_service
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.5
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Epss score: 0.00864
- Epss percentile: 0.5953
- Assignee: [email protected]
- Published at: 2022-11-08T22:15:15Z
- Age in days: 1477
- Modified at: 2026-06-17T04:58:15Z
- Patch available: yes
- References total: 1
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-39386
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: vulnerability type, requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-248 | Uncaught Exception |
| NVD-CWE-noinfo | — |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/fastify/fastify-websocket/security/advisories/GHSA-4pcg-wr6c-h9cq | nvd | Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| fastify:websocket | >= 6.0.0, < 7.1.1; = 5.0.0 | no | nvd | /v1/products/fastify/websocket |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| fastify/fastify-websocket | commit, package, pull, releases, security_advisory | yes | /v1/repositories/fastify/fastify-websocket |
Index
- Repositories: 1
- Repositories high signal: 1
- Packages: 1
Exploitation
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts