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

Published Dec 5, 2026
·
Updated

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

Affected Software

1 affected component
pypi/hypercorn<=0.18.0

Event History

Dec 5, 2026
CVE Published
via MITRE·02:00 AM
Data Sourced
via MITRE·02:00 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·03:20 AM
DescriptionSeverityWeakness
Event
via NVD·03:20 AM

Frequently Asked Questions

1

Which deployments are realistically exposed?

WSGI applications served by Hypercorn through 0.18.0 are exposed when they rely on reverse proxies to remove or control trusted request headers. The issue is particularly relevant when an application treats headers such as a remote-user header as authentication or identity input.

2

What does an attacker need to exploit this issue?

An attacker needs network access to send a crafted HTTP request; no credentials or user interaction are required. Exploitation depends on a reverse proxy stripping the hyphenated form of a trusted header while allowing an underscore-based form, such as x_remote_user.

3

How can I determine whether my deployment is affected?

Check whether Hypercorn is at version 0.18.0 or earlier and whether it serves a WSGI application. Then review proxy header-filtering rules and application authentication logic for headers that are trusted after proxy handling, and test whether underscore variants can reach the application as the corresponding WSGI environ key.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203