Skip to content
MediumVulnerability

CVE-2024-8251: anything-llm Prisma injection through /embed/:embedId/stream-chat endpoint

Identifier
CVE-2024-8251
Published
Record updated
View JSON
Fixed in
The source references a patch, a mitigation or a vendor advisory.
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.5%Estimated probability that this CVE is exploited in the next 30 days, from the FIRST Exploit Prediction Scoring System. Read on .

Summary

CVE-2024-8251 affects mintplex-labs/anything-llm before version 1.2.2. The API endpoint "/embed/:embedId/stream-chat" passes user-provided JSON directly into the where clause of the Prisma library. A crafted object such as {"sessionId":{"not":"a"}} causes Prisma to return all data from the table, exposing every user query in embedded chat mode.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.