CVE-2024-8251: mintplex-labs/anything-llm · SQL Injection
Affects mintplex-labs/anything-llmSource CVE Database V5
Not known to be exploited · CVSS 5.3 Medium : upgrade to 1.2.2 when convenient.
Data as of 26 Oct 2026, 10:12 UTC
- EPSS
- 0.4% chance of exploitation in 30 days – higher than 41% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 1.2.2
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:NExploitation evidence
Disclosed: evidence found.
CVE published 20 Mar 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Upgrade mintplex-labs/anything-llm to 1.2.2.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
GitHubmintplex-labs/anything-llmpkg:github/mintplex-labs/anything-llmOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
- Upgrade to mintplex-labs/anything-llm version 1.2.2 or later as soon as an official patch is released that addresses this Prisma injection vulnerability.
- If you cannot patch yet, implement strict input validation and sanitization on all JSON inputs accepted by the "/embed/:embedId/stream-chat" API endpoint to reject or neutralize special query operators such as 'not', 'or', 'and', and others that can manipulate Prisma queries.
- Employ parameterized queries or ORM features that safely handle user inputs without directly injecting them into query clauses.
- Introduce application-layer access controls to restrict API usage to authenticated and authorized users, reducing the attack surface.
- Monitor API logs for unusual query patterns or large data retrievals that may indicate exploitation attempts.
- Conduct code reviews and security testing focusing on injection flaws in all endpoints that accept user-controlled JSON for database queries.
- Educate developers on secure ORM usage and the risks of improper query construction.
- Consider implementing Web Application Firewalls (WAF) with custom rules to detect and block suspicious JSON payloads targeting the vulnerable endpoint.
- Regularly audit and update dependencies to incorporate security fixes promptly.
Description
A vulnerability in mintplex-labs/anything-llm prior to version 1.2.2 allows for Prisma injection. The issue exists in the API endpoint "/embed/:embedId/stream-chat" where user-provided JSON is directly taken to the Prisma library's where clause. An attacker can exploit this by providing a specially crafted JSON object, such as {"sessionId":{"not":"a"}}, causing Prisma to return all data from the table. This can lead to unauthorized access to all user queries in embedded chat mode.