CVE-2026-46580
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
@theia/ai-chat-uinpm | < 1.71.0 | 1.71.0 |
@theia/ai-chatnpm | < 1.71.0 | 1.71.0 |
@theia/ai-claude-codenpm | < 1.71.0 | 1.71.0 |
@theia/ai-code-completionnpm | < 1.71.0 | 1.71.0 |
@theia/ai-corenpm | < 1.71.0 | 1.71.0 |
@theia/ai-editornpm | < 1.71.0 | 1.71.0 |
Affected products
1Patches
Vulnerability mechanics
References
6- github.com/advisories/GHSA-m973-pr9r-hp2wghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-46580ghsaADVISORY
- github.com/eclipse-theia/theia/commit/e3fdfe6992389bc5fa611058d00c39d7408508edghsaWEB
- github.com/eclipse-theia/theia/issues/16892ghsaWEB
- github.com/eclipse-theia/theia/pull/17364ghsaWEB
- gitlab.eclipse.org/security/cve-assignment/-/work_items/114ghsaWEB
News mentions
0No linked articles in our index yet.