Skip to content
Heist/ feed
Back to feed
Medium

python-daphne — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2026-44546

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.

Products
python-daphne
Affected versions
1.4.2-1, 2.3.0-1, 2.4.0-1, 2.4.1-1, 3.0.1-1, 3.0.2-1, 4.0.0-1, 4.1.2-2, 4.2.1-1, 4.2.1-2, 4.2.2-0.1, 4.2.3-1
Fixed versions
Not specified
CVEs
CVE-2026-44546
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 03:04 UTC · Revision 1

Source evidence

UBUNTU-CVE-2026-44546

core-osv · Original source

Published 3 Jun 2026, 14:16 UTC

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.

osv:UBUNTU-CVE-2026-44546

python-daphne

Fixed versions: Not specified

python-daphne

Fixed versions: Not specified

python-daphne

Fixed versions: Not specified

python-daphne

Fixed versions: Not specified

python-daphne

Fixed versions: Not specified

python-daphne

Fixed versions: Not specified

python-daphne

Fixed versions: Not specified

Complete source record
{
  "id": "603acaad22aadcc4014ace0e689943df45c80cb80f0df9ba500be4f0d51be9f0",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-44546",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2026-44546",
    "summary": "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.",
    "evidence": "osv:UBUNTU-CVE-2026-44546",
    "products": [
      {
        "name": {
          "value": "python-daphne",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.4.2-1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-daphne",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.3.0-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "2.4.0-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "2.4.1-1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-daphne",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.0.1-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "3.0.2-1",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-daphne",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4.0.0-1",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-daphne",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4.1.2-2",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-daphne",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4.2.1-2",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "4.2.2-0.1",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "4.2.3-1",
            "evidence": "/affected/5/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-daphne",
          "evidence": "/affected/6/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4.1.2-2",
            "evidence": "/affected/6/versions"
          },
          {
            "value": "4.2.1-1",
            "evidence": "/affected/6/versions"
          },
          {
            "value": "4.2.1-2",
            "evidence": "/affected/6/versions"
          }
        ]
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "UBUNTU-CVE-2026-44546",
      "aliases": [
        "UBUNTU-CVE-2026-44546"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N"
        },
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-daphne",
            "purl": "pkg:deb/ubuntu/python-daphne?arch=source&distro=bionic",
            "ecosystem": "Ubuntu:18.04:LTS"
          },
          "versions": [
            "1.4.2-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-44546.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "daphne",
                "binary_version": "1.4.2-1"
              },
              {
                "binary_name": "python3-daphne",
                "binary_version": "1.4.2-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-daphne",
            "purl": "pkg:deb/ubuntu/python-daphne?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "2.3.0-1",
            "2.4.0-1",
            "2.4.1-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-44546.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "daphne",
                "binary_version": "2.4.1-1"
              },
              {
                "binary_name": "python3-daphne",
                "binary_version": "2.4.1-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-daphne",
            "purl": "pkg:deb/ubuntu/python-daphne?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "3.0.1-1",
            "3.0.2-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-44546.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "daphne",
                "binary_version": "3.0.2-1"
              },
              {
                "binary_name": "python3-daphne",
                "binary_version": "3.0.2-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-daphne",
            "purl": "pkg:deb/ubuntu/python-daphne?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "4.0.0-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-44546.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "daphne",
                "binary_version": "4.0.0-1"
              },
              {
                "binary_name": "python3-daphne",
                "binary_version": "4.0.0-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-daphne",
            "purl": "pkg:deb/ubuntu/python-daphne?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "4.1.2-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-44546.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "daphne",
                "binary_version": "4.1.2-2"
              },
              {
                "binary_name": "python3-daphne",
                "binary_version": "4.1.2-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-daphne",
            "purl": "pkg:deb/ubuntu/python-daphne?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "4.2.1-2",
            "4.2.2-0.1",
            "4.2.3-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-44546.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "daphne",
                "binary_version": "4.2.3-1"
              },
              {
                "binary_name": "python3-daphne",
                "binary_version": "4.2.3-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-daphne",
            "purl": "pkg:deb/ubuntu/python-daphne?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "4.1.2-2",
            "4.2.1-1",
            "4.2.1-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-44546.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "daphne",
                "binary_version": "4.2.1-2"
              },
              {
                "binary_name": "python3-daphne",
                "binary_version": "4.2.1-2"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T13:00:09.131980961Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-44546"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2026-44546",
        "https://www.cve.org/CVERecord?id=CVE-2026-44546"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-44546",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/1/score"
  },
  "source_id": "core-osv",
  "document_id": 360369,
  "published_at": "2026-06-03T14:16:00+00:00"
}