Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. sanic
  4. ›
  5. CVE-2026-85078

CVE-2026-85078: sanic chunked trailer request smuggling allows hidden second request execution

September 17, 2026

Sanic’s HTTP/1.1 chunked-body handling does not fully consume the trailer-part after the terminating 0\r\n chunk. Because of that, attacker-controlled bytes left in the connection buffer after the first chunked request can be interpreted as the start of a new HTTP request on the same keep-alive connection. In the attached verified proof, a single outer POST / request that correctly returns 405 Method Not Allowed is followed, within the same TCP send, by a hidden second request smuggled through the chunked trailer area. Sanic parses and executes that second request as a real independent request.

The issue is a request-boundary integrity failure in Sanic’s core HTTP/1.1 parser. The verified impact is not speculative. The attached proof shows that one TCP payload produces two server responses: first the expected 405 for the outer POST /, then a separate 200 OK for a hidden GET /. A second exploit variant changes the hidden request path and receives a real 404 Not Found, proving that the hidden second request is not a hard-coded artifact but an actually routed backend request. A control case with a two-character trailer field name shifts the leftover bytes from GET to :GET, which changes the second response accordingly and confirms that the root cause is incorrect trailer consumption rather than legitimate pipelining.

References

  • github.com/advisories/GHSA-wmj6-g64g-j7q5
  • github.com/sanic-org/sanic/commit/47349d689d65fa1907977ac100e867894aeafb22
  • github.com/sanic-org/sanic/commit/69a10d3b06babaa9e5f6d1af577364e9e53b6dea
  • 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
  • github.com/sanic-org/sanic/security/advisories/GHSA-wmj6-g64g-j7q5
  • nvd.nist.gov/vuln/detail/CVE-2026-85078

Code Behaviors & Features

Detect and mitigate CVE-2026-85078 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 24.12.1, all versions starting from 25.12.0 before 25.12.1

Fixed versions

  • 24.12.1
  • 25.12.1

Solution

Upgrade to versions 24.12.1, 25.12.1 or above.

Impact 6.5 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-444: Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling')

Source file

pypi/sanic/CVE-2026-85078.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 22 Sep 2026 12:21:32 +0000.