Packages

ws

8.23.0 · 12 Nov 2026MIT425.8M / weekRepositorynpmAtom feed

Upgrading ws From 0.4.21 to 5.2.5

59 releases in betweennotes for 36

Other targets from 0.4.21Newest 0.x0.8.1Clears its 2 advisories1.1.1Latest8.23.0
  1. 0.4.21yours
  2. 10 releases
  3. 0.5.0major
  4. 0.6.0major
  5. 5 releases
  6. 0.7.0major
  7. 2 releases
  8. 0.8.0major
  9. 1 release
  10. 1.0.0major
  11. 1.0.1security
  12. 5 releases
  13. 1.1.5security
  14. 2.0.0major
  15. 10 releases
  16. 3.0.0major
  17. 3 releases
  18. 3.3.1security
  19. 2 releases
  20. 4.0.0major
  21. 1 release
  22. 5.0.0major
  23. 7 releases
  24. 5.2.5target
33+
changes to make
2
advisories fixed
24+
new
37+
fixes

Counted from 36 of 59 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 2 advisories affecting 0.4.21

  • Fixed a DoS vulnerability (c4fe466).

    3.3.1
  • The vulnerability has been privately reported by Nick Starke and

    3.3.1
  • Fixed a DoS vulnerability (f8fdcd4).

    1.1.5
  • There has been vulnerability in the ping functionality of the ws module 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.

    1.0.1

Release by release

  1. 5.2.5

    22 May 20261 fix
    • Fixed

      Backported 2b2abd45 to the 5.x release line (bd8756a4).

  2. 5.2.4

    16 Jun 20241 fix
    • Fixed

      Backported e55e5106 to the 5.x release line (4abd8f6d).

  3. 5.2.3

    8 Jun 20211 fix
    • Fixed

      Backported 00c425ec to the 5.x release line (76d47c14).

  4. 5.2.2

    11 Jul 20181 fix
    • Fixed

      Fixed a use after invalidation bug introduced in 6046a28 (8aba871).

  5. 5.2.1

    23 Jun 20181 fix
    • Fixed

      Fixed a bug that could prevent buffered data from being processed under certain circumstances (6046a28).

  6. 5.2.0

    21 May 20181 new
    • New

      Added ability to specify custom headers when rejecting the handshake (#1379).

  7. 5.1.1

    2 Apr 20181 fix
    • Fixed

      Fixed a regression introduced in 9e152f9 (#1347).

  8. 5.1.0

    19 Mar 20182 new
    • New

      The address argument of the WebSocket constructor can now be a [URL] instance (#1329).

    • New

      The options argument of the WebSocket constructor now accepts any TLS option that is also accepted by [https.request()] (#1332).

4 other lines we could not sort, mostly version bumps
  • Removed istanbul coverage folder from npm package (fac50ac).

    1.1.4
  • 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.

    1.0.0

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.