|
| 1 | +--- |
| 2 | +layout: advisory |
| 3 | +title: 'CVE-2026-61666 (websocket-driver): Denial of service via malformed Host header' |
| 4 | +comments: false |
| 5 | +categories: |
| 6 | +- websocket-driver |
| 7 | +advisory: |
| 8 | + gem: websocket-driver |
| 9 | + cve: 2026-61666 |
| 10 | + ghsa: 2x63-gw47-w4mm |
| 11 | + url: https://www.cve.org/CVERecord?id=CVE-2026-61666 |
| 12 | + title: Denial of service via malformed Host header |
| 13 | + date: 2026-06-23 |
| 14 | + description: |- |
| 15 | + ## Impact |
| 16 | +
|
| 17 | + If this library is used to implement a WebSocket server on top of a |
| 18 | + TCP server, by using the WebSocket::Driver.server() method, then a |
| 19 | + client can cause the server to crash by sending a Host header that |
| 20 | + is not a valid host[:port] string. When this happens, a URI::InvalidURIError |
| 21 | + exception is raised which is not caught, and this can cause the server |
| 22 | + process to crash if the application does not catch the error from |
| 23 | + the parse() method itself. |
| 24 | +
|
| 25 | + ## Acknowledgements |
| 26 | +
|
| 27 | + This issue was discovered and reported by Pranjali Thakur, |
| 28 | + DepthFirst Security Research Team. |
| 29 | + cvss_v3: 7.1 |
| 30 | + cvss_v4: 8.9 |
| 31 | + patched_versions: |
| 32 | + - ">= 0.8.2" |
| 33 | + related: |
| 34 | + url: |
| 35 | + - https://www.cve.org/CVERecord?id=CVE-2026-61666 |
| 36 | + - https://rubygems.org/gems/websocket-driver/versions/0.8.2 |
| 37 | + - https://github.com/faye/websocket-driver-ruby/blob/main/CHANGELOG.md#082--2026-06-23 |
| 38 | + - https://github.com/faye/websocket-driver-ruby/compare/0.8.1...0.8.2 |
| 39 | + - https://github.com/faye/websocket-driver-ruby/commit/7d6fd87759a2fdc83590d3b49ffa661dc53fa128 |
| 40 | + - https://github.com/faye/websocket-driver-ruby/security/advisories/GHSA-2x63-gw47-w4mm |
| 41 | + - https://github.com/advisories/GHSA-2x63-gw47-w4mm |
| 42 | + notes: | |
| 43 | + - NOTE: Gem name is websocket-driver but repo name is websocket-driver-ruby. |
| 44 | + - date value from CHANGELOG URL. |
| 45 | + - cvss_v3 from nvd.nist.gov URL |
| 46 | + - cvss_v4 from GHSA |
| 47 | + - No CVE, so no non-GHSA cvss values. |
| 48 | +--- |
0 commit comments