Skip to content
OpenAdvisories
High · 8.8 CVE-2026-71416 EUVD-2026-76105GHSA-h46j-26q3-rggfPYSEC-2026-4220

Headroom vulnerable to Cross-Site WebSocket Hijacking (CSWSH)

Published Sep 11, 2026 · Updated Sep 11, 2026 · Assigned by GitHub_M

Description

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 `OPENAI_API_KEY` environment variable. Version 0.35.0 fixes the issue.

Affected products

VendorProductAffectedFixed
headroomlabs-ai headroom < 0.35.0 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI headroom-ai < 0.35.0 0.35.0 GHSA-h46j-26q3-rggf

References