beforemerge-supabase-review
Fail
Audited by Socket on Mar 15, 2026
1 alert found:
Obfuscated FileObfuscated Filerules/security/sec-service-role-exposure.md
HIGHObfuscated FileHIGH
rules/security/sec-service-role-exposure.md
The advisory correctly identifies a CRITICAL misconfiguration: invoking createServiceRoleClient() in request handlers or server actions that operate on user-controlled input leads to a complete RLS bypass and therefore high-severity privilege escalation and data-exfiltration risk. The examples and recommended mitigations are accurate. Action: audit the codebase for any use of createServiceRoleClient/service_role in request-handling code paths, remove or justify such usage, replace with an RLS-respecting server client, or ensure a robust explicit admin/trusted-caller check before invoking service-role operations.
Confidence: 98%
Audit Metadata