ws
8.23.0 · 12 Nov 2026MIT428.4M / weekRepositorynpmAtom feed
Upgrading ws From 7.5.14 to 8.21.0
37 releases in betweenevery note read
Reading releases, release notes and advisories…
- 17
- changes to make
- 0
- advisories fixed
- 23
- new
- 22
- 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.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.
Release by release
- 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
- Fixed
Fixed an uninitialized memory disclosure issue in
websocket.close()(c0327ec1).
- Fixed
- New
Added exports for the
PerMessageDeflateclass and utilities for theSec-WebSocket-ExtensionsandSec-WebSocket-Protocolheaders (d3503c1f).
- New
- Breaking
Handled a forthcoming breaking change in Node.js core (19984854).
- New
Added the
closeTimeoutoption (#2308).
- Breaking
- Fixed
Fixed a spec violation where the
Sec-WebSocket-Versionheader was not added to the HTTP response if the client requested version was either invalid or unacceptable (#2291).
- Fixed
- Fixed
Fixed an issue that, during message decompression when the maximum size was exceeded, led to the emission of an inaccurate error and closure of the connection with an improper close code (#2285).
- Fixed
- Fixed
The length of the UNIX domain socket paths in the tests has been shortened to make them work when run via [CITGM] (021f7b8b).
- Fixed
- New
Added support for
Blob(#2229).
- New
5 other lines we could not sort, mostly version bumps
- 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.