Live threats

All CVEs / Fastify

CVE-2022-39386Fastify Websocket

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
0.9%
probability of exploitation in 30 days · percentile 60
Auth required
No
Published
Nov 8, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-248
SSVC (CISA)
Exploitation: none · Automatable: yes · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

What happens

@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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Websocket.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm @fastify/websocket ≥ 5.0.0 < 5.0.1 5.0.1 npm install @fastify/websocket@5.0.1
npm @fastify/websocket ≥ 6.0.0 < 7.1.1 7.1.1 npm install @fastify/websocket@7.1.1
npm fastify-websocket ≤ 4.3.0 no fixed version —

Per OSV / GitHub Advisories (GHSA-4pcg-wr6c-h9cq). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
fastifywebsocket≥ 6.0.0 < 7.1.1
fastifywebsocket5.0.0

Official sources

References

Links published by the sources. Open them with care.