Two widely used WebSocket libraries, websocket-driver and ws, fixed flaws that let one remote client crash or exhaust a server; no data theft, but update to websocket-driver 0.8.1 or later and ws 8.23.0 or the backport for your line
On 1 December 2026 GitHub published advisories for websocket-driver (two rated critical, 9.1, plus four high) and for ws (rated high, 7.5). All are denial of service: a remote client with no login can crash a server or make it run out of memory. The fixes are out, and for websocket-driver the old draft75 and draft76 protocol versions are now off by default. None of them lets an attacker read data or run code, and no attacks are reported.
How urgent
Good to know
Who is affected
Servers written with websocket-driver for npm before 0.8.1 (some problems before 0.8.0) or for RubyGems before 0.9.0, and servers or clients using ws for npm before 8.23.0 (7.5.14 on the 7.x line, 6.2.7 on 6.x, 5.2.8 on 5.x). Many projects use them indirectly, for example through chat, live-reload or real-time tools
What to do
Run npm ls websocket-driver ws in your projects and update to websocket-driver 0.8.1 or later (RubyGems 0.9.0) and ws 8.23.0 or the backport for your line; if you do not need the old draft75 and draft76 protocol versions, leave them off (the new default); add limits to how much memory a connection may use and restart policies for your servers
Published 1 Dec 2026 · Sources last checked 2 Dec 2026No. 143 / 168
What happened
WebSocket is the technology behind live chats, notifications and real-time dashboards. On 1 December 2026 GitHub published advisories for two libraries that handle it:
- websocket-driver (npm and RubyGems): two critical (9.1) and four high (7.5) advisories. The critical ones: a client that starts a connection with an old protocol draft (draft75 or draft76) and sends a few bytes can make the server duplicate messages or crash. The other four: a single pong message that crashes the server, a stream of empty message fragments or data sent after closing that make it buffer memory without end, and a malformed handshake header.
- ws (npm): one high (7.5). A peer can flood the other with ping messages and stop reading, so the automatic pong replies pile up in memory until the process dies.
How serious it is
All of them are denial of service: they can take a server down or exhaust its memory, from a remote client with no login. According to the advisories, they do not let anyone read data or run code. No attacks are reported. The packages are very widely used (about 39 million weekly downloads for websocket-driver and about 400 million for ws, in the week of 24 to 30 November), and many projects get them indirectly.
Fixed versions
- websocket-driver: npm 0.8.0 (16 Nov) and 0.8.1 (26 Nov); RubyGems 0.9.0. The old draft75 and draft76 versions are now off by default; a server that still wants them must ask for it with
allowDrafts: true. - ws: 8.23.0, with fixes for older lines in 7.5.14, 6.2.7 and 5.2.8.
What to do
- Run
npm ls websocket-driver wsin your projects to see which versions you have, including indirect ones. - Update to websocket-driver 0.8.1 or later and ws 8.23.0 (or the version for your line).
- Do not turn the old protocol drafts back on unless you need them.
- Set memory limits and automatic restarts for servers that accept WebSocket connections: it softens this kind of attack.
What we could not confirm
We read the advisories and the package data, not the code, and we did not test the flaws. We do not know which popular tools are affected through these libraries.
Related
Glossary: vulnerabilityVulnerability A weakness in software, a setting or a process that an attacker could use to get in or do harm. Tap again to open the glossary, patchPatch (security update) A fix released by the maker of a piece of software to close a flaw or a bug. Tap again to open the glossary, dependency. See also our free website security check.
Keep reading
More stories on the same topic or from the same area.
- RabbitMQ and Erlang fix two critical flaws: anyone could mint an admin token on RabbitMQ consoles that use OAuth2, and Erlang TLS 1.2 clients could talk to a fake server; update RabbitMQ to 4.4.1, 4.3.8 or 4.2.13 and Erlang/OTPPlan this week 30 Nov 2026
- Laravel: a few crafted JSON requests can take an app offline without logging in. Update to 12.74.0 or 13.44.1 (CVE-2026-142612)Plan this week 3 Dec 2026
- node-tar, the package that unpacks archives in Node.js, got 18 security advisories in one day: a crafted archive can place a link outside the extraction folder; the fix is tar 8, which needs Node 22Plan this week 2 Dec 2026
Comments
No account needed. Add a nickname if you like, or leave it empty to comment anonymously. Comments are reviewed before they appear. Links are not allowed.
We store your comment, your nickname and a scrambled form of your connection that we use only to limit spam. We do not store your IP address or set cookies. Cloudflare Turnstile checks that you are not a bot.
Sources and verification
- GitHub Advisory GHSA-v36f-rjg3-3v46, websocket-driver: message corruption and denial of service triggered by crafted draft75 or draft76 connections (1 Dec 2026, official advisory; read 2 Dec 2026) (opens in a new tab)
- GitHub Advisory GHSA-37g9-w4hg-h9qr, ws: memory exhaustion DoS via unbounded automatic pong responses (1 Dec 2026, official advisory; read 2 Dec 2026) (opens in a new tab)
- GitHub Advisories GHSA-7487-9gcw-9w8w, GHSA-v674-7268-hvqh, GHSA-9g4r-f5gq-qjrr and GHSA-c4gv-fww2-jp3r, websocket-driver (1 Dec 2026, official advisories; read 2 Dec 2026) (opens in a new tab)
- npm registry, websocket-driver and ws package data (versions, dates, weekly downloads 24 to 30 Nov 2026; read 2 Dec 2026) (opens in a new tab)
We use primary sources first and say when we rely on a news report. Dates are the day we last checked each source.
Spotted a mistake? Email [email protected] and we will correct it and note the change.