VDB
Sign up
HIGH

GHSA-3jww-hxqj-wfq2

[Eclipse Theia] Indirect Prompt Injection via Adversarial Workspace File and Directory Names in AI Chat

Quick fix

GHSA-3jww-hxqj-wfq2 — @theia/ai-chat-ui: upgrade to the fixed version with the command below.

npm install @theia/ai-chat-ui@1.71.0

Details

In Eclipse Theia versions prior to 1.71.0, the AI chat agent processed workspace file and directory names as part of its prompt context without distinguishing them from system instructions. An attacker could craft a malicious repository with adversarial directory or file names that, when analyzed by the AI agent, would cause the agent to follow attacker-controlled instructions (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: 0Fixed in: 1.71.0
Fixnpm install @theia/ai-chat-ui@1.71.0
npm/@theia/ai-chat
Introduced in: 0Fixed in: 1.71.0
Fixnpm install @theia/ai-chat@1.71.0
npm/@theia/ai-claude-code
Introduced in: 0Fixed in: 1.71.0
Fixnpm install @theia/ai-claude-code@1.71.0
npm/@theia/ai-code-completion
Introduced in: 0Fixed in: 1.71.0
Fixnpm install @theia/ai-code-completion@1.71.0
npm/@theia/ai-core
Introduced in: 0Fixed in: 1.71.0
Fixnpm install @theia/ai-core@1.71.0
npm/@theia/ai-editor
Introduced in: 0Fixed in: 1.71.0
Fixnpm install @theia/ai-editor@1.71.0
npm/@theia/ai-ide
Introduced in: 0Fixed in: 1.71.0
Fixnpm install @theia/ai-ide@1.71.0

References