Skip to content
← Blog · · df00tech

websocket-driver (Ruby): Crafted Draft75/76 Frame Triggers Message Duplication or Server Crash

breaking ghsa rubygems CVE-2026-140016

A new GitHub Security Advisory (GHSA-pf93-24xc-xgxc, CVE-2026-140016) describes a parsing flaw in the Ruby websocket-driver gem. The flaw is in its handling of the pre-standardization draft75 and draft76 WebSocket protocol versions. According to the advisory, an unauthenticated client can open a draft75 or draft76 handshake and send a short, specific byte sequence that the parser mishandles. This causes the server to either duplicate a received message or crash. The advisory includes a working proof of concept using EventMachine. A handshake followed by two small frames causes message duplication. Sending only the second frame (three bytes: 80 01 ff) crashes the server. CVSS is reported at 9.1. Exploit code is public.

Why it matters

Any Ruby service that uses websocket-driver to handle WebSocket connections, directly or through a gem that depends on it, is exposed. The advisory states no special conditions are required and the triggering message is very short. This makes it an unauthenticated denial of service that is cheap to trigger against any reachable WebSocket endpoint built on this library. The fix disables draft75 and draft76 support by default. A deployment that intentionally serves these legacy clients must opt back in with allow_drafts: true after patching.

What to watch for and do now

  • Identify every service that depends on websocket-driver, directly or transitively, and upgrade to the patched release.
  • If legacy draft75 or draft76 clients are not required, leave allow_drafts unset. Per the advisory, the connection is then rejected as a bad request rather than parsed.
  • For hunting, watch WebSocket-handling processes for unexpected crashes or restarts correlated with inbound connections, and for duplicate application-level message events from a single client frame.
  • At the network layer, consider flagging or rate-limiting WebSocket upgrade requests that negotiate draft75 or draft76 style handshakes, especially on internet-facing endpoints.

This is same-day intel based on a single vendor advisory with a public proof of concept. Real-world exploitation and affected downstream products beyond the gem itself have not been independently confirmed. See the original advisory for full technical detail: GHSA-pf93-24xc-xgxc.

Get new detections in your inbox

New ATT&CK coverage plus CISA KEV / CVE detection rules, roughly weekly. No spam, unsubscribe anytime.