CVE-2026-142251: Sanic through 25.12.1 HTTP Request Smuggling via Whitespace in Header Names
Sanic through 25.12.1 contains an HTTP request smuggling vulnerability in sanic/http/http1.py that fails to reject whitespace before the colon in Content-Length or Transfer-Encoding headers. Remote unauthenticated attackers can send padded framing headers through a front-end proxy to desynchronise parsing and smuggle requests past front-end controls or into other clients' connections.
Affected Software
Event History
Frequently Asked Questions
Which deployments are most exposed?
Sanic deployments through 25.12.1 that sit behind a front-end proxy are exposed when the proxy permits padded Content-Length or Transfer-Encoding headers to reach Sanic. This can allow parsing differences between the proxy and backend to desynchronise requests.
What access does an attacker need?
An attacker can exploit this remotely without authentication or user interaction. Exploitation requires sending specially padded HTTP framing headers through a front-end proxy.