ws
8.23.0 · 12 Nov 2026MIT428.4M / weekRepositorynpmAtom feed
Upgrading ws From 0.8.0 to 5.2.5
38 releases in betweennotes for 35
Reading releases, release notes and advisories…
Counted from 35 of 38 release notes. Advisories are counted from the advisory database, in full.
Before you upgrade
Tick each one off as you go- Breaking5.0.0
- Breaking5.0.0
- Breaking5.0.0
- Breaking4.0.0
- Breaking4.0.0
- Breaking4.0.0
- Breaking4.0.0
- Breaking4.0.0
- Breaking4.0.0
- Breaking4.0.0
Security
Fixes 3 advisories affecting 0.8.0
- Remote Memory Disclosure in wslow · GHSA-2mhh-w6q8-5hxw
- Denial of Service in wshigh · GHSA-5v72-xg48-5rpm
- DoS due to excessively large websocket message in wshigh · GHSA-6663-c963-2gqg
- 3.3.1
Fixed a DoS vulnerability (c4fe466).
- 3.3.1
The vulnerability has been privately reported by Nick Starke and
- 1.1.5
Fixed a DoS vulnerability (f8fdcd4).
- 1.0.1
There has been vulnerability in the ping functionality of the
wsmodule which allowed clients to allocate memory by simply sending a ping frame. - 1.0.1
So I would like to thank @feross and @mafintosh for discovering this vulnerability and disclosing it to me so it could be resolved asap.
Release by release
- Fixed
Backported 2b2abd45 to the 5.x release line (bd8756a4).
- Fixed
- Fixed
Backported e55e5106 to the 5.x release line (4abd8f6d).
- Fixed
- Fixed
Backported 00c425ec to the 5.x release line (76d47c14).
- Fixed
- Fixed
Fixed a use after invalidation bug introduced in 6046a28 (8aba871).
- Fixed
- Fixed
Fixed a bug that could prevent buffered data from being processed under certain circumstances (6046a28).
- Fixed
- New
Added ability to specify custom headers when rejecting the handshake (#1379).
- New
- Fixed
Fixed a regression introduced in 9e152f9 (#1347).
- Fixed
- New
The
addressargument of theWebSocketconstructor can now be a [URL] instance (#1329). - New
The
optionsargument of theWebSocketconstructor now accepts any TLS option that is also accepted by [https.request()] (#1332).
- New
4 other lines we could not sort, mostly version bumps
- 1.1.4
Removed istanbul coverage folder from npm package (fac50ac).
- 1.0.0
Discontinued support for all node versions except for 0.12, 4.0 and 5.0. We should focus on the future and that will be Node 5 and ES6.
- 1.0.0
Removed the client code. It was simple wrapper that really doesn't belong in a full ledged node.js library. If you want browser support you could just conditionally import it the WebSocket server.
var WS = window.WebSocket || require('ws') - 1.0.0
Binary addons have been completely removed. Even as optional dependency, it seems that npm is just unable to properly handle the builds causing installations to fail and lead to massive developer issues. While the dependencies have been removed, you can still optionally install things. See github.com/websockets/ws for additional information.
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.