CVE-2026-32626
JSON

9.7critical

AnythingLLM has a Streaming Phase XSS to RCE via LLM Response Injection

Severity
9.7critical CVSS:3.1 by GitHub_M
Exploit likelihood
0.82% (higher than 58% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M

Description

AnythingLLM is an application that turns pieces of content into context that any LLM can use as references during chatting. In 1.11.1 and earlier, AnythingLLM Desktop contains a Streaming Phase XSS vulnerability in the chat rendering pipeline that escalates to Remote Code Execution on the host OS due to insecure Electron configuration. This works with default settings and requires no user interaction beyond normal chat usage. The custom markdown-it image renderer in frontend/src/utils/chat/markdown.js interpolates token.content directly into the alt attribute without HTML entity escaping. The PromptReply component renders this output via dangerouslySetInnerHTML without DOMPurify sanitization — unlike HistoricalMessage which correctly applies DOMPurify.sanitize().

Affected

Product or packageVersionsReported by
Mintplex-Labs anything-llm<= 1.11.1CVE List
mintplexlabs anythingllmup to 1.11.1NVD

Classification

CWE-79

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total.

What each source says

CVE List

AnythingLLM is an application that turns pieces of content into context that any LLM can use as references during chatting. In 1.11.1 and earlier, AnythingLLM Desktop contains a Streaming Phase XSS vulnerability in the chat rendering pipeline that escalates to Remote Code Execution on the host OS due to insecure Electron configuration. This works with default settings and requires no user interaction beyond normal chat usage. The custom markdown-it image renderer in frontend/src/utils/chat/markdown.js interpolates token.content directly into the alt attribute without HTML entity escaping. The PromptReply component renders this output via dangerouslySetInnerHTML without DOMPurify sanitization — unlike HistoricalMessage which correctly applies DOMPurify.sanitize().

NVD (es)

AnythingLLM es una aplicación que convierte fragmentos de contenido en contexto que cualquier LLM puede usar como referencias durante el chat. En la versión 1.11.1 y anteriores, AnythingLLM Desktop contiene una vulnerabilidad XSS de fase de streaming en la canalización de renderizado del chat que escala a ejecución remota de código en el sistema operativo anfitrión debido a una configuración insegura de Electron. Esto funciona con la configuración predeterminada y no requiere interacción del usuario más allá del uso normal del chat. El renderizador de imágenes personalizado de markdown-it en frontend/src/utils/chat/markdown.js interpola token.content directamente en el atributo alt sin escape de entidades HTML. El componente PromptReply renderiza esta salida a través de dangerouslySetInnerHTML sin la sanitización de DOMPurify, a diferencia de HistoricalMessage, que aplica correctamente DOMPurify.sanitize().

References

Sources

SourceRecordLicence
CVE ListCVE-2026-32626 changed 2026-03-16CVE Terms of Use
NVDCVE-2026-32626 changed 2026-06-17Public domain