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·6 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

•5 minutes ago•CVE-2026-72819
8.8

CVE-2026-72819: Remote Code Execution in Grav CMS via Dynamic Callable Validation Bypass in Blueprint

CVE-2026-72819 is a high-severity Remote Code Execution (RCE) vulnerability in Grav CMS before version 2.0.13. The vulnerability lies in the validation of dynamic data providers (callbacks) within the Flex Objects plugin settings and blueprints, allowing administrative users to bypass validation checks via array-notation callables. This validation failure enables administrative users to execute arbitrary PHP classes and methods, including the GPM Installer unZip routine, leading to full remote code execution on the server.

Amit Schendel
Amit Schendel
0 views•9 min read
•about 1 hour ago•CVE-2026-75523
5.9

CVE-2026-75523: Exposure of Sensitive Query Parameter Secrets in Steeltoe Actuator Endpoints

Steeltoe, a popular framework for building cloud-native .NET applications, contains a critical data-exposure flaw in its HttpExchanges actuator endpoint before version 4.3.0. When explicitly configured to include query strings, the system records and stores sensitive values (such as OAuth tokens and credentials) in memory and application debug logs without sanitization, exposing them to unauthorized network actors.

Alon Barad
Alon Barad
2 views•5 min read
•about 2 hours ago•CVE-2026-86039
8.2

CVE-2026-86039: Signature Verification Bypass and Address Book Poisoning in @libp2p/peer-store

A logic verification vulnerability in `@libp2p/peer-store` (part of the `js-libp2p` ecosystem) allows unauthenticated remote attackers to bypass identity verification and poison a victim node's peer store database with arbitrary network multiaddresses. This occurs because `consumePeerRecord()` fails to ensure that the signature's identity matches the inner record payload's identity.

Alon Barad
Alon Barad
3 views•9 min read
•about 3 hours ago•CVE-2026-75831
7.6

CVE-2026-75831: Stored Cross-Site Scripting in Grav CMS Audio/Video Media Rendering

Improper neutralization of input during web page generation in Grav CMS allows authenticated users with page modification privileges to execute stored Cross-Site Scripting (XSS) attacks. The flaw exists in AudioMediaTrait and VideoMediaTrait where media source URLs are concatenated directly into HTML templates without proper escaping.

Amit Schendel
Amit Schendel
6 views•6 min read
•about 4 hours ago•CVE-2026-86071
3.7

CVE-2026-86071: Path Traversal Vulnerability in Junrar Archive Library

A directory traversal vulnerability exists in the Junrar archive extraction library prior to version 7.6.1. When extracting crafted RAR archives, the library allows unauthorized directory creation outside the designated destination root due to improper path normalization during directory creation.

Alon Barad
Alon Barad
8 views•8 min read
•about 5 hours ago•CVE-2026-63506
8.8

CVE-2026-63506: Broken Access Control in TinaCMS isAuthorized Authentication Handler

CVE-2026-63506 is a critical authorization bypass vulnerability in TinaCMS self-hosted backend authentication packages (@tinacms/auth and next-tinacms-azure). By exploiting a request-controlled clientID parameter, unauthenticated attackers with an active token for any developer-registered TinaCloud application can bypass tenant boundaries and execute unauthorized administrative operations, including full GraphQL database interactions and arbitrary media management.

Amit Schendel
Amit Schendel
6 views•7 min read