ws
8.23.0 · 12 Nov 2026MIT428.4M / weekRepositorynpmAtom feed
5.2.8 is the newest release of 5.x.
In short
3 breaking1 new
- Breaking
Dropped support for Node.js < 4.5.0 (#1313).
- Breaking
The connection is no longer closed if the server does not agree to any of the client's requested subprotocols (#1312).
- Breaking
net.Socketerrors are no longer re-emitted (a4050db).
Security
3 advisories affect 5.0.0; 5.2.5 fixes them
- Highws: Memory exhaustion DoS from tiny fragments and data chunksGHSA-96hv-2xvq-fx4p · 15 Jun 2026Fixed in 5.2.5
- Highws affected by a DoS when handling a request with many HTTP headersGHSA-3h5v-q93c-6h6q · 17 Jun 2024Fixed in 5.2.4
- ModerateReDoS in Sec-Websocket-Protocol headerGHSA-6fc8-4gx4-v693 · 28 May 2021Fixed in 5.2.3
Release note
Breaking changes
- Breaking
Dropped support for Node.js < 4.5.0 (#1313).
- Breaking
The connection is no longer closed if the server does not agree to any of
the client's requested subprotocols (#1312). - Breaking
net.Socketerrors are no longer re-emitted (a4050db).
Features
Read backpressure is now properly handled when permessage-deflate is enabled
(#1302).
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.