Vulnerabilities in pkg:gem/websocket-driver
PACKAGECVE-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.
pkg:gem/websocket-driver
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
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).
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.
Upgrade websocket-driver to 0.9.2
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
CVE-2026-144293 Affected websocket-driver Versions
1 component(s)| 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?
Which websocket-driver versions are affected?
What version fixes CVE-2026-144293?
Is websocket-driver affected?
What is the CVSS score of CVE-2026-144293?
What CWE is associated with CVE-2026-144293?
How can I check RubyGems dependencies for CVE-2026-144293?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}