Packages

ws

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

Upgrading ws From 8.18.3 to 8.21.0

4 releases in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 8.18.3Newest 8.x, Latest8.23.0

Before you upgrade

Tick each one off as you go
  • Breaking8.19.0

Security

Fixes 2 advisories affecting 8.18.3

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

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

    8.21.0

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

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.