CVE-2026-46580
JSON

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 packageVersionsReported by
Eclipse Foundation Eclipse Theiabefore 1.71.0CVE List
@theia/ai-chat-ui (npm)before 1.71.0GitHub Advisory Database
@theia/ai-chat (npm)before 1.71.0GitHub Advisory Database
@theia/ai-claude-code (npm)before 1.71.0GitHub Advisory Database
@theia/ai-code-completion (npm)before 1.71.0GitHub Advisory Database
@theia/ai-core (npm)before 1.71.0GitHub Advisory Database
@theia/ai-editor (npm)before 1.71.0GitHub Advisory Database
eclipse theiabefore 1.71.0NVD

All scores

eclipse8.4high CVSS:4.0CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
GitHubhigh CVSS:4.0CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
NVD8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Classification

CWE-829CWE-1427

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

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

SourceRecordLicence
CVE ListCVE-2026-46580 changed 2026-06-19CVE Terms of Use
GitHub Advisory DatabaseGHSA-m973-pr9r-hp2w changed 2026-09-10CC-BY-4.0
NVDCVE-2026-46580 changed 2026-10-26Public domain