CVE-2026-44546Djangoproject Daphne
Medium 5.3 No auth needed
Follow: this CVE · Djangoproject · Djangoproject Daphne We alert you by email or Slack (account required).
- Priority
- 47
- CVSS 3.1
- 5.3
- EPSS
- —
- Auth required
- No
- Published
- Jun 3, 2026
- Updated
- Jul 22, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-444
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
What happens
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.
What to do
- Apply the vendor's security update for Daphne.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | daphne |
< 4.2.2 |
4.2.2 |
pip install "daphne>=4.2.2" |
| PyPI | daphne |
< 4.2.2 |
4.2.2 |
pip install "daphne>=4.2.2" |
Per OSV / GitHub Advisories (GHSA-xh68-hfp5-5x5m, PYSEC-2026-214). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| djangoproject | daphne | < 4.2.2 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Release Notes