ws
8.23.0 · 12 Nov 2026MIT428.4M / weekRepositorynpmAtom feed
Upgrading ws From 4.0.0 to 5.2.5
10 releases in betweenevery note read
Reading releases, release notes and advisories…
Before you upgrade
Tick each one off as you go- Breaking5.0.0
- Breaking5.0.0
- Breaking5.0.0
Security
Fixes 2 advisories affecting 4.0.0
- ws affected by a DoS when handling a request with many HTTP headershigh · GHSA-3h5v-q93c-6h6q
- ws: Memory exhaustion DoS from tiny fragments and data chunkshigh · GHSA-96hv-2xvq-fx4p
Release by release
- Fixed
Backported 2b2abd45 to the 5.x release line (bd8756a4).
- Fixed
- Fixed
Backported e55e5106 to the 5.x release line (4abd8f6d).
- Fixed
- Fixed
Backported 00c425ec to the 5.x release line (76d47c14).
- Fixed
- Fixed
Fixed a use after invalidation bug introduced in 6046a28 (8aba871).
- Fixed
- Fixed
Fixed a bug that could prevent buffered data from being processed under certain circumstances (6046a28).
- Fixed
- New
Added ability to specify custom headers when rejecting the handshake (#1379).
- New
- Fixed
Fixed a regression introduced in 9e152f9 (#1347).
- Fixed
- New
The
addressargument of theWebSocketconstructor can now be a [URL] instance (#1329). - New
The
optionsargument of theWebSocketconstructor now accepts any TLS option that is also accepted by [https.request()] (#1332).
- New
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.