CVE-2026-71416

Headroom vulnerable to Cross-Site WebSocket Hijacking (CSWSH)

Published Sep 11, 2026 CVSS 3.1 · 8.8 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

Headroom compresses data before it reaches a large language model. Prior to version 0.35.0, the WebSocket server does not validate the Origin header of incoming client connections, which allows a malicious WebSocket client to forward requests to the upstream server without authentication. The result is that an attacker can issue arbitrary LLM requests using the victim’s stored OpenAI API key, potentially incurring flaw reflects a lack of origin validation and improper authentication (CWE-1385, CWE-287).

Affected Systems

The vulnerability affects the Headroom product from Headroom Labs, specifically any deployment running a version prior to 0.35.0. Victim systems that expose the Headroom WebSocket endpoint to browsers (including headless browsers) and that have the OPENAI_API_KEY environment variable available are at risk.

Risk and Exploitability

The CVSS score of 8.8 indicates a high severity. EPSS information is not available, so the precise exploitation likelihood cannot be quantified, but the vulnerability is publicly documented and advisory links show that the flaw has been fixed in 0.35.0. The attack vector requires a malicious WebSocket client executed in a browser that can reach the Headroom proxy; the attacker need not have elevated privileges on the server but requires network access to the WebSocket endpoint. The repository advisory notes that this can be exploited by headless browsers such as Lightpanda. Because the flaw allows unauthenticated requests to the LLM, the impact is significant for confidentiality, integrity, and potential financial loss if the API key is compromised.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update Headroom to version 0.35.0 or later to enforce Origin header validation on the WebSocket server
  • Configure the network so that the Headroom WebSocket endpoint is not publicly exposed and restrict access to trusted clients
  • Ensure that the OPENAI_API_KEY environment variable is not accessible to untrusted processes and rotate the key regularly

Generated by OpenCVE AI on September 11, 2026 at 15:35 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-h46j-26q3-rggf Headroom vulnerable to Cross-Site WebSocket Hijacking (CSWSH)
History
Type Values Removed Values Added
First Time appeared Headroom Labs
Headroom Labs headroom
Vendors & Products Headroom Labs
Headroom Labs headroom
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title Headroom vulnerable to Cross-Site WebSocket Hijacking (CSWSH)
Weaknesses CWE-1385
CWE-287
References
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}

Weaknesses
  • CWE-1385

    Missing Origin Validation in WebSockets

  • CWE-287

    Improper Authentication

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Sep 11, 2026, 2:33 PM
Reserved
Aug 6, 2026, 4:28 PM
Status
Deferred
Published
Sep 11, 2026, 2:17 PM
Modified
Sep 30, 2026, 7:57 PM