# ws (npm)

Simple to use, blazing fast and thoroughly tested websocket client and server for Node.js

- Latest: 8.23.1 (2026-11-27)
- Licence: MIT
- Downloads: 1795969166 last month
- Advisories on the latest version: 0

- CVE-2026-140009 HIGH: ws: Memory exhaustion DoS via unbounded automatic pong responses Fixed in 6.2.7, 7.5.14, 8.23.0.
- CVE-2026-48779 HIGH: ws: Memory exhaustion DoS from tiny fragments and data chunks Fixed in 6.2.4, 7.5.11, 8.21.0.
- CVE-2026-45736 MODERATE: ws: Uninitialized memory disclosure Fixed in 8.20.1.
- CVE-2024-37890 HIGH: ws affected by a DoS when handling a request with many HTTP headers Fixed in 6.2.3, 7.5.10, 8.17.1.
- CVE-2021-32640 MODERATE: ReDoS in Sec-Websocket-Protocol header Fixed in 7.4.6, 6.2.2, 5.2.3.
- GHSA-5v72-xg48-5rpm HIGH: Denial of Service in ws Fixed in 1.1.5, 3.3.1.
- CVE-2016-10518 LOW: Remote Memory Disclosure in ws Fixed in 1.0.1.
- CVE-2016-10542 HIGH: DoS due to excessively large websocket message in ws Fixed in 1.1.1.

Sources: npm, deps.dev (CC BY 4.0), OSV. Last checked 3 Dec 2026.
