[Eclipse Theia] Indirect Prompt Injection via Auto-Loaded Workspace Prompt Template Files in AI Chat
Eclipse Foundation Eclipse Theia
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| @theia/ai-chat-ui npm |
|
|
| @theia/ai-chat npm |
|
|
| @theia/ai-claude-code npm |
Eclipse Foundation Eclipse Theia
| Product | Affected | Fixed in |
|---|---|---|
| @theia/ai-chat-ui npm |
|
|
| @theia/ai-chat npm |
|
|
| @theia/ai-claude-code npm |
< 1.71.0
|
| @theia/ai-code-completion npm |
|
|
| @theia/ai-core npm |
|
|
| @theia/ai-editor npm |
|
|
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.
From the CVE record · eclipse
Eclipse Theia before 1.71.0 automatically loads workspace .prompts/*.prompttemplate files, which can override or extend AI agent system prompts. An attacker can place malicious templates in a repository; if a user opens it in Theia, the attacker-controlled instructions can contribute to attack chains that exfiltrate data through Markdown image rendering or execute arbitrary commands through task definitions.
Teams running Eclipse Theia or the listed @theia/ai-* npm packages at versions earlier than 1.71.0 should check their installations.