prisma-7
Audited by Socket on Aug 7, 2026
2 alerts found:
AnomalySecurityNo clear signs of supply-chain malware (no backdoor/persistence, no credential theft, no suspicious outbound traffic beyond the intended AI provider). However, the implementation as shown has substantial security risks in a multi-user setting: GET /api/messages appears to expose all stored messages to any caller, and POST /api/chat accepts a client-controlled session id used directly for upsert/write without shown authorization/ownership checks (IDOR/cross-session tampering risk). Additionally, JSON.parse on stored content can cause availability issues if stored data is malformed.
No overt supply-chain malware indicators (obfuscation, persistence, exfiltration) are present in this fragment. However, the POST endpoint functions as an unauthenticated remote database query execution proxy by accepting arbitrary body.query and passing it directly to the Prisma executor against DATABASE_URL, then returning results and serialized errors to the caller. This is a high-impact security risk (confidentiality/integrity) if the endpoint is reachable by unauthorized users or exposed via permissive CORS.