Skip to main content
← All vulnerabilities
CVE-2022-39386GHSA-4PCG-WR6C-H9CQ

fastify-websocket vulnerable to uncaught exception via crash on malformed packet

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 5.0.1, 7.1.1
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: partial

Summary

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

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • fastify fastify-websocket

    From 5.0.0 · fixed in 5.0.1; From 6.0.0 · fixed in 7.1.1; through 4.3.0

  • @fastify/websocketnpm

    From 5.0.0 · fixed in 5.0.1

  • @fastify/websocketnpm

    From 6.0.0 · fixed in 7.1.1

  • fastify-websocketnpm

    through 4.3.0

References 1

GitHub · fastify/fastify-websocket