Vulnerability · Published Sep 17, 2026 · Assigned by GitHub_M
CVE-2026-85078sanic chunked trailer request smuggling allows hidden second request execution
Medium 6.5
In plain English
A medium-severity security flaw in sanic from sanic-org. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 44% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | sanic | 24.12.1 | GHSA-wmj6-g64g-j7q5 |
| PyPI | sanic | 25.12.1 | GHSA-wmj6-g64g-j7q5 |
| PyPI | sanic | 24.12.1, 25.12.1 | PYSEC-2026-4162 |
Affected products (as reported)
Weakness: CWE-444 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
References
- https://github.com/sanic-org/sanic/security/advisories/GHSA-wmj6-g64g-j7q5 x_refsource_CONFIRM
- https://github.com/sanic-org/sanic/pull/3164 x_refsource_MISC
- https://github.com/sanic-org/sanic/pull/3165 x_refsource_MISC
- https://github.com/sanic-org/sanic/commit/47349d689d65fa1907977ac100e867894aeafb22 x_refsource_MISC
- https://github.com/sanic-org/sanic/commit/69a10d3b06babaa9e5f6d1af577364e9e53b6dea x_refsource_MISC
- https://github.com/sanic-org/sanic/commit/a332796506c7c588b6930b02a8886e43eb8ea8d6 x_refsource_MISC
- https://github.com/sanic-org/sanic/releases/tag/v24.12.1 x_refsource_MISC
- https://github.com/sanic-org/sanic/releases/tag/v25.12.1 x_refsource_MISC