Good to knowVulnerabilities

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

  1. Run npm ls websocket-driver ws in your projects to see which versions you have, including indirect ones.
  2. Update to websocket-driver 0.8.1 or later and ws 8.23.0 (or the version for your line).
  3. Do not turn the old protocol drafts back on unless you need them.
  4. 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.

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.

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

    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.

    Newsletter · every Friday · free

    Get the weekly security briefing

    One email every Friday: what to act on now and what to plan this week, in plain words. The free one-page runbooks come in your welcome email. You confirm your address first.

    Subscribe for free

    Press / to search from any page