Skip to main content

Sanic CVE-2026-85078

| EUVDEUVD-2026-81577 MEDIUM
HTTP Request/Response Smuggling (CWE-444)
2026-09-17 GitHub_M GHSA-wmj6-g64g-j7q5
6.5
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Open keep-alive HTTP/1.1 connection to Sanic
  2. Delivery
    Send chunked POST with request hidden in trailer
  3. Exploit
    Trailer bytes reparsed as second request
  4. Execution
    Smuggled request routed past front-end proxy
  5. Impact
    Poison 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

sanic 25.12.0, < 25.12.1
sanic < 24.12.1

Affected Packages

pypi sanic fix: 24.12.1, 25.12.1

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

Vendor (GitHub_M) PRIMARY 6.5 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
vuln.today AI 6.5 MEDIUM

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.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N
Red Hat 8.2 HIGH

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
Low

Lifecycle Timeline

1
Patch available
Sep 17, 2026 - 15:17 EUVD

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

EPSS Score
0.3%
Top 77% exploitable
Prevalence
Medium
popular Python async web framework, common but not ubiquitous in production
Threat Intel
1
1 source
Exploit
POC
Public exploit code exists
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact· derived
Medium

Priority Score

52
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy