CVE-2026-77775: Headroom Proxy Sends Upstream Requests to a Client-Supplied Base URL Without Address Validation

Published Aug 21, 2026
·
Updated

Headroom's LLM proxy lets a client choose the upstream destination with the x-headroom-base-url request header. resolveopenaiupstreambase in headroom/proxy/handlers/openai.py accepts the header value, requires only that it parse with an http or https scheme and a hostname, and returns it for use as the upstream base; selectpassthroughbaseurl in headroom/providers/proxyroutes.py reads the same header for the passthrough routes. No check rejects loopback, link-local, or RFC 1918 destinations, and because the component is a proxy the upstream response is returned to the caller, so the request reaches internal services and cloud metadata addresses and their responses are disclosed. The Authorization header accompanying the request is forwarded unchanged to the caller-designated host. The pip console script binds 127.0.0.1 by default, but the reference docker-compose.yml ships --host 0.0.0.0 with published ports and no required HEADROOMPROXYTOKEN, which the server itself warns about at startup, so a deployment following the shipped compose exposes the affected data-plane routes to the network without authentication.

Affected Software

1 affected component
Headroom headroom

Event History

Aug 21, 2026
CVE Published
via MITRE·11:22 AM
Data Sourced
via MITRE·11:22 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are most exposed?

Deployments following the reference docker-compose.yml are exposed to the network because it binds the proxy to 0.0.0.0, publishes ports, and does not require HEADROOM_PROXY_TOKEN. The pip console script instead binds to 127.0.0.1 by default.

2

What does an attacker need to exploit this?

An attacker needs network access to an affected proxy route and must be able to supply the x-headroom-base-url header. No authentication or user interaction is required in the described compose deployment.

3

What can an attacker reach and disclose?

The attacker can direct upstream requests to HTTP or HTTPS hosts with a hostname, including loopback, link-local, RFC 1918, and cloud metadata addresses. The upstream response is returned to the caller, and the request Authorization header is forwarded unchanged to the attacker-selected host.

4

What can be done if patching is not immediately possible?

Do not expose the proxy data-plane routes to untrusted networks. Bind the service to localhost where possible, require HEADROOM_PROXY_TOKEN, and restrict network access so untrusted clients cannot send x-headroom-base-url.

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