Intel

AIKIDO-2026-138571

headroom-ai is vulnerable to Cross-Site WebSocket Hijacking (CSWSH)

Cross-Site WebSocket Hijacking (CSWSH)CVE-2026-71416 Published 2 days ago

88

High Risk

This Affects:

PYTHONheadroom-ai
0.5.16 - 0.27.0
Fixed in 0.28.0
Are you affected? Scan for Free

TL;DR

The headroom-ai proxy exposes a WebSocket server at /v1/responses that does not validate the Origin header during the handshake. Web content loaded in the browser of a user running the local proxy can open a cross-origin WebSocket to it, and the server accepts the connection and automatically injects the configured OPENAI_API_KEY as the upstream credential. Untrusted pages can therefore issue authenticated LLM API requests through the proxy without supplying any credentials, enabling data exfiltration, quota abuse, and tool-driven actions. The fix validates the request Origin on the WebSocket handshake and rejects cross-origin connections.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you run the Headroom proxy so its /v1/responses WebSocket endpoint is reachable from a web browser.

Background info

headroom-ai is vulnerable to Cross-Site WebSocket Hijacking (CSWSH) in versions 0.5.16 - 0.27.0.

How to fix this

Upgrade the headroom-ai library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform