sanic: Improper Neutralization of CRLF Sequences in HTTP Headers
CVE-2026-85077 is a high-severity improper neutralization of CRLF sequences in HTTP headers vulnerability in sanic from Sanic-org, with a CVSS 3.1 base score of 8.2 out of 10. It can be exploited remotely over the network by an unauthenticated attacker, without any action from a user. Affected sanic versions: < 24.12.1; >= 25.12.0, < 25.12.1. The record does not name a fixed version, so check the vendor advisory. There is no confirmed exploitation so far. EPSS estimates a 0.48% chance of exploitation within 30 days, which is low compared with other CVEs.
High severity with no evidence of exploitation so far.
What to do
- Check which version of sanic you run against the affected versions below, and install the vendor's latest release.
- Read the advisory on github.com for workarounds and exact fixed builds.
- Until you can update, restrict network access to the affected service so it is not reachable from untrusted networks.
Affected products and versions
Version data comes from the organisation that assigned the CVE. Confirm against the vendor advisory before deciding you are unaffected.
How the severity score breaks down
- Attack vector
- NetworkCan be exploited remotely over a network, including the internet.
- Attack complexity
- LowNo special conditions are needed; the attack works reliably.
- Privileges required
- NoneNo account or login is needed.
- User interaction
- NoneNo action by a victim is required.
- Scope
- UnchangedImpact stays within the vulnerable component.
- Confidentiality
- LowSome restricted data can be read.
- Integrity
- HighData or code can be modified at will.
- Availability
- NoneAvailability is not affected.
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N. Scored by CNA (github.com).
Official 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.
Source: the CVE record as published by its numbering authority, via NVD and CVE.org.
The underlying weakness: Improper Neutralization of CRLF Sequences in HTTP Headers
The product receives data from an HTTP agent/component (e.g., web server, proxy, browser, etc.), but it does not neutralize or incorrectly neutralizes CR and LF characters before the data is included in outgoing HTTP headers.
How developers prevent this class of flaw
- Construct HTTP headers very carefully, avoiding the use of non-validated input data.
- Inputs should be decoded and canonicalized to the application's current internal representation before being validated (CWE-180). Make sure that the application does not decode the same input twice (CWE-174). Such errors could be used to bypass allowlist validation schemes by introducing dangerous inputs after they have been checked.
More Improper Neutralization of CRLF Sequences in HTTP Headers vulnerabilities (CWE-113)
Timeline
- CVE record published.
- CISA published its SSVC assessment (exploitation: none, automatable: yes, technical impact: partial).
- Record last changed materially (score, affected products, status or references).
References
Patches and release notes
- github.com/sanic-org/sanic/commit/47349d689d65fa1907977ac100e867894aeafb22
- github.com/sanic-org/sanic/commit/9a95bb1c187558949606b915f5162c15f2db781b
- github.com/sanic-org/sanic/commit/a332796506c7c588b6930b02a8886e43eb8ea8d6
- github.com/sanic-org/sanic/pull/3164
- github.com/sanic-org/sanic/pull/3165
- github.com/sanic-org/sanic/releases/tag/v24.12.1
- github.com/sanic-org/sanic/releases/tag/v25.12.1
Other vulnerabilities in sanic
- 7.5 High severity
Recent Improper Neutralization of CRLF Sequences in HTTP Headers vulnerabilities
- 8.1 High severity
- 7.5 High severity
- 7.1 High severity
- 7.3 High severity
- 7.5 High severity
- 7.4 High severity
Spotted an error? Tell us.