Incident report

AnythingLLM Desktop Streaming Phase XSS Escalating to Host OS RCE

CVE-2026-32626 (CVSS 9.6) revealed a critical vulnerability in AnythingLLM Desktop (`<= 1.11.1`) where streaming chat responses underwent unsafe markdown/HTML rendering inside an overly permissive Electron context. An indirect prompt injection inside an ingested RAG document or external webpage could instruct the model to output crafted HTML/script tags during token streaming. Combined with insecure Electron renderer settings, script execution escalated directly to arbitrary OS command execution on the user's workstation. Maintainers fixed streaming sanitization and tightened Electron isolation boundaries.

Incident record

Reported
Severity
Critical
Vector
Indirect Prompt Injection
Affected system type
Desktop Electron RAG & Local Chat Clients
Reference
CVE-2026-32626
Reference URI
https://nvd.nist.gov/vuln/detail/CVE-2026-32626

Inspect in Interactive Incidents Hub

Defensive lesson

Set contextIsolation=true and nodeIntegration=false in Electron AI apps, and sanitize streamed LLM markdown outputs with DOMPurify before DOM insertion.

Referenced techniques