# CVE-2026-46580: [Eclipse Theia] Indirect Prompt Injection via Auto-Loaded Workspace Prompt Template Files in AI Chat

- Severity: High 8.4 (CVSS:4.0, scored by eclipse) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.27%, higher than 20% of CVEs (2026-12-01)
- Published: 2026-06-18T14:26:59.389Z
- Modified: 2026-10-26T11:10:00.157Z
- Also known as: GHSA-m973-pr9r-hp2w
- Weaknesses: CWE-829, CWE-1427
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- 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.

(As written by CVE List.)

## Affected

- Eclipse Foundation Eclipse Theia: before 1.71.0
- @theia/ai-chat-ui (npm): before 1.71.0
- @theia/ai-chat (npm): before 1.71.0
- @theia/ai-claude-code (npm): before 1.71.0
- @theia/ai-code-completion (npm): before 1.71.0
- @theia/ai-core (npm): before 1.71.0
- @theia/ai-editor (npm): before 1.71.0
- eclipse theia: before 1.71.0

## Every score

- eclipse: CVSS:4.0 8.4 High `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: CVSS:4.0 High `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: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://gitlab.eclipse.org/security/cve-assignment/-/work_items/114> (patch, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-46580> (advisory)
- <https://github.com/eclipse-theia/theia/issues/16892> (web)
- <https://github.com/eclipse-theia/theia/pull/17364> (web)
- <https://github.com/eclipse-theia/theia/commit/e3fdfe6992389bc5fa611058d00c39d7408508ed> (web)
- <https://github.com/eclipse-theia/theia> (package)

## Sources

- CVE List: [CVE-2026-46580](https://www.cve.org/CVERecord?id=CVE-2026-46580), CVE Terms of Use, modified 2026-06-19
- GitHub Advisory Database: [GHSA-m973-pr9r-hp2w](https://github.com/advisories/GHSA-m973-pr9r-hp2w), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-46580](https://nvd.nist.gov/vuln/detail/CVE-2026-46580), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-46580 · Whole record: https://cve.day/CVE-2026-46580.json · Rebuilt by cve.day 2026-11-25T22:59:25.143Z
