CVE-2026-41318: AnythingLLM is an application that turns pieces of content into context that any LLM can use as references during…

CVE-2026-41318 · Severity: medium · CVSS 5.4 · Published 2026-04-24

AnythingLLM is an application that turns pieces of content into context that any LLM can use as references during chatting. Prior to version 1.12.1, AnythingLLM's in-chat markdown renderer has an unsafe custom rule for images that interpolates the markdown image's `alt` text into an HTML `alt="..."` attribute without any HTML encoding. Every call-site in the app wraps `renderMarkdown(...)` with `DOMPurify.sanitize(...)` as defense-in-depth — except the `Chartable` component, which renders chart captions with no sanitization. The chart caption is the natural-language text the LLM emits around a `create-chart` tool call, so any attacker who can influence the LLM's output — most cheaply via indirect prompt injection in a shared workspace document, or directly if they can create a chart record in a multi-user workspace — can trigger stored DOM-level XSS in every other user's browser when they open that conversation. AnythingLLM chat history is loaded server-side via `GET /api/workspace/:slug/chats` and rendered directly into the chat UI. Version 1.12.1 contains a patch for this issue.

Technologies: Mintplexlabs Anythingllm. Vendors: Mintplexlabs.

Quick answers

Is CVE-2026-41318 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-41318 being exploited in the wild.
How severe is CVE-2026-41318?
Medium severity, with a CVSS score of 5.4, published 24 April 2026.
Which products and versions are affected?
Mintplexlabs Anythingllm. The advisory does not name versions.
Is there a fix for CVE-2026-41318?
No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.
Am I affected by CVE-2026-41318?
Check whether you run Mintplexlabs Anythingllm. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

Affected products

  • Mintplexlabs Anythingllm

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.