ws
8.23.0 · 12 Nov 2026MIT428.4M / weekRepositorynpmAtom feed
Upgrading ws From 4.1.0 to 5.0.0
1 release in betweenevery note read
Reading releases, release notes and advisories…
- 3
- changes to make
- 0
- advisories fixed
- 1
- new
- 0
- fixes
Before you upgrade
Tick each one off as you go- Breaking5.0.0
- Breaking5.0.0
- Breaking5.0.0
Security
3 advisories still affect 5.0.0
- ws affected by a DoS when handling a request with many HTTP headershigh · GHSA-3h5v-q93c-6h6q
- ReDoS in Sec-Websocket-Protocol headermoderate · GHSA-6fc8-4gx4-v693
- ws: Memory exhaustion DoS from tiny fragments and data chunkshigh · GHSA-96hv-2xvq-fx4p
Upgrading to 5.2.5 clears them.
Release by release
- 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). - New
Read backpressure is now properly handled when permessage-deflate is enabled (#1302).
- Breaking
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.