Skip to main content
← All vulnerabilities
CVE-2026-44546GHSA-XH68-HFP5-5X5MPYSEC-2026-214

Header injection via WebSocket upgrade parser differential allows ASGI scope header spoofing

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 4.2.2
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • daphne

    From 4.2.0 · through 4.2.1

  • daphnePyPI

    fixed in 4.2.2

References 1

GitHub · django/daphne