Disclosure first: I'm Jacob, the founder of Vibe App Scanner. Every number in this post comes from scans run by my own product. Read it as a vendor's data, with the limits I list below.
Between December 17, 2025 and August 4, 2026, Vibe App Scanner ran 1,215 security scans of vibe-coded apps across 1,119 distinct domains. In 359 of those scans the scanner detected Supabase, and 141 of the 359 (39.3%) had a scanner-recorded Supabase row level security (RLS) or data exposure finding.
That does not mean 39% of Supabase apps are leaking. The apps were submitted by their owners, most scans used a quick set of checks, and a finding is what a scanner recorded, not a confirmed breach. The full report, with method and limits, is here.
What I find more useful than the headline is which problems came up most in apps built with AI coding tools, and how you can check for each one yourself in a few minutes. That is the rest of this post.
What was scanned
- The apps were built with AI coding tools like Lovable, Bolt, v0, Cursor and Replit, and were submitted for scanning by their owners. This is not a random sample.
- The scans recorded 10,571 security findings. SEO and accessibility checks are not counted.
- 10.4% of the scans recorded at least one critical finding. 31.1% recorded a critical or high finding.
- 1,007 of the 1,215 scans used the quick check set available at the time.
- The figures are frozen as published in August 2026. They have not been recomputed since, and the report says to treat them as historical scanner output.
What a scan from the outside can and cannot tell you
These were scans of a live URL. That matters for how you read the numbers.
A scan from the outside can see what the deployed app hands to a visitor: a request that came back with rows when nobody was signed in, a key sitting in the JavaScript bundle, a function that answered a call with no login.
It cannot see the policy text in your database. If a read returns rows, that shows the read. It does not show which policy allowed it, whether RLS is switched off or only too broad, or whether your other tables and your other users' rows are protected. A clean result is not proof that the app is safe.
So treat everything below as "this was observed", not "this is the whole picture".
The four findings that came up most
| Finding, as named in the report | Share of the 1,215 scans |
|---|---|
| Publicly readable table (high severity) | 9.8% |
| Exposed secret | 5.4% |
| Unprotected Supabase RPC | 5.0% |
| Missing INSERT policy (Supabase) | 3.1% |
1. A table that anyone can read (9.8%)
The report describes this as "a table that returns rows to an unauthenticated request". It was the single most common Supabase finding.
Illustration, not taken from a scanned app: a request to /rest/v1/profiles?select=* that carries only the app's public key, with nobody signed in, returns a list of users with their email addresses.
The fix is to turn RLS on for the table and add a policy that ties each row to its owner:
alter table public.profiles enable row level security; create policy "Users can view their own profile" on public.profiles for select to authenticated using ( (select auth.uid()) = user_id ); Once RLS is on and there is no policy, the public key reads nothing. Then you add back exactly the access you mean to give.
One thing that changed recently: new Supabase projects no longer give the API roles access to a new table automatically. If a signed-in user gets permission denied for table profiles after you add the policy, the table also needs a grant:
grant select on public.profiles to authenticated; The grant says which role may touch the table at all. The policy says which rows. You need both.
2. An exposed secret (5.4%)
The report defines this as "an API key or credential shipped in client code or a response".
One thing to get straight first. A Supabase publishable key (sb_publishable_...) or legacy anon key is meant to be in the browser. That is not a leak. A secret key (sb_secret_...), a legacy service_role key, or a key for a paid API is a different matter. Supabase's docs say a secret key bypasses Row Level Security.
Illustration: an AI tool wires a payment or AI provider call straight into a React component, and the provider's secret key ends up in a VITE_ or NEXT_PUBLIC_ variable. Anything in those variables ships to every visitor.
The fix: rotate the key now, because you have to assume it was copied. Then move the call into server code or an edge function and keep the key in a server-side secret.
3. A database function anyone can call (5.0%)
The report describes this as "a database function callable by anyone, no auth required". Functions you create in the public schema can be called through the API as /rest/v1/rpc/your_function.
Illustration: a function named something like get_all_orders, written as security definer so it skips RLS, answers a call that carries only the public key.
The fix is to take the right to run it away from signed-out callers, and to check the caller inside the function:
revoke execute on function public.get_all_orders() from public, anon; grant execute on function public.get_all_orders() to authenticated; If the function is security definer, it also needs its own owner check, for example comparing a user_id to auth.uid(), because RLS will not do it for you.
4. A table anyone can write to (3.1%)
The report lists this as "Missing INSERT policy (Supabase)", meaning "anyone can write rows to a table".
Illustration: a contact form or waitlist table accepts inserts from the public key with any values, including a user_id that belongs to someone else.
The fix is RLS on, plus an insert policy with a with check clause:
create policy "Users can insert their own rows" on public.notes for insert to authenticated with check ( (select auth.uid()) = user_id ); On a newer project, add grant insert on public.notes to authenticated; as well, for the same reason as above.
If the table already has a policy that lets anyone insert, drop that policy too. Adding a stricter policy next to it changes nothing, because Postgres accepts the insert when any one permissive policy allows it, and policies are permissive unless you create them otherwise.
One more, with no number attached
The report also calls out a quieter pattern: policies written as "allow any authenticated user" where the intent was "allow the row's owner". If the app also has anonymous sign-ins switched on, "authenticated" covers anyone. Supabase's docs confirm that an anonymous user takes the authenticated role. The report does not publish a count for this one, so I will not put a number on it.
How to check Supabase RLS on your own app by hand
You do not need my product or anyone else's for this. Use your own app, test accounts and test data only.
Test 1: two accounts
- Sign up as User A. In a private window, sign up as User B.
- As A, create something in every feature that stores data: a record, a file, a profile edit.
- As B, look for A's data in the app. You should not see it.
- The app's screens can hide data that the database still returns, so test the request itself. As B, open DevTools, go to the Network tab and filter for
rest/v1. Right-click a request to one of your tables and copy it as cURL. - Paste it into a terminal. Remove any filter such as
user_id=eq.<id>so it asks forselect=*. You should get B's rows only. - Put one of A's row ids into an update or delete request. Then sign in as A and confirm the row is unchanged.
- Try to insert a row with
user_idset to A's id. It should be rejected. - Repeat for every table that holds user data. Do not stop at the main one.
Test 2: the public key with nobody signed in
Find your project URL and public key in the same Network tab. Then ask for a table directly.
If your key starts with sb_publishable_:
curl "https://YOUR-PROJECT-REF.supabase.co/rest/v1/YOUR_TABLE?select=*&limit=5" \ -H "apikey: YOUR_PUBLISHABLE_KEY" If your key is the older kind, a long string starting with eyJ:
curl "https://YOUR-PROJECT-REF.supabase.co/rest/v1/YOUR_TABLE?select=*&limit=5" \ -H "apikey: YOUR_ANON_KEY" \ -H "Authorization: Bearer YOUR_ANON_KEY" How to read the answer:
- Rows come back. Anyone on the internet can read that table. Fine for public content such as published posts. Not fine for user data.
- An empty list,
[]. Either the table is empty or RLS filtered everything out. Add a test row as a signed-in user and run it again before you relax. - A permission error (
permission denied for table ...). The signed-out role has no access to the table at all. This is what a new Supabase project returns for any table you have not granted to the signed-out role.
Supabase's docs put the last two this way: a missing grant returns a permission error, and a policy that matches no rows returns an empty result.
What the built-in checks cover
Run these first. They come with the platforms you already use, and they can see things a scan from the outside cannot.
Supabase Security Advisor. It is in the project dashboard, and also available through the CLI (supabase db advisors). Supabase describes the advisors as deterministic checks that ship with the platform. The security checks include RLS disabled on a public table, RLS enabled with no policy, a policy that is always true, and anonymous sign-ins allowed. It reads your configuration, so it can see the policy itself. What it does not do, going by its documentation, is send requests as different users to see what comes back. It can tell you a policy exists. It cannot tell you the policy matches what you meant.
Lovable's security checks. Lovable runs automatic checks before you publish, covering database security such as row level security and open access rules, plus vulnerable dependencies. Advanced checks review the app's code for problems in sign-in, permissions, private data and keys. Lovable's docs say the checks "can't guarantee that your app is secure or replace a full security review".
Where a behavior test adds something. The built-in checks look at how things are set up. The two tests above, and scanners that probe a deployed URL, look at what the live app returns to a real request. Those are different questions, and you want both answered. Neither one replaces the two-account test on your own data model, because only you know who is supposed to see what.
Limits of this data
- The apps were submitted by their owners. The results cannot tell you how common these problems are across all AI-built apps or all Supabase apps.
- Most scans used a quick check set. Missed issues, false positives and repeat scans of the same domain can all move the figures.
- These are scanner classifications. They are not confirmed breaches.
- The Supabase group was identified from technology detected during the scan, not from what owners told us.
Disclosure, again
I built Vibe App Scanner, which is how I collected this. The report linked at the top has the full method. If you run the two tests above and something surprises you, I am happy to help you read the result in the comments.
