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 HatNVDcve.org
Base Score4.8N/A4.8
Attack VectorNetworkN/ANetwork
Attack ComplexityHighN/AHigh
Privileges RequiredNoneN/ANone
User InteractionNoneN/ANone
ScopeUnchangedN/AUnchanged
ConfidentialityLowN/ALow
Integrity ImpactLowN/ALow
Availability ImpactNoneN/ANone

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

Want to get errata notifications? Sign up here.