CVE-2026-41318: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in Mintplex-Labs anything-llm
CVE-2026-41318 is a stored cross-site scripting (XSS) vulnerability in Mintplex-Labs' AnythingLLM application versions prior to 1. 12. 1. The issue arises from unsafe handling of markdown image alt text in the in-chat markdown renderer, specifically in the Chartable component, which does not sanitize chart captions. An attacker able to influence the LLM's output can inject malicious scripts that execute in other users' browsers when they view the affected chat. Version 1. 12. 1 includes a patch addressing this vulnerability.
AI Analysis
Technical Summary
AnythingLLM's in-chat markdown renderer prior to version 1.12.1 uses a custom rule for images that inserts the markdown image's alt text directly into an HTML alt attribute without HTML encoding. While most renderMarkdown calls are sanitized with DOMPurify, the Chartable component renders chart captions without sanitization. Since chart captions are generated from natural language output by the LLM, an attacker who can influence the LLM output (via indirect prompt injection or by creating chart records in multi-user workspaces) can inject stored DOM-level XSS payloads. These payloads execute in other users' browsers when they open the conversation. The vulnerability is fixed in version 1.12.1.
Potential Impact
Successful exploitation allows an attacker to execute stored cross-site scripting attacks in the browsers of other users viewing the affected chat conversations. This can lead to theft of sensitive information or session tokens (confidentiality impact is high), limited integrity impact, and no impact on availability. The vulnerability requires network access and user interaction, with a high attack complexity and low privileges required.
Mitigation Recommendations
A patch is available in AnythingLLM version 1.12.1 that fixes this vulnerability by properly sanitizing the chart captions. Users should upgrade to version 1.12.1 or later to remediate this issue. No other mitigation is specified or required by the vendor advisory.
CVE-2026-41318: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in Mintplex-Labs anything-llm
Description
CVE-2026-41318 is a stored cross-site scripting (XSS) vulnerability in Mintplex-Labs' AnythingLLM application versions prior to 1. 12. 1. The issue arises from unsafe handling of markdown image alt text in the in-chat markdown renderer, specifically in the Chartable component, which does not sanitize chart captions. An attacker able to influence the LLM's output can inject malicious scripts that execute in other users' browsers when they view the affected chat. Version 1. 12. 1 includes a patch addressing this vulnerability.
CVSS v3.1
Score 5.4medium
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
AnythingLLM's in-chat markdown renderer prior to version 1.12.1 uses a custom rule for images that inserts the markdown image's alt text directly into an HTML alt attribute without HTML encoding. While most renderMarkdown calls are sanitized with DOMPurify, the Chartable component renders chart captions without sanitization. Since chart captions are generated from natural language output by the LLM, an attacker who can influence the LLM output (via indirect prompt injection or by creating chart records in multi-user workspaces) can inject stored DOM-level XSS payloads. These payloads execute in other users' browsers when they open the conversation. The vulnerability is fixed in version 1.12.1.
Potential Impact
Successful exploitation allows an attacker to execute stored cross-site scripting attacks in the browsers of other users viewing the affected chat conversations. This can lead to theft of sensitive information or session tokens (confidentiality impact is high), limited integrity impact, and no impact on availability. The vulnerability requires network access and user interaction, with a high attack complexity and low privileges required.
Mitigation Recommendations
A patch is available in AnythingLLM version 1.12.1 that fixes this vulnerability by properly sanitizing the chart captions. Users should upgrade to version 1.12.1 or later to remediate this issue. No other mitigation is specified or required by the vendor advisory.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-20T14:01:46.671Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69eaec2d87115cfb68c0d936
Added to database: 4/24/2026, 4:06:05 AM
Last enriched: 5/1/2026, 8:44:54 PM
Last updated: 6/7/2026, 4:04:57 PM
Views: 48
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.