ws
8.23.0 · 12 Nov 2026MIT425.8M / weekRepositorynpmAtom feed
Upgrading ws From 0.4.22 to 1.1.5
29 releases in betweennotes for 7
- ?
- changes to make
- 2
- advisories fixed
- 1+
- new
- 3+
- fixes
Counted from 7 of 29 release notes. Advisories are counted from the advisory database, in full.
Security
1 advisory still affects 1.1.5
- ws: Memory exhaustion DoS from tiny fragments and data chunkshigh · GHSA-96hv-2xvq-fx4p
Upgrading to 5.2.5 clears it.
Fixes 2 advisories affecting 0.4.22
- Remote Memory Disclosure in wslow · GHSA-2mhh-w6q8-5hxw
- DoS due to excessively large websocket message in wshigh · GHSA-6663-c963-2gqg
- 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
- Security
Fixed a DoS vulnerability (f8fdcd4).
- Security
1.1.4nothing new or fixed in the note
- New
Added support for
bufferutil@>1andutf-8-validate@>2(b4cf110).
- New
- Fixed
The masking key is now generated using
crypto.randomBytes()instead ofMath.random()(#994). - Fixed
Fixed an issue that could cause a stack overflow crash (c1f3b21).
- Fixed
1.1.0 – 1.1.12 releases, no release note
- Security
There has been vulnerability in the ping functionality of the
wsmodule which allowed clients to allocate memory by simply sending a ping frame. - Security
So I would like to thank @feross and @mafintosh for discovering this vulnerability and disclosing it to me so it could be resolved asap.
- Security
- Fixed
Fixed a zlib issue that caused thrown errors.
- Fixed
0.4.23 – 0.8.121 releases, nothing new or fixed; 20 without a note
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.