Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessOpen keep-alive HTTP/1.1 connection to Sanic
-
DeliverySend chunked POST with request hidden in trailer
-
ExploitTrailer bytes reparsed as second request
-
ExecutionSmuggled request routed past front-end proxy
-
ImpactPoison cache or bypass access controls
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V4 - API and Web Service HTTP request consistency
|
| Exploitation Conditions | Requires Sanic 25.12.0 (or any version < 24.12.1) serving HTTP/1.1 over a reused keep-alive connection; the attacker sends a chunked-transfer-encoded request and plants a full second request in the trailer-part after the terminating 0-chunk. No authentication, user interaction, or non-default Sanic option is needed - the parser defect triggers on default configurations. The chief limiting factor for meaningful impact is deployment topology: the smuggling primitive becomes dangerous mainly when Sanic runs behind an intermediary (reverse proxy, CDN, or load balancer) that disagrees on request boundaries; a directly-exposed Sanic instance mostly just processes the attacker's own extra request. |
| Impact | This is a genuine, verifiable HTTP request-smuggling flaw (CWE-444) in Sanic's core HTTP/1.1 chunked-body parser, rated Medium at CVSS 6.5 (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L). The network vector, low complexity, and no-auth/no-interaction requirements make the parsing defect itself trivially reachable by any remote unauthenticated client, and a working proof-of-concept is included in the GHSA advisory (one TCP payload yields two distinct routed responses - 405 for the outer POST / and 200/404 for the hidden GET /), so this qualifies as publicly available exploit code, not merely theory. However, the CVSS impact is deliberately modest (C:N/I:L/A:L, S:U) and the description explicitly limits real-world weaponization to deployments 'behind intermediaries' - the smuggling primitive gains cache-poisoning/access-control-bypass value only when a front-end proxy disagrees with Sanic on request boundaries. No EPSS score, KEV listing, or SSVC data is provided; absent active-exploitation signals this reads as a real but not emergency priority: patch promptly, prioritize where Sanic sits behind a shared reverse proxy/CDN/load balancer. The vendor scored S:U, but request-smuggling that crosses an intermediary trust boundary arguably merits S:C - a defensible point of disagreement that would raise the score. |
| Exploit ScenarioDerived | An unauthenticated attacker opens a keep-alive connection to a Sanic 25.12.0 service behind a reverse proxy and sends a single TCP payload: a chunked POST / whose trailer region after the terminating 0-chunk contains a complete second request (e.g. GET /admin). Sanic fails to consume the trailer and parses those leftover bytes as an independent request, producing two responses from one send; a verified PoC in the GHSA advisory demonstrates this exact behavior. Behind a front-end that considers the connection to hold only one request, the smuggled request can poison caches, bypass proxy-enforced access controls, or hijack another user's connection. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 17, 2026
Chunked-transfer request smuggling in Sanic allows a remote unauthenticated attacker to plant a hidden second HTTP request inside the trailer-part of a chunked request, which Sanic then parses and routes as a genuine backend request on the same keep-alive connection. Affected versions are all releases before 24.12.1 and the 25.12.0 release (fixed in 24.12.1 and 25.12.1); the defect triggers on default configuration, with CVSS 3.1 scoring 6.5 (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L) reflecting a request-boundary integrity failure rather than direct data compromise. A verified proof-of-concept is included in the upstream advisory showing a single TCP payload yielding two responses (a 405 for the outer POST and a 200 for a smuggled GET), meaning publicly available exploit code exists; the practical risk is highest when Sanic sits behind a reverse proxy, CDN, or load balancer that disagrees with Sanic on request boundaries.
RemediationAI
Vendor-released patch: upgrade to Sanic 25.12.1 for the 25.x line, or to 24.12.1 if you are on 24.x - both releases contain the parser fix that rejects a non-empty chunked trailer-part by raising BadRequest and closing the keep-alive connection (PRs https://github.com/sanic-org/sanic/pull/3164 and https://github.com/sanic-org/sanic/pull/3165; release notes at https://github.com/sanic-org/sanic/releases/tag/v25.12.1 and https://github.com/sanic-org/sanic/releases/tag/v24.12.1). If immediate upgrade is not possible, the most effective compensating control is to disable HTTP/1.1 keep-alive connection reuse for Sanic (for example by terminating keep-alive at the front-end proxy and forcing Connection: close toward the backend), which removes the buffer-reuse condition the smuggling primitive depends on - the trade-off is higher per-request latency and connection churn. Alternatively, normalise and enforce request framing at the edge: have the reverse proxy reject or strip chunked trailers, always set an unambiguous Content-Length or Transfer-Encoding, and configure the proxy and Sanic to agree on framing so smuggled bytes are never re-parsed as a second request; this depends on the proxy correctly handling trailers and does not fix the underlying Sanic parser. Where chunked request bodies are not required by the application, rejecting 'Transfer-Encoding: chunked' at the proxy is a blunt but low-risk workaround that may break clients uploading streamed bodies. Also restrict direct public exposure of Sanic without an intermediary, since a directly exposed instance largely just executes the attacker's own extra request and limits real-world impact.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The flaw is a classic HTTP request-boundary integrity failure (CWE-444) in Sanic's core HTTP/1.1 parser. Under chunked transfer encoding, a message body terminates with a zero-size chunk followed by an optional trailer-part and a final CRLF; the parser in sanic/http/http1.py only skipped the terminating '0\r\n' sequence and did not consume or validate the trailer section, leaving attacker-controlled bytes in the connection buffer. Because Sanic reuses that buffer across keep-alive requests, the residual bytes were reinterpreted as the start of a new request - the advisory's control case (shifting leftover bytes from 'GET' to ':GET' via a two-character trailer field name) confirms this is incorrect trailer consumption and not legitimate pipelining. The upstream fix (PR 3164/3165, commits 47349d6, 69a10d3, a332796) requires the trailer section to be an empty CRLF line, raises BadRequest and sets keep_alive=False on any non-empty trailer, and drops the connection; the same patch series also adds a 414 URITooLong guard for URLs over 65535 bytes (httptools stores URL offsets as uint16) and strips CR/LF/NUL from response header values. The affected package is tracked as cpe:2.3:a:sanic-org:sanic:*:*:*:*:*:*:*:* and concerns the HTTP/1.1 protocol path specifically; HTTP/3 or deployments that never use chunked encoding with keep-alive are not implicated by the described defect.
Know when Sanic gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
Remote, no auth or interaction, low-complexity trigger against default config; integrity/availability low because impact is request-boundary corruption gated on a front-end intermediary, no confidentiality primitive proven.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.org
Sanic is an opensource python web server/framework. In version 25.12.0, Sanic's core HTTP/1.1 chunked-body handling does not fully consume the trailer-part after the terminating zero chunk before reusing the keep-alive connection buffer. A remote unauthenticated client can place attacker-controlled bytes in that trailer region, causing Sanic to parse and route them as a hidden second request after the outer request. This breaks HTTP request-boundary integrity and can provide a request-smuggling primitive when Sanic is deployed behind intermediaries. This issue is fixed in version 25.12.1.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
HTTP request smuggling exploits inconsistencies in how front-end and back-end servers parse HTTP message boundaries.
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Sanic before 0.5.1 allows reading arbitrary files with directory traversal, as demonstrated by the /static/..%2f substri
Sanic is an opensource python web server/framework. Rated high severity (CVSS 7.5), this vulnerability is remotely explo
HTTP response splitting and header injection in Sanic let unauthenticated remote attackers forge arbitrary response head
EUVD-2026-81577
GHSA-wmj6-g64g-j7q5
NVD
CVE.org
EPSS
Exploit-DB