{"id":"CVE-2024-8251","aliases":["CVE-2024-8251"],"related":[],"kind":"vulnerability","state":"published","title":"Prisma Injection in mintplex-labs/anything-llm","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"Una vulnerabilidad en mintplex-labs/anything-llm anterior a la versión 1.2.2 permite la inyección de Prisma. El problema existe en el endpoint de la API \"/embed/:embedId/stream-chat\", donde el JSON proporcionado por el usuario se redirige directamente a la cláusula where de la librería de Prisma. Un atacante puede explotar esto proporcionando un objeto JSON especialmente manipulado, como {\"sessionId\":{\"not\":\"a\"}}, lo que provoca que Prisma devuelva todos los datos de la tabla. Esto puede provocar acceso no autorizado a todas las consultas del usuario en el modo de chat integrado.","source":"nvd"}],"published":"2025-03-20T10:08:48.644Z","modified":"2026-06-17T08:22:12.283Z","severity":{"scorer":"@huntr_ai","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"@huntr_ai","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","score":5.3,"rating":"MEDIUM"}],"cwes":["CWE-89"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"1.2.2","status":"affected"}],"vendor":"mintplex-labs","product":"mintplex-labs/anything-llm","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"1.2.2"}],"vendor":"mintplexlabs","product":"anythingllm","cpe":"cpe:2.3:a:mintplexlabs:anythingllm:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://huntr.com/bounties/7c263ef1-7d50-475a-9425-b15df4e0403c","tags":["exploit","third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/mintplex-labs/anything-llm/commit/334fd9cdd02ad4aa6a3c9bdfc95e7764651c13f4","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"@huntr_ai","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2025-03-20T17:54:54.693Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-8251","url":"https://www.cve.org/CVERecord?id=CVE-2024-8251","licence":"CVE Terms of Use","modified":"2025-10-15T12:49:56.640Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-8251","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-8251","licence":"Public domain","modified":"2026-06-17T08:22:12.283Z"}],"updatedAt":"2026-11-25T22:58:52.394Z","epss":{"score":0.0049,"percentile":0.43765,"date":"2026-12-01T12:00:22.000Z"}}