sanic is vulnerable to HTTP Request Smuggling
74
CVE Score
High
HTTP Request Smuggling
sanic's HTTP/1.1 server does not fully terminate chunked request bodies and leaves trailer bytes in the connection buffer, where they can be reparsed as a smuggled request on a keep-alive connection. The same release also fails to strip carriage return, line feed, and NUL characters from outgoing response header names and values, including cookie attributes and file download names, allowing response splitting and header injection when applications place untrusted data into headers. URLs longer than 65535 bytes are accepted even though the underlying parser stores URL component offsets as 16-bit integers that silently wrap and truncate the routed path or query string. The fix rejects non-empty chunked trailers and drops the connection, sanitizes response header names and values, and rejects oversized URLs with a 414 error.
Upgrade the sanic library to the patch version.
You are affected if you are using a version that falls within the vulnerable range.
21.3.0 - 25.12.0
Fixed in 25.12.1sanic is vulnerable to HTTP Request Smuggling in versions 21.3.0 - 25.12.0.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.