Packages / @fastify/websocket / Security
fastify/websocket vulnerable to uncaught exception via crash on malformed packet
Affected releases · @fastify/websocket
- 7.x7.0.0 – 7.1.0Fixed in 7.1.1
- 6.x6.0.0 – 6.0.1No fix on this line yet
- 5.x5.0.0Fixed in 5.0.1
On 7.x, the newest line:
npm install @fastify/websocket@7.1.1Every release on a timeline
Not affected
11.0.0 – 11.3.4
10 releases, latest
Affected
7.0.0 – 7.1.0
3 releases
Fixed
7.1.1 – 7.2.0
4 releases
Affected
6.0.0 – 6.0.1
2 releases
Affected
5.0.0
1 release
Fixed
5.0.1
1 release
What happens
Impact
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.
Patches
This has been patched in v7.1.1 (fastify v4) and v5.0.1 (fastify v3).
Workarounds
No known workaround is available. However, it should be possible to attach the error handler manually. The recommended path is upgrading to the patched versions.
Credits
marcolanaro for finding and patching this vulnerability
For more information
If you have any questions or comments about this advisory:
Open an issue in @fastify/websocket
Email us at hello@matteocollina.com