VDB
KO
HIGH

GHSA-m973-pr9r-hp2w

[Eclipse Theia] Indirect Prompt Injection via Auto-Loaded Workspace Prompt Template Files in AI Chat

Details

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm / @theia/ai-chat-ui
Introduced in: 0 Fixed in: 1.71.0
Fix npm install @theia/ai-chat-ui@1.71.0
npm / @theia/ai-chat
Introduced in: 0 Fixed in: 1.71.0
Fix npm install @theia/ai-chat@1.71.0
npm / @theia/ai-claude-code
Introduced in: 0 Fixed in: 1.71.0
Fix npm install @theia/ai-claude-code@1.71.0
npm / @theia/ai-code-completion
Introduced in: 0 Fixed in: 1.71.0
Fix npm install @theia/ai-code-completion@1.71.0
npm / @theia/ai-core
Introduced in: 0 Fixed in: 1.71.0
Fix npm install @theia/ai-core@1.71.0
npm / @theia/ai-editor
Introduced in: 0 Fixed in: 1.71.0
Fix npm install @theia/ai-editor@1.71.0

References