CVE-2026-61666
JSON

8.9high

websocket-driver: Denial of service via malformed Host header

Severity
8.9high CVSS:4.0 by GitHub_M
Exploit likelihood
0.34% (higher than 29% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-2x63-gw47-w4mm

Description

websocket-driver is a WebSocket protocol handler with pluggable I/O. Prior to 0.8.2, WebSocket::Driver.server() passes a malformed Host header to URI.parse in lib/websocket/http/request.rb without catching URI::InvalidURIError, allowing a remote client to crash a TCP-backed WebSocket server when the application does not catch the error from parse(). This issue is fixed in version 0.8.2.

Affected

Product or packageVersionsReported by
faye websocket-driver-ruby< 0.8.2CVE List
websocket-driver (RubyGems)before 0.8.2GitHub Advisory Database

All scores

GitHub_M8.9high CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:H
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:H

Classification

CWE-248

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

websocket-driver is a WebSocket protocol handler with pluggable I/O. Prior to 0.8.2, WebSocket::Driver.server() passes a malformed Host header to URI.parse in lib/websocket/http/request.rb without catching URI::InvalidURIError, allowing a remote client to crash a TCP-backed WebSocket server when the application does not catch the error from parse(). This issue is fixed in version 0.8.2.

GitHub Advisory Database
Impact

If this library is used to implement a WebSocket server on top of a TCP server, by using the WebSocket::Driver.server() method, then a client can cause the server to crash by sending a Host header that is not a valid host[:port] string. When this happens, a URI::InvalidURIError exception is raised which is not caught, and this can cause the server process to crash if the application does not catch the error from the parse() method itself.

Patches

The issue has been patched in version 0.8.2 by making the request parser catch URI::InvalidURIError and enter an error state if the Host header is malformed. This means the request is considered invalid and should not establish a WebSocket connection.

Workarounds

No known workarounds exist.

Acknowledgements

This issue was discovered and reported by Pranjali Thakur, DepthFirst Security Research Team.

NVD (es)

websocket-driver es un gestor del protocolo WebSocket con E/S conectable. Antes de la versión 0.8.2, WebSocket::Driver.server() pasa una cabecera Host malformada a URI.parse en lib/websocket/http/request.rb sin capturar URI::InvalidURIError, lo que permite a un cliente remoto colapsar un servidor WebSocket basado en TCP cuando la aplicación no captura el error de parse(). Este problema se ha corregido en la versión 0.8.2.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-61666 changed 2026-08-17CVE Terms of Use
GitHub Advisory DatabaseGHSA-2x63-gw47-w4mm changed 2026-11-02CC-BY-4.0
NVDCVE-2026-61666 changed 2026-10-23Public domain