Advisory

PYSEC-2026-214

Also known as: CVE-2026-44546, GHSA-xh68-hfp5-5x5m

Summary

The record has no summary.

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

Medium Basis: CVSS v3 score 5.3, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Dates

Published
2026-06-03 14:16 UTC
Modified
2026-07-13 16:45 UTC

Affected packages and fixes

daphne

PyPI · All systems

Affected

  • introduced 0, fixed 4.2.2 (ecosystem)

Fixed versions

4.2.2

Fix

  • Fixed version 4.2.2
    pip install --upgrade daphne==4.2.2

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences