ws
8.23.0 · 12 Nov 2026MIT428.4M / weekRepositorynpmAtom feed
Upgrading ws From 5.2.8 to 8.23.0
92 releases in betweenevery note read
Reading releases, release notes and advisories…
- 24
- changes to make
- 0
- advisories fixed
- 35
- new
- 84
- fixes
Before you upgrade
Tick each one off as you go- Breaking8.19.0
- Breaking8.17.0
- Breaking8.15.1
- Breaking8.0.0
- Breaking8.0.0
- Breaking8.0.0
- Breaking8.0.0
- Breaking8.0.0
- Breaking8.0.0
- Breaking8.0.0
Security
- 8.23.0
Fixed a remote memory exhaustion DoS vulnerability (ace7248f).
- 8.21.0
Fixed a remote memory exhaustion DoS vulnerability (2b2abd45).
- 8.21.0
The vulnerability was responsibly disclosed and fixed by Nadav Magier.
- 8.17.1
Fixed a DoS vulnerability (#2231).
- 8.17.1
The vulnerability was reported by Ryan LaPointe in #2230.
- 7.4.6
Fixed a ReDoS vulnerability (00c425ec).
- 7.4.6
The vulnerability was responsibly disclosed along with a fix in private by
Release by release
- Security
Fixed a remote memory exhaustion DoS vulnerability (ace7248f).
- New
Introduced the
maxPendingAutoPongsoption (ace7248f). - Fixed
- Fixed
- Security
- Fixed
The userinfo of the URL is now percent-decoded (#2352).
- Fixed
The
WebSocketconstructor no longer mutates http: or https:url.URLobjects (#2353).
- Fixed
- Fixed
The path of IPC URLs is no longer truncated at
:(#2344).
- Fixed
- New
Introduced the
protocolsoption (8b918b01). - Fixed
Calling
websocket.close()with invalid arguments no longer transitions the state toWebSocket.CLOSING(#2337).
- New
- Fixed
The server now correctly rejects permessage-deflate offers if the incoming
client_max_window_bitsparameter value is smaller than its configuredclientMaxWindowBits(e97a20ea).
- Fixed
- Fixed
Fixed a test for [CITGM] (2eb3be0b).
- Fixed
- Fixed
Empty fragments are now counted toward the limit (a2f4e7c0).
- Fixed
The default values of the
maxBufferedChunksandmaxFragmentsoptions have been reduced (f197ac65).
- Fixed
- Security
Fixed a remote memory exhaustion DoS vulnerability (2b2abd45).
- Security
The vulnerability was responsibly disclosed and fixed by Nadav Magier.
- New
Introduced the
maxBufferedChunksandmaxFragmentsoptions (2b2abd45).
- Security
7 other lines we could not sort, mostly version bumps
- 8.22.1
[
http.websocketMask()] and [http.websocketUnmask()] are now used instead of thebufferutilvariants when available (2ab3d3e5). - 8.22.1
Sender.frame()no longer returns empty chunks (85319a72). - 8.17.0
The default value of the
allowSynchronousEventsoption has been changed totrue(#2221). - 8.15.1
The
allowMultipleEventsPerMicrotaskoption has been renamed toallowSynchronousEvents(4ed7fe58). - 8.14.0
At most one event per microtask is now emitted (#2160).
- 8.12.0
[
buffer.isUtf8()] is now used instead ofutf-8-validateif available (42d79f60). - 8.4.1
To improve performance, strings sent via
websocket.ping(),websocket.pong(), andwebsocket.send()are no longer converted toBuffers if the data does not need to be masked (#2000).
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.