Is My Lovable App Leaking Data? What the 159,041-Project Scan Found and How to Check Yours

A Hamburg firm found 24,664 Lovable sites sending Supabase rows without a login. What that means, how to check your own tables, and how to lock them down.

Updated 2026-11-18

What the research found

In November 2026, the Hamburg security firm Crissy Field published research on 159,041 Lovable projects it found in the Common Crawl web archive (December 2025 to September 2026). Of those, 34,545 used Supabase as their database.

24,664 of those sites sent Supabase records to the browser as soon as the page loaded, with no login. By making more read-only requests with the same public key, the researchers found records containing email addresses in 10,560 tables across 7,403 of those sites, about 30% of the ones they looked at closely.

The firm is careful about what this means: some of that data may be meant to be public, some emails may be test data or public contact addresses, and the sample is not representative of every Lovable app. Still, the examples it describes include forum profiles, chat messages, ticket and food orders with phone numbers and addresses, and passport details.

Why it happens

Nobody had to break into Lovable or Supabase. A Supabase app ships its project URL and anon key to every visitor, and that is by design. The only thing that decides whether a stranger with that key can read a table is row level security (RLS) and the policies on that table.

If RLS is off on a table, or a policy lets the anon role read everything, anyone can copy the key from your page and ask your database for rows. The same mistake shows up in apps built with Bolt, v0, Cursor, and plain hand-written code, not just Lovable.

Check your own app in 10 minutes

Do this for the project behind your live site:

  • Open the Supabase dashboard and run the Security Advisor. It flags tables in the public schema with RLS disabled and tables that have policies but RLS turned off.
  • Run the SQL below in the SQL editor to list every public table and whether RLS is on.
  • For each table with RLS on, read its policies. A select policy for anon or public whose condition is just true means anyone can read it.
  • Check views too. A view can skip the RLS of the tables under it unless it is created with security_invoker = true (Postgres 15 and newer).
  • Open your live site logged out, open the browser's developer tools, and watch the Network tab for requests to /rest/v1/. Anything that comes back there is readable by any visitor.
select tablename, rowsecurity
from pg_tables
where schemaname = 'public'
order by tablename;

Lock it down

Turn RLS on for every table in the public schema, then add back only the access you actually want. Signed-in users reading their own rows is the most common pattern. Data that really is public, like a product list, can keep a read-only policy, but keep emails, orders, and messages in tables that only their owner can read.

If you ever put the service_role key in front-end code to make an error go away, treat it as leaked: it skips RLS completely. Rotate it in the Supabase dashboard and move whatever used it to a server-side function.

alter table public.orders enable row level security;

create policy "Owners read their own orders"
  on public.orders for select
  to authenticated
  using (auth.uid() = user_id);

A prompt you can paste into Lovable or Cursor

Paste this into your coding agent, then review every policy it writes before you accept it:

Review every table and view in the public schema of this Supabase project. Turn on row level security for every table. For each table, tell me who should be able to read and write it, then write the narrowest policies that allow only that. Signed-in users should only read and change their own rows unless I say otherwise. Recreate views with security_invoker = true. Never use the service_role key in browser code. List every table, its new policies, and anything you were unsure about.

Quick answers

Is the Supabase anon key in my Lovable app a leak?

No. The anon key is meant to be public. Row level security and your table policies are what protect your data. A service_role key in the browser is a leak and must be rotated.

Did Lovable or Supabase get hacked?

No. According to the research, each affected app's own table rules let anyone with the public key read the data. The fix is in each app's database settings.

Does the research cover Lovable Cloud's built-in database?

No. Crissy Field only analyzed Supabase-backed projects and said similar mistakes may exist elsewhere, but it did not examine Lovable's own database features.

Sources

Check your live app for free

If your live page includes a Supabase project URL and anon key, Freedom Check makes a logged-out read of one row from up to two tables your code names, using only that public key, and reports whether data came back or was blocked. It never writes, never uses a service_role key, and shows column names, not values. It does not list or test every table in your project, so run the SQL check above too. It also flags a service_role key if one is in the page.

The free scan shows how many issues turned up and explains the most serious one with a fix prompt. The full report is $19 one time, or $29/month for unlimited.

Run a free scan →See pricing