CRITICAL🇵🇱 Wersja polska

CVE-2026-32626

CVSS 9.6v3.1pub. 2026-03-16

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().

🤖 AI Analysis
How it works

A custom image renderer based on markdown-it (file frontend/src/utils/chat/markdown.js) inserts the token.content value directly into the alt attribute without HTML entity encoding. The PromptReply component renders this result via dangerouslySetInnerHTML without sanitization using DOMPurify — in contrast to the HistoricalMessage component, which correctly applies DOMPurify.sanitize(). The embedded malicious JavaScript code is then executed in the Electron context, where insecure default configuration allows escaping the browser sandbox and executing code at the operating system level.

Impact

An attacker can execute arbitrary code on the host operating system (RCE), which potentially leads to complete compromise of the victim's machine, including data theft, malware installation, or lateral movement in the network.

Mitigation & patch

AnythingLLM Desktop should be updated to a version containing the patch available in commit 9e2d144dc8be6fab29f560f5bcdaa9ef7dbb4214. Details are available in the vendor's GitHub repository and in security advisory GHSA-rrmw-2j6x-4mf2.

Who is affected

AnythingLLM Desktop version 1.11.1 and earlier (Mintplex Labs product)

Analysis generated by Claude AI (Anthropic) based on NVD data. Always verify with vendor.
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
  • Mintplexlabs Anythingllm

    APP
    Mintplexlabs
    ≤ 1.11.1
🔵
CHECK WITH VENDOR
No clear patch data available. Check vendor references.
Tags
RCEXSS
CWE
References

Related vulnerabilities

CVE-2024-3279CRITICAL9.1PL ✓same product

Nieprawidłowa kontrola dostępu w AnythingLLM — nieautoryzowana manipulacja bazą danych

CVE-2024-3033CRITICAL9.4PL ✓same product

Brak autoryzacji w AnythingLLM — destrukcyjny dostęp do VectorDB

CVE-2024-3104CRITICAL9.8PL ✓same product

RCE poprzez command injection w Mintplex Labs AnythingLLM

CVE-2024-0404CRITICAL9.1PL ✓same product

Mass assignment w anything-llm umożliwia nieautoryzowane tworzenie kont admin

CVE-2024-3025CRITICAL9.9PL ✓same product

Path Traversal w AnythingLLM — odczyt i usunięcie plików przez logo filename