beforemerge-supabase-review

Fail

Audited by Socket on Mar 15, 2026

1 alert found:

Obfuscated File
Obfuscated 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
Analyzed At
Mar 15, 2026, 05:34 AM
Package URL
pkg:socket/skills-sh/BeforeMerge%2Fbeforemerge-skills%2Fbeforemerge-supabase-review%2F@82ee7f038894a976c17bd4dec724a47fcdc01ab2