# CVE-2024-8251: Prisma Injection in mintplex-labs/anything-llm

- Severity: Medium 5.3 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.49%, higher than 43% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-03-20T10:08:48.644Z
- Modified: 2026-06-17T08:22:12.283Z
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: @huntr_ai

## 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.

(As written by CVE List.)

## Affected

- mintplex-labs mintplex-labs/anything-llm: from unspecified before 1.2.2
- mintplexlabs anythingllm: before 1.2.2

## References

- <https://huntr.com/bounties/7c263ef1-7d50-475a-9425-b15df4e0403c> (exploit, third-party-advisory)
- <https://github.com/mintplex-labs/anything-llm/commit/334fd9cdd02ad4aa6a3c9bdfc95e7764651c13f4> (patch)

## Sources

- CVE List: [CVE-2024-8251](https://www.cve.org/CVERecord?id=CVE-2024-8251), CVE Terms of Use, modified 2025-10-15
- NVD: [CVE-2024-8251](https://nvd.nist.gov/vuln/detail/CVE-2024-8251), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-8251 · Whole record: https://cve.day/CVE-2024-8251.json · Rebuilt by cve.day 2026-11-25T22:58:52.394Z
