Lookup for vulnerable packages by Package URL.

Purlpkg:npm/%40fastify/websocket@5.0.0
Typenpm
Namespace@fastify
Namewebsocket
Version5.0.0
Qualifiers
Subpath
Is_vulnerabletrue
Next_non_vulnerable_version5.0.1
Latest_non_vulnerable_version7.1.1
Affected_by_vulnerabilities
0
url VCID-cxpn-nqmb-h7gv
vulnerability_id VCID-cxpn-nqmb-h7gv
summary
fastify/websocket vulnerable to uncaught exception via crash on malformed packet
### 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](https://github.com/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](https://github.com/fastify/fastify-websocket)
* Email us at [hello@matteocollina.com](mailto:hello@matteocollina.com)
references
0
reference_url https://api.first.org/data/v1/epss?cve=CVE-2022-39386
reference_id
reference_type
scores
0
value 0.00334
scoring_system epss
scoring_elements 0.56609
published_at 2026-06-06T12:55:00Z
1
value 0.00334
scoring_system epss
scoring_elements 0.56601
published_at 2026-06-09T12:55:00Z
2
value 0.00334
scoring_system epss
scoring_elements 0.56583
published_at 2026-06-08T12:55:00Z
3
value 0.00334
scoring_system epss
scoring_elements 0.56598
published_at 2026-06-07T12:55:00Z
4
value 0.00334
scoring_system epss
scoring_elements 0.5655
published_at 2026-06-04T12:55:00Z
5
value 0.00334
scoring_system epss
scoring_elements 0.56603
published_at 2026-06-05T12:55:00Z
url https://api.first.org/data/v1/epss?cve=CVE-2022-39386
1
reference_url https://github.com/fastify/fastify-websocket
reference_id
reference_type
scores
0
value 7.5
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
1
value HIGH
scoring_system generic_textual
scoring_elements
url https://github.com/fastify/fastify-websocket
2
reference_url https://github.com/fastify/fastify-websocket/commit/7e8c41a51c101c3d5ce88caee4f71d9c29eb2863
reference_id
reference_type
scores
0
value 7.5
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
1
value HIGH
scoring_system generic_textual
scoring_elements
url https://github.com/fastify/fastify-websocket/commit/7e8c41a51c101c3d5ce88caee4f71d9c29eb2863
3
reference_url https://github.com/fastify/fastify-websocket/commit/c24adeb3efd57a18b2f287c35d029e88b5a47194
reference_id
reference_type
scores
0
value 7.5
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
1
value HIGH
scoring_system generic_textual
scoring_elements
url https://github.com/fastify/fastify-websocket/commit/c24adeb3efd57a18b2f287c35d029e88b5a47194
4
reference_url https://github.com/fastify/fastify-websocket/pull/228
reference_id
reference_type
scores
0
value 7.5
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
1
value HIGH
scoring_system generic_textual
scoring_elements
url https://github.com/fastify/fastify-websocket/pull/228
5
reference_url https://github.com/fastify/fastify-websocket/releases/tag/v5.0.1
reference_id
reference_type
scores
0
value 7.5
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
1
value HIGH
scoring_system generic_textual
scoring_elements
url https://github.com/fastify/fastify-websocket/releases/tag/v5.0.1
6
reference_url https://github.com/fastify/fastify-websocket/releases/tag/v7.1.1
reference_id
reference_type
scores
0
value 7.5
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
1
value HIGH
scoring_system generic_textual
scoring_elements
url https://github.com/fastify/fastify-websocket/releases/tag/v7.1.1
7
reference_url https://github.com/fastify/fastify-websocket/security/advisories/GHSA-4pcg-wr6c-h9cq
reference_id
reference_type
scores
0
value 7.5
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
1
value HIGH
scoring_system cvssv3.1_qr
scoring_elements
2
value HIGH
scoring_system generic_textual
scoring_elements
3
value Track
scoring_system ssvc
scoring_elements SSVCv2/E:N/A:Y/T:P/P:M/B:A/M:M/D:T/2025-04-23T15:49:19Z/
url https://github.com/fastify/fastify-websocket/security/advisories/GHSA-4pcg-wr6c-h9cq
8
reference_url https://nvd.nist.gov/vuln/detail/CVE-2022-39386
reference_id
reference_type
scores
0
value 7.5
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
1
value HIGH
scoring_system generic_textual
scoring_elements
url https://nvd.nist.gov/vuln/detail/CVE-2022-39386
9
reference_url https://github.com/advisories/GHSA-4pcg-wr6c-h9cq
reference_id GHSA-4pcg-wr6c-h9cq
reference_type
scores
0
value HIGH
scoring_system cvssv3.1_qr
scoring_elements
url https://github.com/advisories/GHSA-4pcg-wr6c-h9cq
fixed_packages
0
url pkg:npm/%40fastify/websocket@5.0.1
purl pkg:npm/%40fastify/websocket@5.0.1
is_vulnerable false
affected_by_vulnerabilities
resource_url http://public2.vulnerablecode.io/packages/pkg:npm/%2540fastify/websocket@5.0.1
1
url pkg:npm/%40fastify/websocket@7.1.1
purl pkg:npm/%40fastify/websocket@7.1.1
is_vulnerable false
affected_by_vulnerabilities
resource_url http://public2.vulnerablecode.io/packages/pkg:npm/%2540fastify/websocket@7.1.1
aliases CVE-2022-39386, GHSA-4pcg-wr6c-h9cq, GMS-2022-6369, GMS-2022-6380
risk_score 4.0
exploitability 0.5
weighted_severity 8.0
resource_url http://public2.vulnerablecode.io/vulnerabilities/VCID-cxpn-nqmb-h7gv
Fixing_vulnerabilities
Risk_score4.0
Resource_urlhttp://public2.vulnerablecode.io/packages/pkg:npm/%2540fastify/websocket@5.0.0