Skip to content
MediumVulnerabilityLLM-specific

CVE-2026-41318: AnythingLLM stored XSS through chart captions in chat history

Identifier
CVE-2026-41318
Published
Record updated
View JSON
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.2%

Summary

AnythingLLM versions prior to 1.12.1 contain a stored DOM-level XSS flaw, tracked as CVE-2026-41318. The in-chat markdown renderer interpolates image `alt` text into an HTML attribute without encoding, and the `Chartable` component renders chart captions with no DOMPurify sanitization. An attacker who can influence LLM output, through indirect prompt injection in a shared workspace document or by creating a chart record in a multi-user workspace, can run script in other users' browsers when they open that conversation.

Mitigation

Patched in version 1.12.1.