GitHub Advisoryadvisory · PyPI
GHSA-xh68-hfp5-5x5m daphne: WebSocket handshake header smuggling through autobahn splitlines() mishandling of non-standard line separators
LOW
Official page ↗
- Aliases
- CVE-2026-44546
- Ecosystem
- PyPI
- Packages
- daphne
- Severity
- Low
- CVSS vector
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
- Weaknesses
- CWE-444
- Reviewed
- 2026-07-11
Affected packages
• PyPI daphne: < 4.2.2 → fixed in 4.2.2
Description
daphne before 4.2.2 reconstructs a raw HTTP request from Twisted's parsed headers and feeds it to autobahn for WebSocket handshake processing. Twisted does not treat \x0b, \x0c, \x1c, \x1d, \x1e, or \x85 as header line separators, but autobahn decodes header values to str and calls splitlines(). An attacker can exploit this parser differential to inject additional headers into the ASGI scope passed to the application. daphne now rejects requests with these bytes in any header value with a 400 response.
Related
Alias · CVE (1)
- CVE-2026-44546 daphne before 4.2.2 reconstructs a raw HTTP request from Twisted's parsed headers and feeds it to autobahn for WebSocket handshake… vulnerability
Weakness · CWE (1)
- CWE-444 Inconsistent Interpretation of HTTP Requests weakness