Vulnerabilities in pkg:gem/websocket-driver

PACKAGE
Advisory Identifier: GHSA-q3c8-h5pg-2836
Advisory Summary

CVE-2026-144293 is a HIGH (CVSS 7.5) excessive memory use caused by vulnerability (CWE-770: Allocation of Resources Without Limits or Throttling) affecting websocket-driver libraries in the RubyGems ecosystem. The issue involves excessive memory use caused by draft-75/76 buffering. Remediation is available by upgrading affected packages to version 0.9.2.

9 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:gem/websocket-driver

9 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:gem/websocket-driver. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-q3c8-h5pg-2836 CVE-2026-144293 HIGH websocket-driver: Excessive memory use caused by draft-75/76 buffering
GHSA-xr87-hm5c-qpwp CVE-2026-144294 HIGH websocket-driver: Memory exhaustion triggered by client continuing to send message data after the server sent a Close frame
GHSA-7c6x-34q5-4g2j CVE-2026-140015 HIGH websocket-driver: Memory exhaustion triggered by buffering of data received after socket is closed
GHSA-pf93-24xc-xgxc CVE-2026-140016 CRITICAL websocket-driver: Message corruption and denial of service triggered by crafted client message
GHSA-5qm2-87xf-x3ff CVE-2026-140011 HIGH permessage-deflate-ruby: Memory exhaustion triggered by message decompression
GHSA-8j3g-f24p-4mpw CVE-2026-54465 MODERATE websocket-driver: Memory exhaustion in HTTP header parser
GHSA-33ph-fccm-39pj CVE-2026-54464 MODERATE websocket-driver: Resource limit bypass via message compression
GHSA-ghhp-3qvg-889p CVE-2026-54463 MODERATE websocket-driver: Memory exhaustion via abuse of protocol length headers
GHSA-2x63-gw47-w4mm CVE-2026-61666 HIGH websocket-driver-ruby: Denial of service via malformed Host header

CVE-2026-144293 at a Glance

CVE Identifier CVE-2026-144293
GHSA Identifier GHSA-q3c8-h5pg-2836
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-770: Allocation of Resources Without Limits or Throttling
Affected Product websocket-driver
Package Ecosystem RubyGems
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix CVE-2026-144293

To remediate this vulnerability, upgrade all affected websocket-driver dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

websocket-driver fixed: 0.9.2
Upgrade websocket-driver to 0.9.2
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for websocket-driver

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-144293, inspect your project dependencies for websocket-driver:

inspect dependencies for websocket-driver

Analyze the terminal output to locate any version of websocket-driver in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.9.2), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-770: Allocation of Resources Without Limits or Throttling, where the product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated. In websocket-driver, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Summary A server running `websocket-driver` can be made to buffer data in excess of `max_length` and potentially run out of memory by a client sending a non-terminated stream of message data. ### Details When configured using `allow_drafts: true`, the `websocket-driver` library continues to support legacy draft versions of the WebSocket protocol. These use delimited rather than length-prefixed frames; a frame is initiated by sending `00` and ended by sending `FF`. If a client sends `00` and then sends a long series of bytes, the server will buffer this data in excess of `max_length`, potentially causing it to run out of memory if the message is continued indefinitely. This has been mitigated by properly enforcing the `max_length` limit at the point where the data is buffered. It can also be prevented by not setting the `allow_drafts` option. ### Proof of concept This script demonstrates how much data is buffered by a draft-75 parser on receipt of a very long unterminated message: ```rb require 'bundler/setup' require 'websocket/driver' class Sock def write(_) ; end end d = WebSocket::Driver.server(Sock.new, :allow_drafts => true, :max_length => 1024) d.on(:connect) { d.start } # draft-75 handshake: NO Sec-WebSocket-Key/Version/Key1/Key2 -> Draft75 selected d.parse( "GET / HTTP/1.1\r\n" + "Host: localhost\r\n" + "Upgrade: websocket\r\n" + "Connection: Upgrade\r\n" + "Origin: http://localhost\r\n" + "\r\n") # One text frame: 0x00, then 10 MB of 0x41, NO terminating 0xFF, in one chunk. N = 10 << 20 chunk = "\x00" + ("\x41" * (N + 1)) d.parse(chunk) p d.instance_variable_get(:@delegate) .instance_variable_get(:@reader) .instance_variable_get(:@buffer).bytesize p d.instance_variable_get(:@delegate) .instance_variable_get(:@buffer).size ``` On vulnerable versions this will print numbers far in excess of the configured `max_length`. ### Impact A server with `allow_drafts` enabled can be made to run out of memory and crash by an unauthenticated remote client sending a non-terminating stream of message data.

CVE-2026-144293 Affected websocket-driver Versions

1 component(s)
Fixed Versions:
0.9.2
Product / Package Ecosystem Affected Versions Fixed Version
websocket-driver
RubyGems
< 0.9.2
0.9.2

References

Frequently Asked Questions

What is CVE-2026-144293?
CVE-2026-144293 is a security vulnerability in websocket-driver involving Excessive memory use caused by draft-75/76 buffering under CWE-770: Allocation of Resources Without Limits or Throttling.
Which websocket-driver versions are affected?
Affected versions include releases prior to 0.9.2 across affected packages: websocket-driver.
What version fixes CVE-2026-144293?
Upgrading to 0.9.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is websocket-driver affected?
Yes, websocket-driver is affected in releases prior to 0.9.2. Upgrade your dependency to 0.9.2 or later.
What is the CVSS score of CVE-2026-144293?
CVE-2026-144293 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2026-144293?
CVE-2026-144293 is classified under CWE-770: Allocation of Resources Without Limits or Throttling (The product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated.).
How can I check RubyGems dependencies for CVE-2026-144293?
Run the dependency tree command: 'inspect dependencies for websocket-driver'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-q3c8-h5pg-2836",
  "modified" : "2026-12-04T22:05:42Z",
  "published" : "2026-12-04T22:05:42Z",
  "aliases" : [ "CVE-2026-144293" ],
  "summary" : "websocket-driver: Excessive memory use caused by draft-75/76 buffering",
  "details" : "### Summary\n\nA server running `websocket-driver` can be made to buffer data in excess of `max_length` and potentially run out of memory by a client sending a non-terminated stream of message data.\n\n### Details\n\nWhen configured using `allow_drafts: true`, the `websocket-driver` library continues to support legacy draft versions of the WebSocket protocol. These use delimited rather than length-prefixed frames; a frame is initiated by sending `00` and ended by sending `FF`. If a client sends `00` and then sends a long series of bytes, the server will buffer this data in excess of `max_length`, potentially causing it to run out of memory if the message is continued indefinitely.\n\nThis has been mitigated by properly enforcing the `max_length` limit at the point where the data is buffered. It can also be prevented by not setting the `allow_drafts` option.\n\n### Proof of concept\n\nThis script demonstrates how much data is buffered by a draft-75 parser on receipt of a very long unterminated message:\n\n```rb\nrequire 'bundler/setup'\nrequire 'websocket/driver'\n\nclass Sock\n  def write(_) ; end\nend\n\nd = WebSocket::Driver.server(Sock.new, :allow_drafts => true, :max_length => 1024)\nd.on(:connect) { d.start }\n\n# draft-75 handshake: NO Sec-WebSocket-Key/Version/Key1/Key2 -> Draft75 selected\nd.parse(\n  \"GET / HTTP/1.1\\r\\n\" +\n  \"Host: localhost\\r\\n\" +\n  \"Upgrade: websocket\\r\\n\" +\n  \"Connection: Upgrade\\r\\n\" +\n  \"Origin: http://localhost\\r\\n\" +\n  \"\\r\\n\")\n\n# One text frame: 0x00, then 10 MB of 0x41, NO terminating 0xFF, in one chunk.\nN = 10 << 20\nchunk = \"\\x00\" + (\"\\x41\" * (N + 1))\nd.parse(chunk)\n\np d.instance_variable_get(:@delegate)\n    .instance_variable_get(:@reader)\n    .instance_variable_get(:@buffer).bytesize\n\np d.instance_variable_get(:@delegate)\n    .instance_variable_get(:@buffer).size\n```\n\nOn vulnerable versions this will print numbers far in excess of the configured `max_length`.\n\n### Impact\n\nA server with `allow_drafts` enabled can be made to run out of memory and crash by an unauthenticated remote client sending a non-terminating stream of message data.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "websocket-driver"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.9.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/faye/websocket-driver-ruby/security/advisories/GHSA-q3c8-h5pg-2836"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-144293"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/faye/websocket-driver-ruby/commit/5a0bd6f9cbaa800a3796aa974120ad8bdb38ab35"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/faye/websocket-driver-ruby"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/faye/websocket-driver-ruby/releases/tag/0.9.2"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-770" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-12-04T22:05:42Z",
    "nvd_published_at" : "2026-12-03T18:17:26Z"
  }
}