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 an unsafe custom markdown image rendering rule that inserts unencoded alt text into HTML attributes. While most uses of the markdown renderer are sanitized with DOMPurify, the Chartable component renders chart captions without sanitization. An attacker who can influence the LLM output, for example via prompt injection or multi-user workspace chart creation, can inject malicious scripts that execute in other users' browsers when viewing the conversation. Version 1. 12. 1 includes a patch addressing this vulnerability. The CVSS 3.
AI Analysis
Technical Summary
AnythingLLM's in-chat markdown renderer prior to version 1.12.1 contains a cross-site scripting vulnerability due to improper neutralization of input in the alt attribute of images. The vulnerability is specifically in the Chartable component, which renders chart captions derived from LLM-generated natural language without applying DOMPurify sanitization. This allows an attacker capable of influencing LLM output or creating chart records in a shared workspace to inject stored XSS payloads that execute in other users' browsers when they load the chat history. The vulnerability is fixed in version 1.12.1.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary scripts in the browsers of other users viewing the affected chat conversations. This can lead to theft of sensitive information, session hijacking, or other client-side impacts. The vulnerability requires the attacker to influence LLM output or create chart records in a multi-user workspace, and user interaction is required to trigger the XSS. The CVSS score of 5.4 reflects a medium severity with high confidentiality impact but lower integrity and availability impacts.
Mitigation Recommendations
Upgrade AnythingLLM to version 1.12.1 or later, which contains a patch that properly sanitizes chart captions to prevent this XSS vulnerability. Until upgraded, avoid allowing untrusted users to create chart records or influence LLM output in shared workspaces. There is no official vendor advisory provided here, so check Mintplex-Labs' resources for confirmation and additional guidance.
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 an unsafe custom markdown image rendering rule that inserts unencoded alt text into HTML attributes. While most uses of the markdown renderer are sanitized with DOMPurify, the Chartable component renders chart captions without sanitization. An attacker who can influence the LLM output, for example via prompt injection or multi-user workspace chart creation, can inject malicious scripts that execute in other users' browsers when viewing the conversation. Version 1. 12. 1 includes a patch addressing this vulnerability. The CVSS 3.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
AnythingLLM's in-chat markdown renderer prior to version 1.12.1 contains a cross-site scripting vulnerability due to improper neutralization of input in the alt attribute of images. The vulnerability is specifically in the Chartable component, which renders chart captions derived from LLM-generated natural language without applying DOMPurify sanitization. This allows an attacker capable of influencing LLM output or creating chart records in a shared workspace to inject stored XSS payloads that execute in other users' browsers when they load the chat history. The vulnerability is fixed in version 1.12.1.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary scripts in the browsers of other users viewing the affected chat conversations. This can lead to theft of sensitive information, session hijacking, or other client-side impacts. The vulnerability requires the attacker to influence LLM output or create chart records in a multi-user workspace, and user interaction is required to trigger the XSS. The CVSS score of 5.4 reflects a medium severity with high confidentiality impact but lower integrity and availability impacts.
Mitigation Recommendations
Upgrade AnythingLLM to version 1.12.1 or later, which contains a patch that properly sanitizes chart captions to prevent this XSS vulnerability. Until upgraded, avoid allowing untrusted users to create chart records or influence LLM output in shared workspaces. There is no official vendor advisory provided here, so check Mintplex-Labs' resources for confirmation and additional guidance.
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: 4/24/2026, 4:21:42 AM
Last updated: 4/24/2026, 5:47:47 AM
Views: 6
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.