{"id":"CVE-2024-8251","published":"2025-03-20T10:08:48Z","modified":"2025-10-15T12:49:56Z","title":"Prisma Injection in mintplex-labs/anything-llm","vendor":"mintplex-labs","product":"mintplex-labs/anything-llm","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0049,"percentile":0.43075,"provenance":"source"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"references":[{"url":"https://huntr.com/bounties/7c263ef1-7d50-475a-9425-b15df4e0403c","tags":[]},{"url":"https://github.com/mintplex-labs/anything-llm/commit/334fd9cdd02ad4aa6a3c9bdfc95e7764651c13f4","tags":[]}],"priority":{"score":12.3,"factors":[{"name":"EPSS percentile","points":8.62},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"mintplex-labs","affectedVersions":[{"vendor":"mintplex-labs","product":"mintplex-labs/anything-llm","versions":[">= unspecified, < 1.2.2"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2025-03-20T17:54:54.693634Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2025-6903","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-mintplex-labs-anything-llm-cve-2024-8249","parents":[{"from":"CVE-2024-8249","to":"CVE-2024-8251","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["server/utils/middleware/embedMiddleware.js"],"commits":["https://github.com/mintplex-labs/anything-llm/commit/548da9ade30368289c5beaf0a8ee2ed2b5c1d81c","https://github.com/mintplex-labs/anything-llm/commit/334fd9cdd02ad4aa6a3c9bdfc95e7764651c13f4"],"basis":"rarely changed file"}]}]}}