CVE-2024-0435 User can submit message to self-XSS
Users can inject scripts into their own chat messages, resulting in self-XSS that executes only for the submitting user.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-0435?
CVE-2024-0435 is a high-severity cross-site scripting vulnerability in Mintplexlabs Anythingllm, published on 25 Feb 2024. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
User can send a chat that contains an XSS opportunity that will then run when the chat is sent and on subsequent page loads.
Given the minimum requirement for a user to send a chat is to be given access to a workspace via an admin the risk is low. Additionally, the location in which the XSS renders is only limited to the user who submits the XSS.
Ultimately, this attack is limited to the user attacking themselves. There is no anonymous chat submission unless the user does not take the minimum steps required to protect their instance.
Weakness: CWE-79
Which versions are affected by CVE-2024-0435?
It affects 1 product.
Products include Mintplexlabs Anythingllm.
How do I fix CVE-2024-0435?
Apply the vendor's patch.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2024-0435 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-0435 exists.
Other vulnerabilities in Mintplexlabs Anythingllm
- CVE-2024-3025 Path Traversal in mintplex-labs/anything-llm
- CVE-2024-0455 SSRF on AWS deployed instances of AnythingLLM via /metadata
- CVE-2026-32626 AnythingLLM has a Streaming Phase XSS to RCE via LLM Response Injection
- CVE-2024-3104 Remote Code Execution in mintplex-labs/anything-llm
- CVE-2024-3149 SSRF in mintplex-labs/anything-llm
Sources
Also known as GHSA-m8mq-5vgv-8w3r, MINI-cc7v-5852-px9v.