Headroom
Headroom vulnerable to Cross-Site WebSocket Hijacking (CSWSH)
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- < 0.35.0
Fixed in 0.35.0
Mitigation
Upgrade headroom to 0.35.0 or later.
References
- Vendor advisory github.com/headroomlabs-ai/headroom/security/a…
- Release notes github.com/headroomlabs-ai/headroom/releases/t…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.