{"answers":{"affected":"3 open source packages ship an affected version, including ouroboros-ai.","exploited":"There is no known exploitation of CVE-2026-47211 in the wild and no public exploit code.","fix":"Upgrade ouroboros-ai to 0.39.0 or later.","what":"CVE-2026-47211 is a high-severity code injection vulnerability in Q00 ouroboros, published on 3 Aug 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-47211 and fix it if it is affected.\n\nWhat it is: CVE-2026-47211 is a high-severity code injection vulnerability in Q00 ouroboros, published on 3 Aug 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2026-47211 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- ouroboros-ai (PyPI): affected all versions; fixed in 0.39.0\n- ouroboros-ai (PyPI): affected all versions; fixed in 0.39.0\n- ouroboros-ai (PyPI): affected all versions; fixed in 0.39.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-47211/ (Markdown: https://insights.sbomify.com/CVE-2026-47211/index.md)","id":"CVE-2026-47211","markdown":"https://insights.sbomify.com/CVE-2026-47211/index.md","name":"CVE-2026-47211","record":{"aliases":["GHSA-c4m7-2gwp-vw76","PYSEC-2026-2857"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"AI coding agent runtime","requires_auth":"none","summary":"Attackers can execute arbitrary code by placing a malicious .env file in a cloned repository, tricking users into running the tool.","user_interaction":"required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":8.4,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-426","name":"Untrusted Search Path"}],"description":"Ouroboros is a local-first runtime for AI coding agents that records their actions and applies user-defined policies to constrain behavior. In versions prior to 0.39.0, if a user clones a malicious repository and runs Ouroboros commands within that directory, it can lead to arbitrary code execution and potential system takeover. The vulnerability stems from Ouroboros loading the .env file from the current working directory. Execution-affecting environment variables such as OUROBOROS_CLI_PATH, OPENCODE_CLI_PATH, and other backend selectors are accepted directly from this local .env. An attacker can include a malicious script in the repository and point the CLI path variable to it (e.g., OUROBOROS_CLI_PATH=./malicious_script.sh). When the user executes a command like ouroboros init or any command that instantiates the adapter, the malicious script is executed instead of the intended CLI. This issue has been fixed in version 0.39.0.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Ouroboros: Remote Code Execution via Untrusted Project-Directory .env","id":"CVE-2026-47211","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"code_injection","year":"2026"},"n_packages":3,"n_references":3,"next":{"headline":"Symfony: Twilio SMS Notifier allows unauthenticated webhook injection due to missing X-Twilio-Signature verification","id":"CVE-2026-47212"},"packages":[{"ecosystem":"PyPI","fixed":["0.39.0"],"introduced":["0"],"last_affected":[],"package":"ouroboros-ai","purl":null,"source":"GHSA-c4m7-2gwp-vw76"},{"ecosystem":"PyPI","fixed":["0.39.0"],"introduced":["0"],"last_affected":[],"package":"ouroboros-ai","purl":"pkg:pypi/ouroboros-ai","source":"GHSA-c4m7-2gwp-vw76"},{"ecosystem":"PyPI","fixed":["0.39.0"],"introduced":["0"],"last_affected":[],"package":"ouroboros-ai","purl":"pkg:pypi/ouroboros-ai","source":"PYSEC-2026-2857"}],"prev":{"headline":"vm2 sandbox escape via JSPI-backed Promise `.finally()` species bypass","id":"CVE-2026-47210"},"products":["ouroboros"],"published":"2026-08-03","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":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-08-03","vendors":["Q00"]},"summary":"Attackers can execute arbitrary code by placing a malicious .env file in a cloned repository, tricking users into running the tool.","url":"https://insights.sbomify.com/CVE-2026-47211/"}