CVE-2022-39386 fastify-websocket vulnerable to uncaught exception via crash on malformed packet
HighCVSS 7.5
EPSS 0.86%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: partial
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.
Upgrade path
4 packages: 3 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| fastify @fastify/websocket | = 5.0.0; >= 6.0.0, < 7.1.1 | 7.1.1 | Fixed |
| fastify @fastify/websocket(npm) | >= 5.0.0, < 5.0.1; >= 6.0.0, < 7.1.1 | 5.0.1, 7.1.1 | Fixed |
| npm fastify-websocket(npm) | <= 4.3.0 | after 4.3.0 | Fixed |
| fastify-websocket | = <= 4.3.0; = >= 5.0.0, < 5.0.1; = >= 6.0.0, < 7.1.1 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| fastify @fastify/websocket(npm) | >= 6.0.0, < 7.1.1 | 7.1.1 |
| npm fastify-websocket(npm) | <= 4.3.0 | No fix listed |
| fastify @fastify/websocket(npm) | >= 5.0.0, < 5.0.1 | 5.0.1 |
| fastify-websocket | = >= 5.0.0, < 5.0.1 | No fix listed |
| fastify-websocket | = >= 6.0.0, < 7.1.1 | No fix listed |
| fastify-websocket | = <= 4.3.0 | No fix listed |
| fastify @fastify/websocket | >= 6.0.0, < 7.1.1 | 7.1.1 |
| fastify @fastify/websocket | = 5.0.0 | No fix listed |
References
- github.com third-party-advisory vendor-advisory
- github.com
- github.com
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com patch
- github.com patch
- github.com patch
- github.com
- github.com product