7.5

CVE-2022-39386: fastify-websocket vulnerable to uncaught exception via crash on malformed packet

Modified
AliasesGHSA-4pcg-wr6c-h9cq
Published 08-11-2022Last modified 23-04-2025

Vulnerability summary

CVE-2022-39386 is a high (CVSS 7.5) Uncaught Exception vulnerability in fastify fastify-websocket. EPSS estimates a 0.88% chance of exploitation in the next 30 days, higher than 60.4% of scored vulnerabilities.

Priority
Prioritisesevere

Severe, CVSS 7.5 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)

Source freshness unavailable

How is this decided?
CVSS score
7.5/10
010
High · v3.1 (CVE.org)
EPSS score
0.88%
0%100%
Low · +0.09 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Timeline

  1. 08-11-2022
    PublishedVulnerability first disclosed.
  2. 23-04-2025
    Last modifiedVulnerability information updated.

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.

CVSS metrics

3 scores · 3 sources · 1 version

EPSS trend

Probability

0.88%

Chance of exploitation in the next 30 days

Percentile

60%

Versus all other CVEs

30-day change

Increase +0.09 pp

From 0.80% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

Fastify2 products
@fastify1 product
  • websocket≥ 5.0.0, < 5.0.1 | ≥ 6.0.0, < 7.1.1
Npm1 product
  • fastify-websocket≤ 4.3.0

3 vendors · 4 products

References

8 links