CVE-2026-71416
Received Received - Intake

WebSocket Origin Header Validation Bypass in Headroom

Vulnerability report for CVE-2026-71416, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-09-11

Last updated on: 2026-09-11

Assigner: GitHub, Inc.

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-09-11
Last Modified
2026-09-11
Generated
2026-09-11
AI Q&A
2026-09-11
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 3 associated CPEs
Vendor Product Version / Range
headroom headroom to 0.35.0 (inc)
headroomlabs-ai headroom to 0.35.0 (exc)
headroomlabs-ai headroom 0.35.0

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-1385 The product uses a WebSocket, but it does not properly verify that the source of data or communication is valid.
CWE-287 When an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is a Cross-Site WebSocket Hijacking (CSWSH) issue in the Headroom WebSocket server. It occurs because the server does not validate the Origin header of incoming WebSocket requests before forwarding them to the upstream OpenAI API. This allows malicious WebSocket clients to send arbitrary requests without authentication.

Detection Guidance

Check Headroom server logs for unauthorized WebSocket connections without valid Origin headers. Inspect network traffic for WebSocket handshakes with missing or spoofed Origin fields. Use tools like Wireshark or tcpdump to monitor WebSocket connections to the Headroom proxy.

Impact Analysis

An attacker could exploit this to perform unauthorized LLM requests, send arbitrary instructions or prompts, potentially leading to remote code execution, information disclosure, or quota exhaustion. This requires the attacker to execute a malicious WebSocket client in a browser with access to the Headroom proxy and an OpenAI API key stored in the environment.

Compliance Impact

This vulnerability could lead to unauthorized access to sensitive data, information disclosure, or service disruption, which may violate compliance requirements under GDPR (data protection) and HIPAA (healthcare data privacy). Unauthorized LLM requests could expose personal or protected health information.

Mitigation Strategies

Upgrade Headroom to version 0.35.0 or later immediately. Disable WebSocket proxy access if not required. Ensure OpenAI API keys are not stored in environment variables accessible to the Headroom proxy. Restrict network access to the Headroom server to trusted sources only.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-71416. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart