CVE-2026-46580: [Eclipse Theia] Indirect Prompt Injection via Auto-Loaded Workspace Prompt Template Files in AI Chat
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…
Published Jun 18, 2026 · Updated Jun 19, 2026
Affected packages
@theia/ai-chat-ui
- Ecosystem
- npm
- Affected
- < 1.71.0
- Fixed in
- 1.71.0
- Check
npm ls @theia/ai-chat-ui
@theia/ai-chat
- Ecosystem
- npm
- Affected
- < 1.71.0
- Fixed in
- 1.71.0
- Check
npm ls @theia/ai-chat
@theia/ai-claude-code
- Ecosystem
- npm
- Affected
- < 1.71.0
- Fixed in
- 1.71.0
- Check
npm ls @theia/ai-claude-code
@theia/ai-code-completion
- Ecosystem
- npm
- Affected
- < 1.71.0
- Fixed in
- 1.71.0
- Check
npm ls @theia/ai-code-completion
@theia/ai-core
- Ecosystem
- npm
- Affected
- < 1.71.0
- Fixed in
- 1.71.0
- Check
npm ls @theia/ai-core
@theia/ai-editor
- Ecosystem
- npm
- Affected
- < 1.71.0
- Fixed in
- 1.71.0
- Check
npm ls @theia/ai-editor
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-46580
- https://gitlab.eclipse.org/security/cve-assignment/-/work_items/114
- https://github.com/eclipse-theia/theia/issues/16892
- https://github.com/eclipse-theia/theia/pull/17364
- https://github.com/eclipse-theia/theia/commit/e3fdfe6992389bc5fa611058d00c39d7408508ed
- https://github.com/advisories/GHSA-m973-pr9r-hp2w
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
