CVE-2026-71416: Headroom vulnerable to Cross-Site WebSocket Hijacking (CSWSH)

Published Sep 11, 2026
·
Updated

Headroom compresses data before the data reaches a large language model. Prior to version 0.35.0, the Headroom WebSocket server does not validate the Origin header of incoming client WebSocket requests before forwarding the request to the upstream server, allowing malicious WebSocket clients to perform arbitrary LLM requests without authentication. This can be exploited by a malicious WebSocket client executed in a traditional or headless browser such as lightpanda, if the browser has access to the Headroom proxy and the OpenAI API key is stored in the OPENAIAPIKEY environment variable. Version 0.35.0 fixes the issue.

Affected Software

1 affected component
Headroom Headroom WebSocket server<0.35.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Headroom to a version that resolves this vulnerability.

    Fixed in 0.35.0

Event History

Sep 11, 2026
CVE Published
via MITRE·01:34 PM
Data Sourced
via MITRE·01:34 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are exposed to exploitation?

Deployments running a Headroom version before 0.35.0 are exposed when the WebSocket server is reachable by a browser and an OpenAI API key is present in the OPENAI_API_KEY environment variable.

2

What does an attacker need to exploit this issue?

An attacker needs to cause a malicious WebSocket client to run in a traditional or headless browser that has network access to the Headroom proxy. No authentication is required for the resulting arbitrary LLM requests.

3

Is there a fixed version?

Yes. Version 0.35.0 fixes the missing Origin-header validation.

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