CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



CVE-2026-85078

CVE-2026-85078: HTTP Request Smuggling via Chunked Trailers in Sanic Core HTTP Parser

Amit Schendel
Amit Schendel
Senior Security Researcher

Sep 17, 2026·6 min read·42 visits

Executive Summary (TL;DR)

Sanic's HTTP/1.1 chunked parser fails to process or reject trailing headers after a zero-size chunk. Attackers can leverage this on keep-alive connections to smuggle subsequent HTTP requests, bypassing proxy security filters.

CVE-2026-85078 describes a critical request-boundary integrity vulnerability (HTTP Request Smuggling) in Sanic, an open-source high-performance Python web server and framework. The vulnerability exists within Sanic's core HTTP/1.1 chunked-body parser. Prior to the patched versions, when processing a chunked transfer-encoded request, Sanic's parser failed to fully consume or validate the trailer-part following the terminating zero-size chunk.

Vulnerability Overview

CVE-2026-85078 is a critical request-boundary integrity vulnerability (HTTP Request Smuggling) in Sanic, an open-source, high-performance Python web server and framework. The flaw is located within Sanic's core HTTP/1.1 chunked-body parser. Prior to the patched versions, Sanic failed to validate or consume the trailer-part of a chunked request.

When deployed behind intermediaries such as reverse proxies, load balancers, or CDNs, this parser defect allows an unauthenticated remote attacker to append a malicious payload inside the trailer section of the persistent TCP connection stream. Because keep-alive is active on the backend socket, Sanic incorrectly reads the unconsumed trailer bytes from the buffer and parses them as a brand-new, independent, and smuggled HTTP request.

This behavior breaks request-boundary integrity and provides a powerful request-smuggling primitive. The vulnerability is classified under CWE-444, which designates inconsistent interpretation of HTTP requests.

Root Cause Analysis

Under RFC 9112 Section 7.1, chunked transfer encoding allows a sender to transfer a message body as a series of chunks. A chunked body terminates with a chunk of size zero (0\r\n), followed by an optional trailer-part consisting of zero or more header fields, and concluding with an empty line. In vulnerable versions of Sanic, the parser logic inside sanic/http/http1.py handled the termination of chunked bodies under the assumption that no trailers would ever be appended.

Specifically, the vulnerable code deleted a fixed offset of 4 bytes (pos += 4) upon finding the terminal zero chunk, which assumed the immediate presence of \r\n\r\n. If the client transmitted trailer fields, those trailers followed the 0\r\n line. Because the parser deleted only up to pos, any trailing headers or payload bytes sent after the 0\r\n remained entirely unconsumed inside the stream buffer.

Since the underlying TCP connection used Connection: keep-alive, Sanic recycled the connection buffer for the next request. The event loop immediately read the leftover, unconsumed trailer bytes from the socket buffer and interpreted them as the start of a new, pipelined HTTP request. This discrepancy allows attackers to inject arbitrary requests that bypass proxy filters.

Code Analysis

The vulnerability was resolved by refactoring how the parser consumes and validates trailing data in sanic/http/http1.py. Rather than attempting to parse and store trailer headers, Sanic chooses the safest possible strategy: strictly rejecting any requests containing trailers and terminating the TCP connection immediately. This decision limits the attack surface without introducing complex parser state-machines.

Below is the comparison of the vulnerable and patched code blocks in sanic/http/http1.py under commit a332796506c7c588b6930b02a8886e43eb8ea8d6. The diff demonstrates how hardcoded offsets were replaced with explicit lookahead buffer checks. This ensures complete validation of trailing sequences before recycling the socket.

# Vulnerable Implementation
# Consume CRLF, chunk size 0 and the two CRLF that follow
pos += 4
# Might need to wait for the final CRLF
while len(buf) < pos:
    await self._receive_more()
del buf[:pos]
# Patched Implementation
# Consume the leading CRLF, the terminating size line and
# the CRLF that follows it.
del buf[: pos + 2]
 
# Only the empty line that ends the (empty) trailer section
# may follow. Wait for it to arrive.
while len(buf) < 2:
    await self._receive_more()
 
# Reject any trailer-part. Leaving trailer bytes in the
# buffer would let them be reparsed as a smuggled request on
# this keep-alive connection.
if buf[:2] != b"\r\n":
    self.keep_alive = False
    raise BadRequest("Bad chunked encoding")
 
# Consume the final empty line. Anything after it is a
# legitimately pipelined next request.
del buf[:2]

Exploitation Methodology

To exploit this vulnerability, an attacker must identify a Sanic server deployed behind an HTTP/1.1-compliant reverse proxy that forwards chunked requests verbatim or fails to strip trailers. The attacker crafts a request using Transfer-Encoding: chunked and specifies a persistent connection (Connection: keep-alive). Inside the HTTP request body, the attacker ends the chunked payload with 0\r\n and immediately appends a smuggled HTTP request starting in the trailer region.

The front-end proxy processes the incoming request. Since the proxy sees a single valid chunked POST request, it forwards the complete TCP payload to the Sanic backend. Sanic parses the first request, processes the chunks, and upon encountering the 0\r\n chunk, it deletes up to the hardcoded pos limit, considering the body fully read. It routes the first request to the application handler and returns a response.

The bytes after 0\r\n (representing the smuggled request) remain in Sanic's connection read buffer. Because Connection: keep-alive is enabled, Sanic returns to its read loop, detects bytes in the connection buffer, and parses them as a new incoming request. This smuggled request is processed directly by Sanic, bypassing any authentication checks or access controls configured at the proxy layer.

Impact Assessment

The concrete security impact of CVE-2026-85078 depends on the routing architecture and access controls configured on the front-end proxy. By smuggling an arbitrary request, an attacker can access administrative endpoints restricted at the proxy tier, bypass authentication controls, or retrieve sensitive metadata. If the proxy buffers and caches responses, the attacker can also perform web cache poisoning, associating a malicious response with a legitimate static asset.

The CVSS v3.1 base score is 6.5, with low impact on integrity and availability from a standalone perspective. However, when integrated into a complex infrastructure, the impact can escalate to unauthorized execution of administrative actions. The attack complexity is low, and no specialized privileges or user interactions are required.

Currently, the exploit status of this vulnerability is proof-of-concept. While no active exploitation in the wild has been cataloged by CISA, the simplicity of request-smuggling exploitation makes immediate mitigation crucial for internet-facing installations.

Mitigation & Remediation

The primary remediation is to upgrade Sanic to a non-vulnerable version. If operating on the v24 LTS branch, upgrade to v24.12.1 or later. If operating on the v25 LTS branch, upgrade to v25.12.1 or later. These versions terminate keep-alive connections when unexpected trailers are detected.

If immediate upgrading is not possible, the threat can be mitigated at the front-end proxy tier. Ensure the reverse proxy is configured to strictly normalize incoming requests and reject chunked headers with trailers, or force the proxy to buffer the request body completely. For instance, in Nginx, maintain the default request body buffering configuration (proxy_request_buffering on) and avoid passing raw chunked streams unless necessary.

Additionally, implementing strict protocol compliance checks on intermediate load balancers can drop any request containing invalid or unexpected headers. Security teams should also monitor application logs for unexpected 405 Method Not Allowed or 400 Bad Request errors, which may indicate failed or experimental smuggling attempts.

Official Patches

sanic-orgPull request applying HTTP/1.1 chunked validation patch to the v25 branch.
sanic-orgPull request applying HTTP/1.1 chunked validation patch to the v24 branch.

Fix Analysis (3)

Technical Appendix

CVSS Score
6.5/ 10
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L

Affected Systems

Sanic < 24.12.1Sanic 25.12.0

Affected Versions Detail

Product
Affected Versions
Fixed Version
sanic
sanic-org
< 24.12.124.12.1
sanic
sanic-org
== 25.12.025.12.1
AttributeDetail
CWE IDCWE-444
Attack VectorNetwork (AV:N)
CVSS v3.1 Score6.5
Exploit StatusPoC (Proof-of-Concept)
KEV StatusNot Listed
RemediationUpgrade to Sanic 24.12.1 / 25.12.1

MITRE ATT&CK Mapping

T1190Exploit Public-Facing Application
Initial Access
T1036Masquerading
Defense Evasion
T1572Protocol Tunneling
Defense Evasion
CWE-444
Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling')

The product does not properly parse or validate various fields in an HTTP request, which can allow an attacker to smuggle requests to a backend server.

Known Exploits & Detection

GitHub Security AdvisoryAdvisory details for GHSA-wmj6-g64g-j7q5 containing conceptual parser unit tests.

Vulnerability Timeline

Vulnerability discovered and patched in the Sanic main repository branch.
2026-05-31
CVE-2026-85078 officially published alongside advisory release.
2026-09-17

References & Sources

  • [1]GitHub Security Advisory GHSA-wmj6-g64g-j7q5
  • [2]CVE Registry Entry for CVE-2026-85078

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•about 3 hours ago•CVE-2026-9639
6.5

CVE-2026-9639: Authenticated Denial of Service via Nil-Pointer Dereference in Canonical LXD Custom Volume Backup Import

CVE-2026-9639 (GHSA-j93m-3j9p-m5m8) is a null pointer dereference vulnerability in Canonical LXD affecting versions 5.0.0 through 5.21.4 and 6.0 through 6.8. The flaw resides in the (*lxdBackend).CreateCustomVolumeFromBackup method within lxd/storage/backend_lxd.go. An authenticated attacker with the can_create_storage_volumes permission can upload a crafted custom volume backup tarball that omits the expires_at field on a snapshot entry, triggering an unhandled SIGSEGV panic and terminating the LXD daemon.

Amit Schendel
Amit Schendel
5 views•9 min read
•about 4 hours ago•CVE-2026-33050
8.8

CVE-2026-33050: OS Command Injection in GeoNode Vector Upload Handler

An operating system command injection vulnerability (CWE-78) exists in GeoNode versions prior to 5.1.0. The vulnerability occurs in the vector upload processing pipeline when handling user-supplied geospatial files. By supplying a crafted layer name containing shell metacharacters, an authenticated attacker with basic data upload privileges can execute arbitrary commands on the underlying server or container hosting the GeoNode application and Celery worker processes.

Alon Barad
Alon Barad
5 views•9 min read
•about 5 hours ago•CVE-2026-46429
5.5

CVE-2026-46429: Unrestricted File Upload and Validation Bypass in GeoNode

GeoNode versions prior to 5.0.3 contain an unrestricted file upload vulnerability (CWE-434) within the document and dataset ingestion architecture. Authenticated low-privileged users can bypass upload validation via direct REST API interactions, file extension masquerading, metadata mutation via PATCH requests, or malicious archive submissions. This allows attackers to store and serve dangerous file types, alter on-disk file references, or trigger path traversal and resource exhaustion during archive extraction.

Amit Schendel
Amit Schendel
6 views•10 min read
•about 6 hours ago•CVE-2026-55649
6.3

CVE-2026-55649: Stored Cross-Site Scripting in GeoNode Document Metadata Abstract Field

CVE-2026-55649 is a stored Cross-Site Scripting (XSS) vulnerability in GeoNode versions prior to 5.0.3. The flaw exists because document abstract metadata fields are ingested via the metadata management pipeline and stored in the backend database without HTML sanitization or input neutralization. An authenticated attacker with privileges to create or edit document metadata can inject arbitrary HTML and JavaScript payloads into these fields. When another user, such as an administrator, views the affected document page or catalog listing, the unencoded payload is rendered into the Document Object Model (DOM) and executes within the victim's browser session.

Amit Schendel
Amit Schendel
7 views•9 min read
•about 7 hours ago•GHSA-QX75-2P3R-PWM5
7.7

CVE-2026-55622: Cross-Project Instance Copy Authorization Bypass in Canonical LXD and LXC Incus

CVE-2026-55622 (GHSA-qx75-2p3r-pwm5) is an improper access control vulnerability (CWE-284) in Canonical LXD and LXC Incus (tracked as GHSA-c9f5-j9c3-mhrg). In multi-tenant deployments utilizing project-based isolation, the REST API handler for instance creation via POST /1.0/instances verifies that the authenticated user has authorization in the destination project specified by the query parameter, but fails to verify whether the user holds read or view permissions for the source instance when executing a copy operation across projects. Consequently, an authenticated client restricted to a single project can clone instances or snapshots from unauthorized projects into their own project, resulting in complete disclosure of the target instance filesystem and embedded credentials.

Amit Schendel
Amit Schendel
6 views•11 min read
•about 8 hours ago•GHSA-7MR3-28H5-M5VX
7.7

GHSA-7mr3-28h5-m5vx: Authorization Bypass and Cross-Project Volume Copy in Canonical LXD

An authorization bypass vulnerability in Canonical LXD (tracked as GHSA-7mr3-28h5-m5vx and CVE-2026-55621, and as GHSA-64f3-v33m-w89f in Linux Containers Incus) allows an authenticated user with restricted project access to copy custom storage volumes and volume snapshots from unauthorized projects. The flaw resides in the storagePoolVolumesPost REST API handler, which verifies permissions on the destination project but fails to check whether the caller holds view entitlements on the source project or volume specified in the request body.

Alon Barad
Alon Barad
5 views•10 min read