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

Published Nov 8, 2022
·
Updated

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

Affected Software

2 affected components
fastify Websocket Node.js>=6.0.0<7.1.1
fastify Websocket Node.js=5.0.0

Event History

Nov 8, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2022-39386?

CVE-2022-39386 has been classified as high severity due to the potential crash of applications using @fastify/websocket.

2

How do I fix CVE-2022-39386?

CVE-2022-39386 cannot be fixed since the @fastify/websocket module is deprecated and will not receive a patch.

3

Which versions of Fastify Websocket are affected by CVE-2022-39386?

All versions of Fastify Websocket, including those between 6.0.0 and 7.1.1 and 5.0.0, are affected by CVE-2022-39386.

4

What is the main risk associated with CVE-2022-39386?

The main risk associated with CVE-2022-39386 is that an application can crash upon receiving a specific, malformed WebSocket packet.

5

Is there a recommended alternative to @fastify/websocket due to CVE-2022-39386?

Due to the deprecation of @fastify/websocket, it is advisable to look for alternative WebSocket libraries that are actively maintained and secure.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203