Packages

ws

8.23.0 · 12 Nov 2026MIT428.4M / weekRepositorynpmAtom feed

Upgrading ws From 2.2.2 to 5.2.5

21 releases in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 2.2.2Newest 2.x2.3.1Latest8.23.0
  1. 2.2.2yours
  2. 3 releases
  3. 3.0.0major
  4. 3 releases
  5. 3.3.1security
  6. 2 releases
  7. 4.0.0major
  8. 1 release
  9. 5.0.0major
  10. 7 releases
  11. 5.2.5target

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 2.2.2

  • Fixed a DoS vulnerability (c4fe466).

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

    3.3.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).

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.