# CVE-2026-145494: Hypercorn through 0.18.0 WSGI Header Spoofing via Underscore Header Names

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

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

Medium 4.8 · Reported · No fix listed · CWE-290 · PyPI

# Hypercorn through 0.18.0 WSGI Header Spoofing via Underscore Header Names

CVE-2026-145494 · published 2026-12-05

In plain words: this type of bug lets someone get past the login or identity check (authentication bypass). No fixed release is listed yet.

## Summary

CVE-2026-145494 affects Hypercorn (PyPI) <= 0.18.0: WSGI Header Spoofing via Underscore Header Names (CWE-290). No fixed release is listed. CVSS 3.1 base score 4.8 (Medium), assigned by VulnCheck. Published 2026-12-05 by VulnCheck. Credit: Zachariah Mithani (AploSec).

Hypercorn through 0.18.0 contains a header spoofing vulnerability in the WSGI wrapper _build_environ that allows remote attackers to spoof trusted headers by conflating underscores and hyphens in environ keys. Attackers can send headers such as x_remote_user through reverse proxies that only strip hyphenated forms, causing applications to read attacker values as trusted headers to spoof authenticated users.

## 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/hypercorn-through-0.18.0-wsgi-header-spoofing-via-underscore-header-names](https://www.vulncheck.com/advisories/hypercorn-through-0.18.0-wsgi-header-spoofing-via-underscore-header-names)

- [Vulnerable codehttps://github.com/pgjones/hypercorn/blob/0.18.0/src/hypercorn/app_wrappers.py#L150-L167](https://github.com/pgjones/hypercorn/blob/0.18.0/src/hypercorn/app_wrappers.py#L150-L167)

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

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

**Package:** Hypercorn

**Ecosystem:** PyPI

**Affected:** <= 0.18.0

**Fixed:** None

**Weakness:** CWE-290

**CNA:** VulnCheck

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