websocket-driver is vulnerable to Denial of Service (DoS)
89
CVE Score
High
Denial of Service (DoS)
The Server driver, created via WebSocket::Driver.server(), parses the incoming HTTP Host header into server name and port using URI parsing while completing the request. A client can send a malformed Host header that is not a valid host[:port] value, which raises an uncaught URI::InvalidURIError. Before the fix this exception propagates out of the request parser and can crash the server process, causing a denial of service when the application does not itself rescue the error. The fix makes the request parser rescue URI::InvalidURIError and put the request into an error state so the connection is treated as invalid instead of raising.
Upgrade the websocket-driver library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and are using the Server driver created via WebSocket::Driver.server().
0.0.1 - 0.8.1
Fixed in 0.8.2websocket-driver is vulnerable to Denial of Service (DoS) in versions 0.0.1 - 0.8.1.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.