8.4high
[Eclipse Theia] Indirect Prompt Injection via Auto-Loaded Workspace Prompt Template Files in AI Chat
- Severity
- 8.4high CVSS:4.0 by eclipse
- Exploit likelihood
- 0.27% (higher than 20% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- eclipse
- Also known as
- GHSA-m973-pr9r-hp2w
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
| Product or package | Versions | Reported by |
|---|---|---|
| Eclipse Foundation Eclipse Theia | before 1.71.0 | CVE List |
| @theia/ai-chat-ui (npm) | before 1.71.0 | GitHub Advisory Database |
| @theia/ai-chat (npm) | before 1.71.0 | GitHub Advisory Database |
| @theia/ai-claude-code (npm) | before 1.71.0 | GitHub Advisory Database |
| @theia/ai-code-completion (npm) | before 1.71.0 | GitHub Advisory Database |
| @theia/ai-core (npm) | before 1.71.0 | GitHub Advisory Database |
| @theia/ai-editor (npm) | before 1.71.0 | GitHub Advisory Database |
| eclipse theia | before 1.71.0 | NVD |
All scores
| eclipse | 8.4high CVSS:4.0 | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
| GitHub | high CVSS:4.0 | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
| NVD | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Classification
What each source says
CVE List
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.
NVD (es)
En versiones de Eclipse Theia anteriores a la 1.71.0, los archivos que coincidían con el patrón .prompts/*.prompttemplate en un espacio de trabajo se cargaban automáticamente y podían anular o extender las instrucciones del sistema del agente de IA. Un atacante podía crear un repositorio malicioso que contenía archivos de plantilla de prompt que, al abrir el espacio de trabajo en Theia, reemplazaban las instrucciones del sistema de la IA con contenido controlado por el atacante (inyección de prompt indirecta). Combinado con otras características de chat de IA disponibles en espacios de trabajo no confiables, esto permitía cadenas de ataque que conducían a la exfiltración de datos a través de la renderización de imágenes Markdown o la ejecución de comandos arbitrarios a través de definiciones de tareas.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-46580 changed 2026-06-19 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-m973-pr9r-hp2w changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2026-46580 changed 2026-10-26 | Public domain |