CVE-2026-142251
Description
A flaw was found in Sanic. This issue occurs due to improper handling of HTTP framing headers that contain whitespace before the colon. A remote unauthenticated attacker can exploit this vulnerability by sending specially crafted HTTP headers through a front-end proxy, causing front-end and back-end servers to desynchronize request parsing. As a result, the attacker can perform HTTP request smuggling (a technique where hidden requests are processed by a server) to bypass security controls or access other clients' connections.
Statement
This flaw is rated as Moderate severity because successful exploitation relies on a specific reverse-proxy architecture where front-end proxies forward malformed HTTP framing headers containing whitespace prior to the header colon. When Sanic serves as an upstream application backend behind such proxies, unauthenticated remote attackers could exploit parser inconsistencies to bypass front-end security controls or access other client streams. Systems where front-end proxies strip invalid header formatting or do not forward malformed headers are not susceptible to this desynchronization.
Mitigation
To reduce exposure to HTTP request smuggling, configure any front-end reverse proxy or web application firewall (WAF) situated in front of Sanic to enforce strict HTTP header validation and strip or reject requests with whitespace preceding header colons (such as in Content-Length or Transfer-Encoding headers). Additionally, restrict network exposure of the Sanic backend using firewall rules or binding options so it only accepts connections from trusted, strict-parsing proxies.
Note: Reconfiguring or reloading front-end proxy services or firewall rules may cause brief service interruptions. Ensure configuration changes are validated before reloading services in production environments.
Common Vulnerability Scoring System (CVSS) Score Details
Info alert:Important note
CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).
The following CVSS metrics and score provided are preliminary and subject to review.
CVSS v3 Score Breakdown
| Red Hat | NVD | cve.org | |
|---|---|---|---|
| Base Score | 4.8 | N/A | 4.8 |
| Attack Vector | Network | N/A | Network |
| Attack Complexity | High | N/A | High |
| Privileges Required | None | N/A | None |
| User Interaction | None | N/A | None |
| Scope | Unchanged | N/A | Unchanged |
| Confidentiality | Low | N/A | Low |
| Integrity Impact | Low | N/A | Low |
| Availability Impact | None | N/A | None |
Vector
Red Hat: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
cve.org: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
Understanding the Weakness (CWE)
Integrity,Non-Repudiation,Access Control
Technical Impact: Unexpected State; Hide Activities; Bypass Protection Mechanism
An attacker could create HTTP messages to exploit a number of weaknesses including 1) the message can trick the web server to associate a URL with another URL's webpage and caching the contents of the webpage (web cache poisoning attack), 2) the message can be structured to bypass the firewall protection mechanisms and gain unauthorized access to a web application, and 3) the message can invoke a script or a page that returns client credentials (similar to a Cross Site Scripting attack).
Frequently Asked Questions
Not sure what something means? Check out our Security Glossary.
Want to get errata notifications? Sign up here.