# CVE-2026-44546: Header injection via WebSocket upgrade parser differential allows ASGI scope header spoofing

> Attacker can spoof ASGI scope headers via parser differential in Daphne, potentially bypassing security checks or modifying application state.

- **Severity:** Low 3.7 (`CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 3 Jun 2026
- **Updated:** 3 Jun 2026
- **Also known as:** DEBIAN-CVE-2026-44546, ECHO-5670-4874-599c, GHSA-xh68-hfp5-5x5m, PYSEC-2026-214, UBUNTU-CVE-2026-44546

## What is CVE-2026-44546?

CVE-2026-44546 is a low-severity vulnerability in djangoproject daphne, published on 3 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

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.

Weakness: CWE-444 (Inconsistent Interpretation of HTTP Requests)

## Which versions are affected by CVE-2026-44546?

3 open source packages ship an affected version, including daphne. It affects 1 product.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `daphne` | PyPI | All versions | 4.2.2 |
| `daphne` | PyPI | All versions | 4.2.2 |
| `daphne` | PyPI | All versions | 4.2.2 |

Products: Djangoproject Daphne.

## How do I fix CVE-2026-44546?

Upgrade daphne to 4.2.2 or later.

## Is CVE-2026-44546 being exploited?

There is no known exploitation of CVE-2026-44546 in the wild and no public exploit code.

## Other vulnerabilities in djangoproject daphne

- [CVE-2026-44545](https://insights.sbomify.com/CVE-2026-44545/): Unbounded WebSocket message and frame sizes can cause unauthenticated remote denial of service (medium 5.3)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-44546 and fix it if it is affected.

What it is: CVE-2026-44546 is a low-severity vulnerability in djangoproject daphne, published on 3 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2026-44546 in the wild and no public exploit code.

Affected packages and fixed versions:
- daphne (PyPI): affected all versions; fixed in 4.2.2
- daphne (PyPI): affected all versions; fixed in 4.2.2
- daphne (PyPI): affected all versions; fixed in 4.2.2

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-44546/ (Markdown: https://insights.sbomify.com/CVE-2026-44546/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-44546
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-44546
- OSV: https://osv.dev/vulnerability/CVE-2026-44546

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-44546/
Summaries are generated and may contain mistakes; the official description above is the record.
