CVE-2026-85077
Sanic: HTTP response header injection via missing CR/LF validation in Sanic HTTP/1.1 responses
Mitigation
- Upgrade sanic to 25.12.1 or later.
Who should check
- Anyone running sanic-org sanic < 24.12.1; >= 25.12.0, < 25.12.1
Vulnerability facts
- Affected
- sanic-org sanic < 24.12.1; >= 25.12.0, < 25.12.1
- Fixed in
- sanic-org sanic 24.12.1, sanic-org sanic 25.12.1
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 8.2 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: Low
- Integrity impact: High
- Availability impact: None
- EPSS
- 0.48% chance of exploitation in 30 days (percentile 34, 2026-11-26)
- CWE
- CWE-113
- Modified
Description
Sanic is an opensource python web server/framework. Prior to version 24.12.1, and in version 25.12.0, the HTTP/1.1 response pipeline in sanic/response/types.py serializes response header names and values without rejecting carriage-return or line-feed characters. Applications that place attacker-controlled data in response.headers, file(..., filename=...), or cookie path and domain attributes can therefore emit injected headers and may split responses. Depending on application and proxy behavior, this can enable session fixation through injected cookies, cache poisoning, or security-header corruption. This issue is fixed in versions 24.12.1 and 25.12.1.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| sanic-org sanic | < 24.12.1; >= 25.12.0, < 25.12.1 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-85077. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-85077.md Affected: sanic-org sanic < 24.12.1; >= 25.12.0, < 25.12.1 Fixed in: sanic-org sanic 24.12.1, sanic-org sanic 25.12.1 Steps: 1. Search this machine and project for sanic-org sanic: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
- https://github.com/sanic-org/sanic/pull/3164
- https://github.com/sanic-org/sanic/pull/3165
- https://github.com/sanic-org/sanic/commit/47349d689d65fa1907977ac100e867894aeafb22
- https://github.com/sanic-org/sanic/commit/9a95bb1c187558949606b915f5162c15f2db781b
- https://github.com/sanic-org/sanic/commit/a332796506c7c588b6930b02a8886e43eb8ea8d6
FAQ
Is CVE-2026-85077 being exploited?
There is no confirmed exploitation: CVE-2026-85077 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.48% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-85077?
High: CVSS 8.2 (v3.1, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2026-85077?
sanic-org sanic < 24.12.1; >= 25.12.0, < 25.12.1.
Is there a fix for CVE-2026-85077?
Yes. Fixed in sanic-org sanic 24.12.1, sanic-org sanic 25.12.1. Upgrade sanic to 25.12.1 or later.
How do I check if I'm affected by CVE-2026-85077?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.