ws
8.23.0 · 12 Nov 2026MIT428.4M / weekRepositorynpmAtom feed
Upgrading ws From 7.5.14 to 8.0.0
1 release in betweenevery note read
Reading releases, release notes and advisories…
- 14
- changes to make
- 0
- advisories fixed
- 0
- new
- 1
- fix
Before you upgrade
Tick each one off as you go- Breaking8.0.0
- Breaking8.0.0
- Breaking8.0.0
- Breaking8.0.0
- Breaking8.0.0
- Breaking8.0.0
- Breaking8.0.0
- Breaking8.0.0
- Breaking8.0.0
- Breaking8.0.0
Security
3 advisories still affect 8.0.0
- ws affected by a DoS when handling a request with many HTTP headershigh · GHSA-3h5v-q93c-6h6q
- ws: Uninitialized memory disclosuremoderate · GHSA-58qx-3vcg-4xpx
- ws: Memory exhaustion DoS from tiny fragments and data chunkshigh · GHSA-96hv-2xvq-fx4p
Upgrading to 8.21.0 clears them.
Release by release
- Breaking
The
WebSocketconstructor now throws aSyntaxErrorif any of the subprotocol names are invalid or duplicated (0aecf0c9). - Breaking
The server now aborts the opening handshake if an invalid
Sec-WebSocket-Protocolheader field value is received (1877ddeb). - Breaking
The
protocolsargument ofhandleProtocolshook is no longer anArraybut aSet(1877ddeb). - Breaking
The opening handshake is now aborted if the
Sec-WebSocket-Extensionsheader field value is empty or it begins or ends with a white space (e814110e).
- 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.