Vulnerability · Published Jun 3, 2026 · Assigned by DSF
CVE-2026-44546Header injection via WebSocket upgrade parser differential allows ASGI scope header spoofing
Low 3.7
In plain English
A low-severity security flaw in daphne from djangoproject. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 7% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.24 | py3-daphne | 4.2.3-r0 | ALPINE-CVE-2026-44546 |
| Debian:12 | python-daphne | no fix listed | DEBIAN-CVE-2026-44546 |
| Debian:13 | python-daphne | 4.1.2-2+deb13u1 | DEBIAN-CVE-2026-44546 |
| Debian:14 | python-daphne | 4.2.2-0.1 | DEBIAN-CVE-2026-44546 |
| PyPI | daphne | 4.2.2 | PYSEC-2026-214 |
| PyPI | daphne | 4.2.2 | GHSA-xh68-hfp5-5x5m |
| Ubuntu:22.04:LTS | python-daphne | no fix listed | UBUNTU-CVE-2026-44546 |
| Ubuntu:24.04:LTS | python-daphne | no fix listed | UBUNTU-CVE-2026-44546 |
| Ubuntu:25.10 | python-daphne | no fix listed | UBUNTU-CVE-2026-44546 |
| Ubuntu:26.04:LTS | python-daphne | no fix listed | UBUNTU-CVE-2026-44546 |
| Ubuntu:26.10 | python-daphne | no fix listed | UBUNTU-CVE-2026-44546 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| djangoproject | daphne | 4.2.0 – through 4.2.1 |
Weakness: CWE-444 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
References
- https://github.com/django/daphne/blob/main/CHANGELOG.txt release-notes