CVE-2026-44546

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

Published Jun 3, 2026 CVSS 3.1 · 3.7 Low EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-xh68-hfp5-5x5m daphne: WebSocket handshake header smuggling through autobahn splitlines() mishandling of non-standard line separators
History
Type Values Removed Values Added
CPEs cpe:2.3:a:djangoproject:daphne:*:*:*:*:*:*:*:*
Type Values Removed Values Added
First Time appeared Djangoproject
Djangoproject daphne
Vendors & Products Djangoproject
Djangoproject daphne
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title Header injection via WebSocket upgrade parser differential allows ASGI scope header spoofing
Weaknesses CWE-444
References
Metrics cvssV3_1

{'score': 3.7, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
DSF
Published
Updated
Jun 3, 2026, 3:46 PM
Reserved
May 6, 2026, 8:29 PM
Status
Analyzed
Published
Jun 3, 2026, 2:16 PM
Modified
Jul 22, 2026, 7:10 PM
Severity
Low
Public date
Jun 3, 2026, 1:17 PM