---
id: CVE-2026-44546
aliases:
  - GHSA-xh68-hfp5-5x5m
  - PYSEC-2026-214
title: "daphne: WebSocket handshake header smuggling through autobahn splitlines()\_mishandling of non-standard line separators"
summary: "daphne: WebSocket handshake header smuggling through autobahn splitlines()\_mishandling of non-standard line separators"
severity: low
cvss: 3.7
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N'
vendor: daphne
product: daphne
ecosystem: pip
affected:
  - daphne < 4.2.2
patched:
  - daphne 4.2.2
published: '2026-06-03'
updated: '2026-07-11'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-xh68-hfp5-5x5m'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-44546'
  - url: 'https://github.com/django/daphne'
  - url: 'https://github.com/django/daphne/blob/main/CHANGELOG.txt'
  - url: >-
      https://github.com/pypa/advisory-database/tree/main/vulns/daphne/PYSEC-2026-214.yaml
tags:
  - osv
  - pip
epss: 0.00172
epssPercentile: 0.06954
ingestedAt: '2026-07-12T18:57:28.050Z'
---

## Overview

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.

## Affected packages

- `daphne < 4.2.2`

## Remediation

Upgrade to a patched release:

- `daphne 4.2.2`
