ws

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

8.23.1Latest, 27 Nov 2026
1.8BDownloads, last month
0Advisories on the latest
8Advisories, all versions
MITLicence
23KStars
5.5/10OpenSSF Scorecard

Known advisories

Severity Advisory Fix Published
High ws: Memory exhaustion DoS via unbounded automatic pong responses CVE-2026-140009 Fixed in 6.2.7, 7.5.14, 8.23.0 1 Dec 2026
High ws: Memory exhaustion DoS from tiny fragments and data chunks CVE-2026-48779 Fixed in 6.2.4, 7.5.11, 8.21.0 15 Jun 2026
Moderate ws: Uninitialized memory disclosure CVE-2026-45736 Fixed in 8.20.1 18 May 2026
High ws affected by a DoS when handling a request with many HTTP headers CVE-2024-37890 Fixed in 6.2.3, 7.5.10, 8.17.1 17 Jun 2024
Moderate ReDoS in Sec-Websocket-Protocol header CVE-2021-32640 Fixed in 7.4.6, 6.2.2, 5.2.3 28 May 2021
High Denial of Service in ws GHSA-5v72-xg48-5rpm Fixed in 1.1.5, 3.3.1 4 Jun 2019
Low Remote Memory Disclosure in ws CVE-2016-10518 Fixed in 1.0.1 18 Feb 2019
High DoS due to excessively large websocket message in ws CVE-2016-10542 Fixed in 1.1.1 18 Feb 2019

In the news

On Hacker News

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