Skip to main content
VulnerabilityPublished Updated

CVE-2024-8251: mintplex-labs/anything-llm · SQL Injection

Affects mintplex-labs/anything-llmSource CVE Database V5

0

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

CVSS 3.0 base score
5.3Medium
How severe the flaw is on the 0–10 CVSS scale.
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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 20 Mar 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
GitHubmintplex-labs/anything-llmpkg:github/mintplex-labs/anything-llmOther threatsAffected
  • <1.2.2
Fixed in
  • 1.2.2

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

  1. 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.
  2. 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.
  3. Employ parameterized queries or ORM features that safely handle user inputs without directly injecting them into query clauses.
  4. Introduce application-layer access controls to restrict API usage to authenticated and authorized users, reducing the attack surface.
  5. Monitor API logs for unusual query patterns or large data retrievals that may indicate exploitation attempts.
  6. Conduct code reviews and security testing focusing on injection flaws in all endpoints that accept user-controlled JSON for database queries.
  7. Educate developers on secure ORM usage and the risks of improper query construction.
  8. Consider implementing Web Application Firewalls (WAF) with custom rules to detect and block suspicious JSON payloads targeting the vulnerable endpoint.
  9. 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.

References

Community reviews

Loading reviews…