Skip to content
NewCybercrime Report 2026 · Eight Chapters · A Post Is Not An Incident → Explore The ChaptersCybercrime Report 2026 → Explore

Ruby websocket-driver Message Corruption (CVE-2026-140016)

CVE-2026-140016 affects the Ruby websocket-driver package before 0.9.0.

Reviewed by
Brandefense Analyst Team
Published
Reading Time
3 min read
CVE ID
CVE-2026-140016
Vendor
Faye
Affected Product
websocket-driver (RubyGems)
Exploitation
Not confirmed
Published
2026-11-30

Its draft75 and draft76 WebSocket message parser can mishandle a short client input. The producer says an unauthenticated remote client can cause duplicate application messages or crash a server using the library.The GitHub advisory rates the issue Critical. Teams can use the vulnerability intelligence platform as a CVE reference while verifying the installed gem and server configuration. The separate websocket-driver patch brief focuses on the deployment response.

What it allows

How Does CVE-2026-140016 Affect WebSocket Messages?

The producer identifies incorrect message parsing in the prestandard draft75 and draft76 protocol handlers. An unauthenticated remote client can reach this path when a server handles those draft connections through websocket-driver. The parser can deliver an application message twice or terminate the server process.

Duplicate delivery matters when an application treats each received message as a separate action. A server crash interrupts availability. These are consequences described by the producer, not evidence that a specific deployment was attacked.

Brandefense Blackhole counted 3 dark-chat items mentioning CVE-2026-140016 from 2 September through 1 December 2026. The measured unit is an identifier-mentioning chat item; the count does not establish an incident or active exploitation. The producer published a proof of concept in its advisory, while the CISA KEV catalog version dated 30 November does not list this CVE.

For incident review, compare unexpected WebSocket connection failures with server restarts and duplicate application events. This is our defensive inference from the producer’s described outcomes, not a published detection signature. See the separate Faye decompression CVE profile for a different WebSocket flaw.

Who is affected

Which CVE-2026-140016 Versions and Servers Are Affected?

The producer lists websocket-driver versions below 0.9.0 as affected and version 0.9.0 or later as patched. Its impact statement concerns servers using this library to handle WebSocket connections. Verify the resolved runtime gem version, including transitive dependencies, rather than relying only on a manifest constraint.

The defect lies in the draft75 and draft76 parsing path. In 0.9.0 the producer fixed the parser and disabled draft protocol support by default. Servers that deliberately retain draft support must set allow_drafts to true and still run a patched release.

RubyGems reported 675,995,830 cumulative downloads of the websocket-driver gem when its API was fetched on 1 December 2026. The unit is package downloads across all versions, not the number of exposed servers. Record the update in the patch management process and check the version running in each server environment.

Timeline

  1. 2026-11-17

    Faye published the GitHub Security Advisory and listed 0.9.0 as the patched release.

  2. 2026-11-30

    The GitHub CNA published CVE-2026-140016.

What to do

  1. Inventory server dependencies

    Find Ruby WebSocket servers using websocket-driver, including transitive gem dependencies. Record each resolved runtime version and whether draft75 or draft76 support is intentionally enabled.

  2. Upgrade the gem

    Update websocket-driver to 0.9.0 or a later patched version. Rebuild and restart each affected server so the running process loads the updated gem.

  3. Verify the running version

    Inspect the resolved gem version in the deployed Ruby environment after restart. Confirm it is at least 0.9.0 and test whether draft protocol support matches the intended configuration.

  4. Review application effects

    Check recent server crashes and duplicate message handling for affected services. This investigation step is our inference from the two outcomes in the producer advisory.

What Brandefense can do

Frequently Asked Questions

Can an unauthenticated client trigger CVE-2026-140016?

Yes. The producer says a remote client needs no authentication to trigger the draft protocol parsing flaw on an exposed server.

What does the websocket-driver parser do incorrectly?

The producer says draft75 or draft76 parsing can duplicate a received application message or crash the server when it handles a short crafted input.

Which websocket-driver version fixes CVE-2026-140016?

The producer lists 0.9.0 as the first patched version. Verify that each serving Ruby environment actually loads 0.9.0 or later.

Is disabling draft protocols alone the published mitigation?

The producer identifies upgrading to a patched release as the known mitigation. Version 0.9.0 also disables draft protocol support by default.

Sources

  1. Message corruption and denial of service advisoryFaye via GitHub Security Advisories
  2. CVE-2026-140016 CNA recordGitHub via CVE.org
  3. websocket-driver RubyGems metadataRubyGems
  4. Known Exploited Vulnerabilities catalogCISA
ShareLinkedInX
Brandefense logo

Stay Ahead of Digital Threats.

Take control of your digital security with an exclusive demo of our AI-driven threat intelligence platform.

Open The Full Demo Form →