Advisory

GHSA-m973-pr9r-hp2w

Also known as: CVE-2026-46580

Summary

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

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2026-06-18 18:35 UTC
Modified
2026-09-10 03:51 UTC

Affected packages and fixes

@theia/ai-chat-ui

npm · All systems

Affected

  • introduced 0, fixed 1.71.0 (semver)

Fixed versions

1.71.0

Fix

@theia/ai-chat

npm · All systems

Affected

  • introduced 0, fixed 1.71.0 (semver)

Fixed versions

1.71.0

Fix

@theia/ai-claude-code

npm · All systems

Affected

  • introduced 0, fixed 1.71.0 (semver)

Fixed versions

1.71.0

Fix

@theia/ai-code-completion

npm · All systems

Affected

  • introduced 0, fixed 1.71.0 (semver)

Fixed versions

1.71.0

Fix

@theia/ai-core

npm · All systems

Affected

  • introduced 0, fixed 1.71.0 (semver)

Fixed versions

1.71.0

Fix

@theia/ai-editor

npm · All systems

Affected

  • introduced 0, fixed 1.71.0 (semver)

Fixed versions

1.71.0

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences