GHSA-m973-pr9r-hp2w

Suggest an improvement
Source
https://github.com/advisories/GHSA-m973-pr9r-hp2w
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-m973-pr9r-hp2w/GHSA-m973-pr9r-hp2w.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-m973-pr9r-hp2w
Aliases
Published
2026-06-18T18:35:23Z
Modified
2026-09-10T03:51:09Z
Severity
  • 8.4 (High) CVSS_V4 - 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 CVSS Calculator
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.

Database specific
{
    "cwe_ids":  [
        "CWE-829"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-06-19T19:20:46Z",
    "nvd_published_at":  "2026-06-18T16:16:54Z",
    "severity":  "HIGH"
}
References

Affected packages

npm
@theia/ai-chat-ui

Package

Name
@theia/ai-chat-ui
View open source insights on deps.dev
Purl
pkg:npm/%40theia/ai-chat-ui

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
1.71.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-m973-pr9r-hp2w/GHSA-m973-pr9r-hp2w.json"
@theia/ai-chat

Package

Name
@theia/ai-chat
View open source insights on deps.dev
Purl
pkg:npm/%40theia/ai-chat

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
1.71.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-m973-pr9r-hp2w/GHSA-m973-pr9r-hp2w.json"
@theia/ai-claude-code

Package

Name
@theia/ai-claude-code
View open source insights on deps.dev
Purl
pkg:npm/%40theia/ai-claude-code

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
1.71.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-m973-pr9r-hp2w/GHSA-m973-pr9r-hp2w.json"
@theia/ai-code-completion

Package

Name
@theia/ai-code-completion
View open source insights on deps.dev
Purl
pkg:npm/%40theia/ai-code-completion

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
1.71.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-m973-pr9r-hp2w/GHSA-m973-pr9r-hp2w.json"
@theia/ai-core

Package

Name
@theia/ai-core
View open source insights on deps.dev
Purl
pkg:npm/%40theia/ai-core

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
1.71.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-m973-pr9r-hp2w/GHSA-m973-pr9r-hp2w.json"
@theia/ai-editor

Package

Name
@theia/ai-editor
View open source insights on deps.dev
Purl
pkg:npm/%40theia/ai-editor

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
1.71.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-m973-pr9r-hp2w/GHSA-m973-pr9r-hp2w.json"