Skip to main content
EPSS 0.4%top 63%

Ruby websocket driver: websocket-driver is a WebSocket protocol handler with pluggable I/O. (CVE-2026-61666)

0
Medium
Published: 08/17/2026 (08/17/2026, 17:16:00 UTC)
Source: GCVE Database
Product: ruby-websocket-driver

Description

A vulnerability in the ruby-websocket-driver before version 0.8.2 allows a remote client to crash a TCP-backed WebSocket server by sending a malformed Host header. The issue arises because WebSocket::Driver.server() passes this malformed header to URI.parse without handling URI::InvalidURIError, leading to a server crash if the application does not catch this error. This vulnerability is fixed in version 0.8.2.

CVSS v4.0

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
High
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:H

Affected software

RubyGemsghsa
websocket-driver
Affected versions
<0.8.2
Ubuntu:16.04:LTSmore threats →ghsa
ruby-websocket-driver
pkg:deb/ubuntu/ruby-websocket-driver?arch=source&distro=xenial
Affected versions
=0.6.3-1=0.6.3-1build1=0.6.3-2=0.6.3-2build1
Ubuntu:18.04:LTSmore threats →ghsa
ruby-websocket-driver
pkg:deb/ubuntu/ruby-websocket-driver?arch=source&distro=bionic
Affected versions
=0.6.3-2build1=0.6.3-2build2=0.6.3-2build3
Ubuntu:20.04:LTSmore threats →ghsa
ruby-websocket-driver
pkg:deb/ubuntu/ruby-websocket-driver?arch=source&distro=focal
Affected versions
=0.6.3-2build3=0.6.3-2build4
Ubuntu:22.04:LTSmore threats →ghsa
ruby-websocket-driver
pkg:deb/ubuntu/ruby-websocket-driver?arch=source&distro=jammy
Affected versions
=0.6.3-3build1=0.6.3-3build2=0.6.3-3build3
Ubuntu:24.04:LTSmore threats →ghsa
ruby-websocket-driver
pkg:deb/ubuntu/ruby-websocket-driver?arch=source&distro=noble
Affected versions
=0.6.3-3build5=0.6.3-3build6=0.6.3-3build7
Ubuntu:26.10more threats →ghsa
ruby-websocket-driver
pkg:deb/ubuntu/ruby-websocket-driver?arch=source&distro=stonking
Affected versions
=0.6.3-3ubuntu1=0.8.2-1
Ubuntu:26.04:LTSmore threats →ghsa
ruby-websocket-driver
pkg:deb/ubuntu/ruby-websocket-driver?arch=source&distro=resolute
Affected versions
=0.6.3-3ubuntu1

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/18/2026, 04:31:57 UTC

Technical Analysis

The ruby-websocket-driver library versions prior to 0.8.2 contain a vulnerability where the WebSocket::Driver.server() method forwards a malformed Host header to URI.parse in lib/websocket/http/request.rb without catching URI::InvalidURIError exceptions. This lack of error handling allows a remote attacker to cause a denial of service by crashing the TCP-backed WebSocket server if the application does not implement its own error handling for this condition. The vulnerability is addressed in version 0.8.2 by properly handling or avoiding the unhandled exception.

Potential Impact

A remote unauthenticated attacker can cause a denial of service by crashing the WebSocket server through sending a malformed Host header. This results in server downtime or service disruption until the server is restarted or the error is handled. There is no indication of code execution or data compromise from this vulnerability.

Mitigation Recommendations

Upgrade ruby-websocket-driver to version 0.8.2 or later where this issue is fixed. If upgrading is not immediately possible, ensure that the application using the library properly catches URI::InvalidURIError exceptions from URI.parse to prevent server crashes.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-2x63-gw47-w4mm
Osv Schema Version
1.4.0
Aliases
["CVE-2026-61666"]
Ecosystems
["RubyGems"]
Database Specific Severity
HIGH
Cvss Version
4.0

Threat ID: 6a5fcf3c1010f89cc2151297

Added to database: 07/21/2026, 19:57:48 UTC

Last enriched: 10/18/2026, 04:31:57 UTC

Last updated: 10/19/2026, 06:48:18 UTC

Views: 235

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses