{"answers":{"affected":"3 open source packages ship an affected version, including headroom-ai.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-71416 exists.","fix":"Upgrade headroom-ai to 0.35.0 or later.","what":"CVE-2026-71416 is a high-severity vulnerability in headroomlabs-ai headroom, published on 11 Sep 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-71416 and fix it if it is affected.\n\nWhat it is: CVE-2026-71416 is a high-severity vulnerability in headroomlabs-ai headroom, published on 11 Sep 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-71416 exists.\n\nAffected packages and fixed versions:\n- headroom-ai (PyPI): affected all versions; fixed in 0.35.0\n- headroom-ai (PyPI): affected all versions; fixed in 0.35.0\n- headroom-ai (PyPI): affected all versions; fixed in 0.35.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-71416/ (Markdown: https://insights.sbomify.com/CVE-2026-71416/index.md)","id":"CVE-2026-71416","markdown":"https://insights.sbomify.com/CVE-2026-71416/index.md","name":"CVE-2026-71416","record":{"aliases":["GHSA-h46j-26q3-rggf","PYSEC-2026-4220"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["account_takeover","data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"LLM data compression library","requires_auth":"none","summary":"Attackers can hijack WebSocket sessions to perform unauthorized LLM requests and access API keys due to missing Origin header validation.","user_interaction":"required","vuln_class":"csrf"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":8.8,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-287","name":"Improper Authentication"},{"id":"CWE-1385","name":"Missing Origin Validation in WebSockets"}],"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.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Headroom vulnerable to Cross-Site WebSocket Hijacking (CSWSH)","id":"CVE-2026-71416","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"csrf","year":"2026"},"n_packages":3,"n_references":2,"next":{"headline":"Lemur: Any user can revoke arbitrary certificates at the CA by uploading a duplicate record and revoking it","id":"CVE-2026-71417"},"packages":[{"ecosystem":"PyPI","fixed":["0.35.0"],"introduced":["0"],"last_affected":[],"package":"headroom-ai","purl":null,"source":"GHSA-h46j-26q3-rggf"},{"ecosystem":"PyPI","fixed":["0.35.0"],"introduced":["0"],"last_affected":[],"package":"headroom-ai","purl":"pkg:pypi/headroom-ai","source":"GHSA-h46j-26q3-rggf"},{"ecosystem":"PyPI","fixed":["0.35.0"],"introduced":["0"],"last_affected":[],"package":"headroom-ai","purl":"pkg:pypi/headroom-ai","source":"PYSEC-2026-4220"}],"prev":{"headline":"Kirby: File upload permissions are not checked during processing of chunk data","id":"CVE-2026-71415"},"products":["headroom"],"published":"2026-09-11","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-09-11","vendors":["headroomlabs-ai"]},"summary":"Attackers can hijack WebSocket sessions to perform unauthorized LLM requests and access API keys due to missing Origin header validation.","url":"https://insights.sbomify.com/CVE-2026-71416/"}