Documented Incident · INC-2026-32626 · Critical severity
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 dossier metadata
- Case ID
INC-2026-32626- Classification
- Incident
- Date
- Severity
- Critical
- Sector
- Consumer AI & Local Runtimes
- Attack vector
- Indirect Prompt Injection
- System type
- Desktop Electron RAG & Local Chat Clients
- CVE / reference
CVE-2026-32626- Reference URI
https://nvd.nist.gov/vuln/detail/CVE-2026-32626
Defensive takeaway
Set contextIsolation=true and nodeIntegration=false in Electron AI apps, and sanitize streamed LLM markdown outputs with DOMPurify before DOM insertion.
Mapped AI security techniques
- LLM Prompt Injection: Indirect AML.T0051.001
- LLM Response Rendering AML.T0077
- Machine Compromise: Local AI Agent AML.T0112.000
- Exfiltration via AI User Interface AML.T0136
Mapped defensive controls
- Generative AI Guardrails AML.M0020
- Segmentation of AI Agent Components AML.M0032
- Input and Output Validation for AI Agent Components AML.M0033
Source citation records
- NVD Record CVE-2026-32626: AnythingLLM Streaming XSS to Host RCE · NIST National Vulnerability Database (NVD) ·