Database access rules on every table
Does every table holding user data have row-level security (RLS) turned on, with policies that check who owns the row?
Why it matters
Without access rules, anyone holding your public API key can read the table straight from the browser. A scan of 30,998 live vibe-coded apps found 57% of reachable Supabase-backed apps allowed unauthenticated table reads. CVE-2025-48757 (May 2025) found 170 of 1,645 Lovable apps with inadequate RLS.
Source: Reeve scan, Aug 2026 (vendor data) · LockShipCheck it yourself
- Supabase: open the Table Editor. Any table flagged "RLS disabled" or "Unrestricted" is a fail.
- Open the Policies page (under Authentication or Database, depending on your dashboard version). A policy whose condition is just
truelets everyone in. - Not on Supabase? Find where your API checks the logged-in user before each query. No check means fail.
auth.uid() or a role checked on the server.›Prompt for any AI tool
Check 1: database access rules. List every table in my database. For each table, tell me: 1. Is row-level security (RLS) enabled? 2. What policies exist for SELECT, INSERT, UPDATE and DELETE, and what does each one allow? 3. Does each policy limit rows to their owner (for example user_id = auth.uid()) or to a role checked on the server? Flag as Blocks launch: - Any table holding user or business data with RLS disabled. - Any policy whose condition is just true, or that lets the anon role read private data. - Any UPDATE policy that lets a user change the owner column (user_id) or their own role. - Any view or database function that bypasses RLS (security definer) and is callable from the browser. For each issue, write the SQL that would fix it, but do not run it.
Can't answer this confidently? That's what the Launch Check covers.