# CVE-2026-85077: Sanic: HTTP response header injection via missing CR/LF validation in Sanic HTTP/1.1 responses

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.2
- **CVSS:** 8.2 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.48% (percentile 34, 2026-11-26)
- **CWE:** CWE-113
- **Published:** 2026-09-17T14:26:39.826Z
- **Modified:** 2026-09-24T21:22:19.873Z

## Who should check

- Anyone running sanic-org sanic \< 24.12.1; \>= 25.12.0, \< 25.12.1

## 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

- sanic-org sanic: \< 24.12.1; \>= 25.12.0, \< 25.12.1 (cvelist)

## Mitigation

- Upgrade sanic to 25.12.1 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- vendor: <https://github.com/sanic-org/sanic/security/advisories/GHSA-m64h-22vf-48wm>
- patch: <https://github.com/sanic-org/sanic/pull/3164>
- patch: <https://github.com/sanic-org/sanic/pull/3165>
- patch: <https://github.com/sanic-org/sanic/commit/47349d689d65fa1907977ac100e867894aeafb22>
- patch: <https://github.com/sanic-org/sanic/commit/9a95bb1c187558949606b915f5162c15f2db781b>
- patch: <https://github.com/sanic-org/sanic/commit/a332796506c7c588b6930b02a8886e43eb8ea8d6>
- other: <https://github.com/sanic-org/sanic/releases/tag/v24.12.1>
- other: <https://github.com/sanic-org/sanic/releases/tag/v25.12.1>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-85077>

HTML: <https://flawdb.com/CVE-2026-85077> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-85077>
