vibecheck
CRITICALAccess Control

Supabase service_role key in client-accessible code

The Supabase service_role key bypasses all Row Level Security policies and grants full database access. Exposing it in client-side code or a NEXT_PUBLIC_ variable gives any visitor unrestricted access to every table.

HOW VIBECHECK DETECTS THIS

vibecheck clones your repository and runs Gitleaks, Semgrep, njsscan, and a suite of custom checks targeting patterns common in AI-generated code. This check is part of the Access Control category. When a matching pattern is found, Claude triages the finding and produces a plain-English explanation and a concrete fix — no security expertise required.

FREE SCAN

Check your repo for this and 50+ other issues

Connect GitHub → vibecheck scans for secrets, unauthenticated routes, RLS gaps, injection, and more. Claude explains every finding. Free for 2 repos.

scan my repo for free →

MORE IN ACCESS CONTROL

Supabase RLS disabledCRITICALUnauthenticated API routesHIGHMass assignment (req.body spread into DB)HIGHCORS misconfiguration (wildcard / reflected origin)HIGH
← all vulnerability guides