# CVE-2026-142251: Sanic through 25.12.1 HTTP Request Smuggling via Whitespace in Header Names

Source: https://aplosec.si/cve/CVE-2026-142251/

[AploSec](https://aplosec.si/) / [Disclosures](https://aplosec.si/disclosures/) / CVE-2026-142251

Medium 6.3 · Reported · No fix listed · CWE-444 · PyPI

# Sanic through 25.12.1 HTTP Request Smuggling via Whitespace in Header Names

CVE-2026-142251 · published 2026-12-02

In plain words: this type of bug lets two parts of a system read the same input differently, so a check can be slipped past (parsing mismatch). No fixed release is listed yet.

## Summary

CVE-2026-142251 affects sanic (PyPI) <= 25.12.1: HTTP Request Smuggling via Whitespace in Header Names (CWE-444). No fixed release is listed. CVSS 4.0 base score 6.3 (Medium), assigned by VulnCheck. Published 2026-12-02 by VulnCheck. Credit: Zachariah Mithani (AploSec).

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.

## Evidence

Reported to the maintainer. The public advisory and references below describe the evidence and preconditions; reporting status alone does not establish independent reproduction.

## Remediation

No fixed release is listed in the advisory. Check the references for upstream status.

## References

- [VulnCheck advisoryhttps://www.vulncheck.com/advisories/sanic-through-25.12.1-http-request-smuggling-via-whitespace-in-header-names](https://www.vulncheck.com/advisories/sanic-through-25.12.1-http-request-smuggling-via-whitespace-in-header-names)

- [Vulnerable codehttps://github.com/sanic-org/sanic/blob/v25.12.1/sanic/http/http1.py#L222-L234](https://github.com/sanic-org/sanic/blob/v25.12.1/sanic/http/http1.py#L222-L234)

- [CVE recordhttps://www.cve.org/CVERecord?id=CVE-2026-142251](https://www.cve.org/CVERecord?id=CVE-2026-142251)

**Severity:** Medium 6.3 CVSS 4.0, scored by VulnCheck in the [CVE record](https://www.cve.org/CVERecord?id=CVE-2026-142251)

**Package:** sanic

**Ecosystem:** PyPI

**Affected:** <= 25.12.1

**Fixed:** None

**Weakness:** CWE-444

**CNA:** VulnCheck

**Credit:** Zachariah Mithani (AploSec) finder
