CVE-2026-32626
Streaming Phase XSS in AnythingLLM Desktop Enables Remote Code Execution
Publication date: 2026-03-16
Last updated on: 2026-03-16
Assigner: GitHub, Inc.
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| mintplexlabs | anythingllm | to 1.11.1 (inc) |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-79 | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
The vulnerability exists in AnythingLLM Desktop version 1.11.1 and earlier. It is a Streaming Phase Cross-Site Scripting (XSS) vulnerability in the chat rendering pipeline. Specifically, the application uses a custom markdown-it image renderer that inserts user content directly into the alt attribute of an image tag without escaping HTML entities. This content is then rendered using dangerouslySetInnerHTML without proper sanitization, allowing malicious scripts to be executed.
Because of insecure Electron configuration, this XSS vulnerability escalates to Remote Code Execution (RCE) on the host operating system. The exploit works with default settings and requires no special user interaction beyond normal chat usage.
How can this vulnerability impact me? :
This vulnerability can have severe impacts because it allows an attacker to execute arbitrary code remotely on the host operating system where AnythingLLM Desktop is running.
- An attacker could take full control of the affected system.
- Sensitive data on the host machine could be accessed or modified.
- The system could be used as a foothold for further attacks within a network.
- The integrity, confidentiality, and availability of the system could be compromised.
How does this vulnerability affect compliance with common standards and regulations (like GDPR, HIPAA)?:
I don't know
How can this vulnerability be detected on my network or system? Can you suggest some commands?
I don't know
What immediate steps should I take to mitigate this vulnerability?
To mitigate this vulnerability, you should update AnythingLLM Desktop to a version later than 1.11.1 where the Streaming Phase XSS vulnerability is fixed.
Additionally, avoid using the vulnerable versions with default Electron settings, and ensure that any HTML content rendered in the chat pipeline is properly sanitized, for example by applying DOMPurify.sanitize() to user-generated content before rendering.