CVE-2026-71416

Headroom vulnerable to Cross-Site WebSocket Hijacking (CSWSH)

State
Published
Severity
8.8 High
Published
Sep 11, 2026
Updated
Sep 11, 2026
Reserved
Aug 6, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.18.8 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HGitHub_M

Weaknesses

  • CWE-287 Improper Authentication
  • CWE-1385 Missing Origin Validation in WebSockets

Affected Products

ProductVersions
headroomheadroomlabs-ai
  • < 0.35.0Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.