Skip to content
OpenAdvisories
High · 8.4 CVE-2026-46580 EUVD-2026-37899GHSA-m973-pr9r-hp2w

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

Published Jun 18, 2026 · Updated Jun 19, 2026 · Assigned by eclipse

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.

Affected products

VendorProductAffectedFixed
Eclipse Foundation Eclipse Theia < 1.71.0 1.71.0

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS eclipse No fix yet —
Ubuntu 16.04 LTS eclipse No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
npm @theia/ai-chat < 1.71.0 1.71.0 GHSA-m973-pr9r-hp2w
npm @theia/ai-chat-ui < 1.71.0 1.71.0 GHSA-m973-pr9r-hp2w
npm @theia/ai-claude-code < 1.71.0 1.71.0 GHSA-m973-pr9r-hp2w
npm @theia/ai-code-completion < 1.71.0 1.71.0 GHSA-m973-pr9r-hp2w
npm @theia/ai-core < 1.71.0 1.71.0 GHSA-m973-pr9r-hp2w
npm @theia/ai-editor < 1.71.0 1.71.0 GHSA-m973-pr9r-hp2w

References