{"answers":{"affected":"12 open source packages ship an affected version, including @theia/ai-chat, @theia/ai-chat-ui and @theia/ai-claude-code. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-46580 in the wild and no public exploit code.","fix":"Upgrade @theia/ai-chat to 1.71.0 or later.","what":"CVE-2026-46580 is a high-severity code injection vulnerability in Eclipse Theia, published on 18 Jun 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-46580 and fix it if it is affected.\n\nWhat it is: CVE-2026-46580 is a high-severity code injection vulnerability in Eclipse Theia, published on 18 Jun 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-46580 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- @theia/ai-chat (npm): affected all versions; fixed in 1.71.0\n- @theia/ai-chat (npm): affected all versions; fixed in 1.71.0\n- @theia/ai-chat-ui (npm): affected all versions; fixed in 1.71.0\n- @theia/ai-chat-ui (npm): affected all versions; fixed in 1.71.0\n- @theia/ai-claude-code (npm): affected all versions; fixed in 1.71.0\n- @theia/ai-claude-code (npm): affected all versions; fixed in 1.71.0\n- @theia/ai-code-completion (npm): affected all versions; fixed in 1.71.0\n- @theia/ai-code-completion (npm): affected all versions; fixed in 1.71.0\n- @theia/ai-core (npm): affected all versions; fixed in 1.71.0\n- @theia/ai-core (npm): affected all versions; fixed in 1.71.0\n- @theia/ai-editor (npm): affected all versions; fixed in 1.71.0\n- @theia/ai-editor (npm): affected all versions; fixed in 1.71.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-46580/ (Markdown: https://insights.sbomify.com/CVE-2026-46580/index.md)","id":"CVE-2026-46580","markdown":"https://insights.sbomify.com/CVE-2026-46580/index.md","name":"CVE-2026-46580","record":{"aliases":["GHSA-m973-pr9r-hp2w","UBUNTU-CVE-2026-46580"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["code_execution","data_read"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Eclipse Theia IDE","requires_auth":"none","summary":"Attackers can inject malicious prompts via workspace files to execute arbitrary commands or exfiltrate data when opening untrusted repositories in Eclipse Theia.","user_interaction":"required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"eclipse","cpe":[{"product":"theia","vendor":"eclipse"}],"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-829","name":"Inclusion of Functionality from Untrusted Control Sphere"},{"id":"CWE-1427","name":"Improper Neutralization of Input Used for LLM Prompting"}],"description":"In Eclipse Theia versions prior to 1.71.0, files matching the pattern .prompts/*.prompttemplate in a workspace were automatically loaded and could override or extend the AI agent's system prompts. An attacker could craft a malicious repository containing prompt template files that, when the workspace was opened in Theia, replaced the AI's system instructions with attacker-controlled content (indirect prompt injection). Combined with other AI chat features available in untrusted workspaces, this enabled attack chains leading to data exfiltration via Markdown image rendering or arbitrary command execution via task definitions.","ecosystems":["npm"],"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":"[Eclipse Theia] Indirect Prompt Injection via Auto-Loaded Workspace Prompt Template Files in AI Chat","id":"CVE-2026-46580","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"code_injection","year":"2026"},"n_packages":12,"n_references":1,"next":{"headline":"Server-side request forgery in Eclipse Mojarra","id":"CVE-2026-46581"},"packages":[{"ecosystem":"npm","fixed":["1.71.0"],"introduced":["0"],"last_affected":[],"package":"@theia/ai-chat","purl":null,"source":"GHSA-m973-pr9r-hp2w"},{"ecosystem":"npm","fixed":["1.71.0"],"introduced":["0"],"last_affected":[],"package":"@theia/ai-chat","purl":"pkg:npm/%40theia/ai-chat","source":"GHSA-m973-pr9r-hp2w"},{"ecosystem":"npm","fixed":["1.71.0"],"introduced":["0"],"last_affected":[],"package":"@theia/ai-chat-ui","purl":null,"source":"GHSA-m973-pr9r-hp2w"},{"ecosystem":"npm","fixed":["1.71.0"],"introduced":["0"],"last_affected":[],"package":"@theia/ai-chat-ui","purl":"pkg:npm/%40theia/ai-chat-ui","source":"GHSA-m973-pr9r-hp2w"},{"ecosystem":"npm","fixed":["1.71.0"],"introduced":["0"],"last_affected":[],"package":"@theia/ai-claude-code","purl":null,"source":"GHSA-m973-pr9r-hp2w"},{"ecosystem":"npm","fixed":["1.71.0"],"introduced":["0"],"last_affected":[],"package":"@theia/ai-claude-code","purl":"pkg:npm/%40theia/ai-claude-code","source":"GHSA-m973-pr9r-hp2w"},{"ecosystem":"npm","fixed":["1.71.0"],"introduced":["0"],"last_affected":[],"package":"@theia/ai-code-completion","purl":null,"source":"GHSA-m973-pr9r-hp2w"},{"ecosystem":"npm","fixed":["1.71.0"],"introduced":["0"],"last_affected":[],"package":"@theia/ai-code-completion","purl":"pkg:npm/%40theia/ai-code-completion","source":"GHSA-m973-pr9r-hp2w"},{"ecosystem":"npm","fixed":["1.71.0"],"introduced":["0"],"last_affected":[],"package":"@theia/ai-core","purl":null,"source":"GHSA-m973-pr9r-hp2w"},{"ecosystem":"npm","fixed":["1.71.0"],"introduced":["0"],"last_affected":[],"package":"@theia/ai-core","purl":"pkg:npm/%40theia/ai-core","source":"GHSA-m973-pr9r-hp2w"},{"ecosystem":"npm","fixed":["1.71.0"],"introduced":["0"],"last_affected":[],"package":"@theia/ai-editor","purl":null,"source":"GHSA-m973-pr9r-hp2w"},{"ecosystem":"npm","fixed":["1.71.0"],"introduced":["0"],"last_affected":[],"package":"@theia/ai-editor","purl":"pkg:npm/%40theia/ai-editor","source":"GHSA-m973-pr9r-hp2w"}],"prev":{"headline":"Auth bypass in Red Hat OpenShift Container Platform 4.12","id":"CVE-2026-46579"},"products":["Eclipse Theia"],"published":"2026-06-18","related":[{"cvss_score":9.8,"headline":"XML external entity in Eclipse Theia","id":"CVE-2021-34436","kev_date_added":null,"published":"2021-09-02"},{"cvss_score":9.6,"headline":"Cross-site Scripting (XSS) in Eclipse Theia","id":"CVE-2020-27224","kev_date_added":null,"published":"2021-02-24"},{"cvss_score":8.8,"headline":"File upload in Eclipse Theia","id":"CVE-2026-60009","kev_date_added":null,"published":"2026-08-05"},{"cvss_score":8.8,"headline":"Remote code execution in Eclipse Theia","id":"CVE-2021-34435","kev_date_added":null,"published":"2021-09-01"},{"cvss_score":8.4,"headline":"[Eclipse Theia] Indirect Prompt Injection via Adversarial Workspace File and Directory Names in AI Chat","id":"CVE-2026-44688","kev_date_added":null,"published":"2026-06-18"},{"cvss_score":8.4,"headline":"[Eclipse Theia] Arbitrary Command Execution via Untrusted Workspace Task Definitions","id":"CVE-2026-44691","kev_date_added":null,"published":"2026-06-18"}],"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":"US public information, NVD API terms","name":"NVD"},{"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-06-19","vendors":["Eclipse Foundation"]},"summary":"Attackers can inject malicious prompts via workspace files to execute arbitrary commands or exfiltrate data when opening untrusted repositories in Eclipse Theia.","url":"https://insights.sbomify.com/CVE-2026-46580/"}