</>RescueMyRepoFree scan

// guide · Lovable · Supabase · Nov 3, 2026

Is your Lovable app one of the 7,403? Check that your Supabase data isn't readable without a login

Short answer

A study published Nov 2, 2026 found records with email addresses readable without logging in on 7,403 Lovable-built sites. Nobody broke in: the tables were reachable with the app's public key and Row Level Security was off or too loose. Open your app logged out and watch the rest/v1 requests, run Supabase's Security Advisor, then enable RLS with owner-only policies on every table that holds user data.

What the study found

Crissy Field GmbH, working with Handelsblatt, analyzed 159,041 Lovable projects from Common Crawl (December 2025 to September 2026). 34,545 used Supabase. 24,664 sent Supabase records as soon as the page loaded. Using further read-only requests with the same key, they found records containing email addresses in 10,560 tables across 7,403 of those sites (Crissy Field report).

Examples in the report include a forum with more than 80,000 profiles and 200,000 chat messages, event and restaurant sales records with phone numbers and payment details, a property manager's AI summaries of tenant emails, and more than 1,000 passport records. The authors note the 30% figure isn't a confirmed leak rate and that they couldn't tell whether any data was misused.

Why it happens

Lovable apps usually talk to Supabase straight from the browser using the public anon (publishable) key. That key is supposed to be public (Supabase API keys). It's only safe when Row Level Security is on for every exposed table and the policies limit each user to their own rows (Row Level Security). A table with RLS off, or with a “read for all users” policy, can be read by anyone who copies the key out of the page.

Check your own app in 5 minutes

-- Run in the Supabase SQL editor: public tables with RLS turned off
select c.relname as table_name
from pg_class c
join pg_namespace n on n.oid = c.relnamespace
where n.nspname = 'public' and c.relkind in ('r','p')
  and not c.relrowsecurity;

-- Policies that let anyone read (look for USING (true) on anon or public)
select tablename, policyname, roles, cmd, qual
from pg_policies
where schemaname = 'public' and cmd in ('SELECT','ALL')
  and (qual = 'true' or roles @> array['anon']::name[] or roles @> array['public']::name[]);

Fix it without breaking the app

Turning on RLS with no policies blocks everything, so enable it and add policies in the same migration:

-- One migration per table that holds user data
alter table public.orders enable row level security;

create policy "owners read their rows" on public.orders
  for select to authenticated using (auth.uid() = user_id);
create policy "owners insert their rows" on public.orders
  for insert to authenticated with check (auth.uid() = user_id);
create policy "owners update their rows" on public.orders
  for update to authenticated using (auth.uid() = user_id) with check (auth.uid() = user_id);

-- Remove any blanket "anyone can read" policy on that table
-- drop policy "Enable read access for all users" on public.orders;

For data that really is public (a product list, published posts), keep a read policy but select only the columns the page needs. Never move the service_role key into the browser to make errors go away: it bypasses RLS entirely.

Tell your AI coding tool

Paste this into Lovable, Bolt, Cursor or Claude Code:

Audit this Supabase project for data readable without login.
1. List every table in the public schema the app queries with supabase.from(), and whether RLS is enabled in the migrations.
2. Flag tables with RLS off, and policies that use USING (true) or grant SELECT to anon/public on tables holding personal data (emails, phones, addresses, messages, payments, documents).
3. For each, enable RLS and add owner-scoped policies (auth.uid() = user_id) for select/insert/update/delete in one migration. Keep public only what is meant to be public, and select only the needed columns there.
4. Make sure the service_role key is never used in browser code.
5. Add a test: signed out gets no private rows, and user B cannot read user A's rows.

Check your repo automatically

If your Lovable project is synced to GitHub, RescueMyRepo's free scan reads your Supabase migrations and code and flags tables without RLS, policies that let anyone read or write, login-only policies, public views that skip RLS, and leaked keys, with a fix prompt for each. It reads your repo only; it never touches your live database.

Scan my repo freePublic GitHub repos · no signup · about a minute

FAQ

What did the Crissy Field study find?

Crissy Field GmbH, with Handelsblatt, analyzed 159,041 Lovable projects found in Common Crawl (December 2025 to September 2026). 34,545 used Supabase, and 24,664 sent Supabase records as soon as the page loaded. With further read-only requests using the same public key, they found records containing email addresses in 10,560 tables across 7,403 of those 24,664 sites. The authors say the 30% figure is not a confirmed leak rate, since some emails may be public contacts or test data.

Was Lovable or Supabase hacked?

No. The data was readable because tables were reachable with the app's public key and had no Row Level Security, or had policies that let anyone read. Anyone who opens the site can get that key from the page, which Supabase documents as expected: it is only safe when RLS protects every exposed table.

Is my Supabase anon key a secret?

No. The anon or publishable key is meant to be in the browser. What protects your data is Row Level Security and correct policies. The service_role or secret key is the one that must never be in front-end code, because it bypasses RLS.

How do I check my own app quickly?

Open your site in a private window while logged out, open DevTools, go to the Network tab and filter for rest/v1. Any request that returns rows you would not show on a public page is a problem. Then run the Security Advisor in the Supabase dashboard, and test with two accounts that account B cannot read account A's rows.

Will turning on RLS break my app?

Turning on RLS with no policies blocks all access through the public API, so features will stop working until you add policies. Add owner-scoped policies (for example auth.uid() = user_id) in the same migration, then test signed out, as user A and as user B.

Sources