NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · npm

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

highCVSS 4.0 8.4GHSA-m973-pr9r-hp2w

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…

Published Jun 18, 2026 · Updated Jun 19, 2026

Affected packages

@theia/ai-chat-ui

Ecosystem
npm
Affected
< 1.71.0
Fixed in
1.71.0
Check
npm ls @theia/ai-chat-ui

@theia/ai-chat

Ecosystem
npm
Affected
< 1.71.0
Fixed in
1.71.0
Check
npm ls @theia/ai-chat

@theia/ai-claude-code

Ecosystem
npm
Affected
< 1.71.0
Fixed in
1.71.0
Check
npm ls @theia/ai-claude-code

@theia/ai-code-completion

Ecosystem
npm
Affected
< 1.71.0
Fixed in
1.71.0
Check
npm ls @theia/ai-code-completion

@theia/ai-core

Ecosystem
npm
Affected
< 1.71.0
Fixed in
1.71.0
Check
npm ls @theia/ai-core

@theia/ai-editor

Ecosystem
npm
Affected
< 1.71.0
Fixed in
1.71.0
Check
npm ls @theia/ai-editor

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More npm vulnerabilities

All npm entries