GHSA-xh68-hfp5-5x5m

Suggest an improvement
Source
https://github.com/advisories/GHSA-xh68-hfp5-5x5m
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-xh68-hfp5-5x5m/GHSA-xh68-hfp5-5x5m.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-xh68-hfp5-5x5m
Aliases
Downstream
CGA (2)
Published
2026-06-03T15:30:43Z
Modified
2026-07-11T23:11:37Z
Severity
  • 3.7 (Low) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N CVSS Calculator
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.

Database specific
{
    "cwe_ids":  [
        "CWE-444"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-07-11T22:53:35Z",
    "nvd_published_at":  "2026-06-03T14:16:43Z",
    "severity":  "LOW"
}
References

Affected packages

PyPI / daphne

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
4.2.2

Affected versions

0.*
0.8.1
0.8.2
0.9
0.9.1
0.9.2
0.9.3
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
0.11.1
0.11.2
0.11.3
0.12.0
0.12.1
0.12.2
0.13.0
0.13.1
0.14.0
0.14.1
0.14.2
0.14.3
0.15.0
1.*
1.0.0
1.0.1
1.0.2
1.0.3
1.1.0
1.2.0
1.3.0
1.4.0
1.4.1
1.4.2
2.*
2.0.0
2.0.1
2.0.2
2.0.3
2.0.4
2.1.0
2.1.1
2.1.2
2.2.0
2.2.1
2.2.2
2.2.3
2.2.4
2.2.5
2.3.0
2.4.0
2.4.1
2.5.0
3.*
3.0.0
3.0.1
3.0.2
4.*
4.0.0b1
4.0.0
4.1.0
4.1.1
4.1.2
4.2.0
4.2.1

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-xh68-hfp5-5x5m/GHSA-xh68-hfp5-5x5m.json"