# CVE-2026-71416: Headroom vulnerable to Cross-Site WebSocket Hijacking (CSWSH)

- Severity: High 8.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 7% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-09-11T13:34:38.794Z
- Modified: 2026-10-15T14:55:37.821Z
- Also known as: GHSA-h46j-26q3-rggf, PYSEC-2026-4220
- Weaknesses: CWE-287, CWE-1385
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- headroomlabs-ai headroom: < 0.35.0
- headroom-ai (PyPI): before 0.35.0

## Every score

- GitHub_M: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://github.com/headroomlabs-ai/headroom/security/advisories/GHSA-h46j-26q3-rggf> (exploit, web)
- <https://github.com/headroomlabs-ai/headroom/releases/tag/v0.35.0> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-71416> (advisory)
- <https://github.com/headroomlabs-ai/headroom/pull/1481> (web)
- <https://github.com/headroomlabs-ai/headroom/commit/c632023cc1ec61d15f8f8e86efe3b54d51604a64> (web)
- <https://github.com/headroomlabs-ai/headroom> (package)
- <https://pypi.org/project/headroom-ai> (package)
- <https://github.com/advisories/GHSA-h46j-26q3-rggf> (advisory)

## Sources

- CVE List: [CVE-2026-71416](https://www.cve.org/CVERecord?id=CVE-2026-71416), CVE Terms of Use, modified 2026-09-11
- GitHub Advisory Database: [GHSA-h46j-26q3-rggf](https://github.com/advisories/GHSA-h46j-26q3-rggf), CC-BY-4.0, modified 2026-10-15
- NVD: [CVE-2026-71416](https://nvd.nist.gov/vuln/detail/CVE-2026-71416), Public domain, modified 2026-09-30
- PyPA Advisory Database: [PYSEC-2026-4220](https://osv.dev/vulnerability/PYSEC-2026-4220), CC-BY-4.0, modified 2026-10-15

---

Page: https://cve.day/CVE-2026-71416 · Whole record: https://cve.day/CVE-2026-71416.json · Rebuilt by cve.day 2026-11-25T22:59:37.954Z
