ws
8.23.0 · 12 Nov 2026MIT428.4M / weekRepositorynpmAtom feed
Upgrading ws From 2.0.2 to 2.3.1
8 releases in betweenevery note read
Reading releases, release notes and advisories…
Security
3 advisories still affect 2.3.1
- ws affected by a DoS when handling a request with many HTTP headershigh · GHSA-3h5v-q93c-6h6q
- Denial of Service in wshigh · GHSA-5v72-xg48-5rpm
- ws: Memory exhaustion DoS from tiny fragments and data chunkshigh · GHSA-96hv-2xvq-fx4p
Upgrading to 5.2.5 clears them.
Release by release
- Fixed
Fixed an issue that prevented
WebSocket.prototype.close()from working properly when called from a listener of theheadersevent (732aaf0).
- Fixed
- New
All hooks have now access to the upgrade request (#1070).
- New
The
WebSocketclient now emits aheadersevent (#1082).
- New
- New
Added support for Node.js 4.1.0 - 4.4.7 (#1059).
- Fixed
Fixed a bug that caused the
optionsargument to be reassigned whenprotocolswasnull(20bd7c7).
- New
- Fixed
WebSocket.prototype.terminate()now closes the connection immediately even if the other peer fails to work properly (#1033).
- Fixed
- New
Added "fragments" as possible value for the
binaryTypeattribute (#1018). - Fixed
A random masking key is now also used for zero-length frames (5edb460).
- New
- New
Added ability to specify URL path with UNIX domain socket URLs (060b275).
- Fixed
Fixed a bug that could make the parser crash if an error was emitted synchronously on the socket while parsing data (6695bd4).
- New
- Fixed
Fixed an issue that caused a stack overflow when parsing a buffer with thousands of frames (#992).
- Fixed
Restored support for default port numbers (f043b52).
- 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.