ws
8.23.0 · 12 Nov 2026MIT428.4M / weekRepositorynpmAtom feed
Upgrading ws From 8.18.1 to 8.21.0
6 releases in betweenevery note read
Reading releases, release notes and advisories…
Before you upgrade
Tick each one off as you go- Breaking8.19.0
Security
Fixes 2 advisories affecting 8.18.1
- ws: Uninitialized memory disclosuremoderate · GHSA-58qx-3vcg-4xpx
- ws: Memory exhaustion DoS from tiny fragments and data chunkshigh · GHSA-96hv-2xvq-fx4p
- 8.21.0
Fixed a remote memory exhaustion DoS vulnerability (2b2abd45).
- 8.21.0
The vulnerability was responsibly disclosed and fixed by Nadav Magier.
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
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.