CVE-2022-39386
JavaScript vulnerability analysis and mitigation

Overview

The vulnerability (CVE-2022-39386) affects @fastify/websocket, a WebSocket support package for Fastify. The issue was discovered and disclosed on November 4, 2022, affecting versions 5.0.0 and versions greater than or equal to 6.0.0 but less than 7.1.1. The vulnerability could allow an application using @fastify/websocket to crash when receiving a specific, malformed packet (GitHub Advisory).

Technical details

The vulnerability has been assigned a CVSS v3.1 base score of 7.5 (High severity). The attack vector is Network-based (AV:N) with Low attack complexity (AC:L), requiring No privileges (PR:N) and No user interaction (UI:N). The scope is Unchanged (S:U), with No impact on confidentiality (C:N) or integrity (I:N), but High impact on availability (A:H) (GitHub Advisory).

Impact

The primary impact of this vulnerability is on system availability. When exploited, the vulnerability can cause the application to crash upon receiving a specially crafted malformed packet (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in versions 7.1.1 (for Fastify v4) and 5.0.1 (for Fastify v3). No known workarounds are available, though it may be possible to attach an error handler manually. The recommended solution is to upgrade to the patched versions (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-65959HIGH8.7
  • JavaScriptJavaScript
  • open-webui
NoYesDec 04, 2025
CVE-2025-66032HIGH8.7
  • JavaScriptJavaScript
  • @anthropic-ai/claude-code
NoYesDec 03, 2025
CVE-2025-65945HIGH7.5
  • JavaScriptJavaScript
  • jws
NoYesDec 04, 2025
CVE-2025-66404MEDIUM6.4
  • JavaScriptJavaScript
  • mcp-server-kubernetes
NoYesDec 03, 2025
CVE-2025-66479LOW1.8
  • JavaScriptJavaScript
  • @anthropic-ai/sandbox-runtime
NoYesDec 04, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management