WebSocket Crash in Granian HTTP Server for Python Applications
CVE-2026-42544
7.5HIGH
What is CVE-2026-42544?
Granian, a Rust-based HTTP server designed for Python applications, exhibits a vulnerability where it crashes when an unauthenticated client sends a WebSocket upgrade request containing non-ASCII bytes in the Sec-WebSocket-Protocol header. This crash occurs during the WebSocket scope construction, prior to invoking the ASGI application, resulting in disruption of service for legitimate users. This issue was present in Granian versions from 1.2.0 through 2.7.4 and has been addressed in version 2.7.4.
Affected Version(s)
granian >= 1.2.0, < 2.7.4
