Skip to content
VibeMonitor
← What we check
Check 02 · Security

Supabase tables anyone can read (missing row-level security)

Why a Supabase table with no row-level security can be downloaded by any visitor, how to tell if yours can, and how to lock it down.

On the full scan

What it is

Apps built with Lovable, Bolt and similar tools usually store their data in Supabase. Your website talks to the database with a public key that every visitor's browser can see. That is by design.

What keeps data private is a set of rules on each table, called row-level security, that say who may read or change which rows. If a table has no rules, or a rule that allows everyone, anyone holding the public key can read the whole table.

Why it matters

This is the single most common cause of data leaks in AI-built apps. It needs no hacking: the public key and one request are enough to download a users table.

If the table holds names, emails or anything personal, a leak is also a reportable data breach under UK and EU law.

How VibeMonitor checks it

Using only the public key already in your site, we ask your database for one row from each table we can see named in your code. If a row comes back, the table is readable by strangers. We keep the column names and nothing else, and we never write or delete.

This runs on the full scan, which needs a free account and proof the site is yours. We only look this deep at sites their owner has verified. What our scanner does and doesn't touch.

How to fix it

  1. In Supabase, open each table flagged in your report and switch on row-level security.
  2. Add a policy for each thing users should be able to do. The usual one is: a signed-in user can read and change only rows where the user id column matches their own id.
  3. For tables only your server should touch, add no public policies at all and use the service key from server code only.
  4. Check again. The table should now refuse a request made with the public key alone.

A prompt to paste into your AI tool

Works in Lovable, Cursor, Replit, Bolt or Claude Code. When VibeMonitor finds this problem on your site, the report gives you a version with your own details filled in.

Prompt to paste

Some of my Supabase tables can be read by anyone using the public anon key. For every table in the public schema: enable row-level security, then add policies so that signed-in users can only select, insert, update and delete rows that belong to them (match the user id column to auth.uid()). Tables that only server code needs should have no policies for anon or authenticated. Show me the SQL for each table before applying it, and tell me which tables you were unsure about.

Passing this check means we didn't find this particular problem. It isn't a guarantee, and it isn't legal advice. What a clean result means.

Related checks

See if your app has this problem.

Paste your app's address. The quick check is free and needs no sign-up.

Check my app