Vulnerability GHSA-2x63-gw47-w4mm

High Risk
HIGH RISK
CVSS Score: 8.0
Score Range: 7.0–8.9
High severity vulnerabilities (CVSS 7.0–8.9). Serious vulnerabilities that should be prioritized soon after critical fixes.
3 months ago
July 21, 2026 at 06:34 PM UTC
websocket-driver-ruby: Denial of service via malformed Host header
0.1.0 - 0.8.1
0.1.0 - 0.8.1

Summary

websocket-driver-ruby: Denial of service via malformed Host header

Details

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.

Impacted packages

Timeline

Published
3 months ago
July 21, 2026 at 06:34 PM UTC
Fixed (0.8.2)
4 months ago
June 23, 2026 at 11:22 AM UTC
Last Modified
9 hours ago
November 02, 2026 at 09:15 PM UTC