Back

MEDIUM

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

Published Jun 3, 2026

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.

Affected products

Remediation

No remediation recorded yet.

Weaknesses (1)

References (7)

Change history (0)

No recorded changes yet.

Sources
CVE.org / MITRE
Status PUBLISHED
Assigner DSF
Published Jun 3, 2026
Updated Jun 3, 2026
Reserved May 6, 2026
CISA Vulnrichment
Updated Jun 3, 2026
NVD
Status Analyzed
Modified Jul 22, 2026
Red Hat
Severity Low
Public date Jun 3, 2026
GHSA-XH68-HFP5-5X5M