Ruby websocket driver: websocket-driver is a WebSocket protocol handler with pluggable I/O. (CVE-2026-61666)
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
Affected software
pkg:deb/ubuntu/ruby-websocket-driver?arch=source&distro=xenialpkg:deb/ubuntu/ruby-websocket-driver?arch=source&distro=bionicpkg:deb/ubuntu/ruby-websocket-driver?arch=source&distro=focalpkg:deb/ubuntu/ruby-websocket-driver?arch=source&distro=jammypkg:deb/ubuntu/ruby-websocket-driver?arch=source&distro=noblepkg:deb/ubuntu/ruby-websocket-driver?arch=source&distro=stonkingpkg:deb/ubuntu/ruby-websocket-driver?arch=source&distro=resoluteRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.