CVE-2026-44546: daphne WebSocket Handshake Header Smuggling Through Vulnerability
LOWCVE-2026-44546 is a LOW (CVSS 3.7) websocket handshake header smuggling through vulnerability (CWE-444: Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling')) affecting daphne libraries in the PyPI ecosystem. The issue involves websocket handshake header smuggling through autobahn splitlines() mishandling of non-standard line separators. Remediation is available by upgrading affected packages to version 4.2.2.
CVE-2026-44546 at a Glance
Security Impact
CVSS: 3.7
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N).
How to Fix CVE-2026-44546
To remediate this vulnerability, upgrade all affected daphne dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install daphne>=4.2.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show daphne
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2026-44546, inspect your installed packages using pip:
pip show daphne
Analyze the terminal output to locate any version of daphne in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.2.2), your application is affected.
Note: The pip show daphne command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-444: Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling'), where the product acts as an intermediary http agent (such as a proxy or firewall) in the data flow between two entities such as a client and server, but it does not interpret malformed http requests or responses in ways that are consistent with how the messages will be processed by those entities that are at the ultimate destination. In daphne, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-44546 Affected daphne Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
daphne
|
PyPI |
< 4.2.2
|
4.2.2
|
References
Frequently Asked Questions
What is CVE-2026-44546?
Which daphne versions are affected?
What version fixes CVE-2026-44546?
Is daphne affected?
What is the CVSS score of CVE-2026-44546?
What CWE is associated with CVE-2026-44546?
How can I check PyPI dependencies for CVE-2026-44546?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-xh68-hfp5-5x5m",
"modified" : "2026-07-11T22:53:35Z",
"published" : "2026-06-03T15:30:43Z",
"aliases" : [ "CVE-2026-44546" ],
"summary" : "daphne: WebSocket handshake header smuggling through autobahn splitlines() mishandling of non-standard line separators",
"details" : "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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "daphne"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "4.2.2"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-44546"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/django/daphne"
}, {
"type" : "WEB",
"url" : "https://github.com/django/daphne/blob/main/CHANGELOG.txt"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/daphne/PYSEC-2026-214.yaml"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-444" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2026-07-11T22:53:35Z",
"nvd_published_at" : "2026-06-03T14:16:43Z"
}
}