CVE-2026-44546
Description
Daphne versions prior to 4.2.2 are vulnerable to header injection due to parser differentials between Twisted and Autobahn.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Daphne versions prior to 4.2.2 are vulnerable to header injection due to parser differentials between Twisted and Autobahn.
Vulnerability
Daphne versions before 4.2.2 are affected by a vulnerability where the server reconstructs raw HTTP requests from parsed headers and passes them to Autobahn for WebSocket handshake processing. Twisted, a dependency, does not recognize certain bytes (\x0b, \x0c, \x1c, \x1d, \x1e, or \x85) as header line separators. However, Autobahn decodes header values to strings and uses splitlines(), creating a parser differential that allows an attacker to inject additional headers into the ASGI scope provided to the application.
Exploitation
An attacker can exploit this parser differential by sending specially crafted HTTP requests containing specific non-standard bytes within header values. These bytes are not treated as line separators by Twisted but are processed as such by Autobahn. This allows the attacker to inject arbitrary headers into the ASGI scope, which is then passed to the downstream application.
Impact
Successful exploitation allows an attacker to inject additional headers into the ASGI scope. The exact impact of these injected headers depends on how the application handles them, but it could potentially lead to unexpected behavior or security bypasses. Daphne now rejects requests with these bytes in any header value by returning a 400 Bad Request response.
Mitigation
Daphne version 4.2.2 and later have been released to address this vulnerability. The fix involves rejecting requests that contain the problematic bytes in any header value with a 400 response. Users are advised to upgrade to Daphne 4.2.2 or a later version. The release date for version 4.2.2 is not explicitly mentioned in the provided changelog [1].
AI Insight generated on Jun 3, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
2(expand)+ 1 more
- (no CPE)
- (no CPE)range: <4.2.2
Patches
0No patches discovered yet.
Vulnerability mechanics
No source-code context for this CVE — mechanics is only generated when we can read the actual fix diff. Without that, the four sections (root cause, attack vector, affected code, fix) would be speculation rather than analysis.
References
1News mentions
0No linked articles in our index yet.