Packages

ws

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

Upgrading ws From 8.16.0 to 8.21.0

10 releases in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 8.16.0Newest 8.x, Latest8.23.0
  1. 8.16.0yours
  2. 8.17.0breaking
  3. 8.17.1security
  4. 4 releases
  5. 8.19.0breaking
  6. 2 releases
  7. 8.21.0target

Before you upgrade

Tick each one off as you go
  • Breaking8.19.0
  • Breaking8.17.0

Security

Fixes 3 advisories affecting 8.16.0

  • Fixed a remote memory exhaustion DoS vulnerability (2b2abd45).

    8.21.0
  • The vulnerability was responsibly disclosed and fixed by Nadav Magier.

    8.21.0
  • Fixed a DoS vulnerability (#2231).

    8.17.1
  • The vulnerability was reported by Ryan LaPointe in #2230.

    8.17.1

Release by release

  1. 8.21.0

    Security fix22 May 20261 new
    • Security

      Fixed a remote memory exhaustion DoS vulnerability (2b2abd45).

    • Security

      The vulnerability was responsibly disclosed and fixed by Nadav Magier.

    • New

      Introduced the maxBufferedChunks and maxFragments options (2b2abd45).

  2. 8.20.1

    12 May 20261 fix
    • Fixed

      Fixed an uninitialized memory disclosure issue in websocket.close() (c0327ec1).

  3. 8.20.0

    21 Mar 20261 new
    • New

      Added exports for the PerMessageDeflate class and utilities for the Sec-WebSocket-Extensions and Sec-WebSocket-Protocol headers (d3503c1f).

  4. 8.19.0

    Migration needed5 Jan 20261 new
    • Breaking

      Handled a forthcoming breaking change in Node.js core (19984854).

    • New

      Added the closeTimeout option (#2308).

  5. 8.18.3

    28 Jun 20251 fix
    • Fixed

      Fixed a spec violation where the Sec-WebSocket-Version header was not added to the HTTP response if the client requested version was either invalid or unacceptable (#2291).

  6. 8.18.2

    3 May 20251 fix
    • Fixed

      Fixed an issue that, during message decompression when the maximum size was exceeded, led to the emission of an inaccurate error and closure of the connection with an improper close code (#2285).

  7. 8.18.1

    21 Feb 20251 fix
    • Fixed

      The length of the UNIX domain socket paths in the tests has been shortened to make them work when run via [CITGM] (021f7b8b).

  8. 8.18.0

    3 Jul 20241 new
    • New

      Added support for Blob (#2229).

1 other line we could not sort, mostly version bumps
  • The default value of the allowSynchronousEvents option has been changed to true (#2221).

    8.17.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.