{"id":"CVE-2026-61666","aliases":["CVE-2026-61666","GHSA-2x63-gw47-w4mm"],"related":[],"kind":"vulnerability","state":"published","title":"websocket-driver: Denial of service via malformed Host header","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nIf 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.\n\n### Patches\n\nThe 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.\n\n### Workarounds\n\nNo known workarounds exist.\n\n### Acknowledgements\n\nThis issue was discovered and reported by Pranjali Thakur, DepthFirst Security Research Team.","format":"markdown","source":"ghsa"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2026-07-21T18:34:42.000Z","modified":"2026-11-02T21:15:04.252Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":8.9,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":8.9,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"HIGH"}],"cwes":["CWE-248"],"affected":[{"ranges":[{"version":"< 0.8.2","status":"affected"}],"vendor":"faye","product":"websocket-driver-ruby","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.8.2"}],"ecosystem":"RubyGems","package":"websocket-driver","purl":"pkg:gem/websocket-driver","source":"ghsa"}],"references":[{"url":"https://github.com/faye/websocket-driver-ruby/security/advisories/GHSA-2x63-gw47-w4mm","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/faye/websocket-driver-ruby/commit/7d6fd87759a2fdc83590d3b49ffa661dc53fa128","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-61666","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/faye/websocket-driver-ruby","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/a58f1d0a3343e85cef597970f2c5458dcfbaf909/gems/websocket-driver/CVE-2026-61666.yml","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-08-17T17:00:07.141Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-61666","url":"https://www.cve.org/CVERecord?id=CVE-2026-61666","licence":"CVE Terms of Use","modified":"2026-08-17T17:00:52.736Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-2x63-gw47-w4mm","url":"https://github.com/advisories/GHSA-2x63-gw47-w4mm","licence":"CC-BY-4.0","modified":"2026-11-02T21:15:04.252Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-61666","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-61666","licence":"Public domain","modified":"2026-10-23T16:10:00.313Z"}],"updatedAt":"2026-11-25T22:59:33.363Z","epss":{"score":0.00339,"percentile":0.2926,"date":"2026-12-01T12:00:22.000Z"}}