Home / Guides

Is my Lovable app leaking data?

A recent audit of Lovable apps found many cases of data readable without a login. The figures as the report states them, why it happens, and how to check your own project.

Updated 2026-11-16 · ShipCheck guides

A recent audit of apps built with Lovable found many cases where personal and confidential data was accessible without logging in. The work was done by the Hamburg firm Crissy Field, with the German newspaper Handelsblatt, using Lovable projects found in the Common Crawl web archive from December 2025 to September 2026. The figures, as the report states them:

They are careful about that last number. An email might be a public contact or test data, and this method also misses personal records with no email. They say the 30% figure should not be read as a confirmed data leak rate, and that their sample is not representative of all Lovable apps. Some posts have treated the 34,545 Supabase projects as "leaked apps." That is not what the report says.

What they did confirm is serious enough: a lifestyle forum that exposed more than 80,000 profiles and more than 200,000 chat messages, and a service provider that exposed more than 1,000 records with passport numbers. They could not establish whether any of the data had been misused.

Why this happens

Lovable apps usually talk to Supabase straight from the browser. To do that, the app ships two values to every visitor: the project URL and the anon key (newer projects call this the publishable key). Both are meant to be public, and anyone can copy them from your page.

The key is not what protects your data. Grants decide whether a role may read or write a table at all. Row Level Security (RLS) policies decide which rows that role may touch. If a table has RLS turned off, or a policy that allows everyone (for example using (true) on private data), your login screen is decoration. A stranger can request the table with only the public key.

How to check your own app

Do these steps only on a project you own.

  1. In the Supabase dashboard, open Database → Tables. Any table in the public schema marked "RLS disabled" is unprotected.
  2. Open Advisors → Security Advisor. It flags tables without RLS and policies that are too open.
  3. Test the API the way a stranger would, using only your public key and a logged-out request:
    curl "https://YOUR-PROJECT.supabase.co/rest/v1/YOUR_TABLE?select=*&limit=5" \
      -H "apikey: YOUR_PUBLISHABLE_OR_ANON_KEY"

    A good result is an empty list, or a permission error. A bad result is real rows of private data. If you use a legacy anon key and get a 401, add -H "Authorization: Bearer YOUR_ANON_KEY". Do not do that with the newer publishable keys; they are not JWTs.

  4. Check storage buckets. Public buckets are fine for marketing images. Invoices, ID scans, and private uploads should live in a private bucket, with policies on storage.objects, and be served through signed URLs.
  5. Search your frontend and git history for the Supabase service_role key (and the newer sb_secret_ keys). These bypass RLS completely and must never appear in browser code or in variables like VITE_… or NEXT_PUBLIC_…. If one leaked, rotate it under Project Settings → API, then update only your server-side code.

How to fix it

Enable RLS on every table in an exposed schema, then write per-user policies:

alter table public.notes enable row level security;

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

Add matching insert, update, and delete policies with with check so a user cannot create or reassign a row for someone else. For data that really is public, a read-only using (true) policy on select is fine. Just don't put that on private tables.

Run the logged-out request again after you change the policies. For grants, views, and storage policies, see our Supabase RLS checklist.

A complementary check, not a substitute

I made ShipCheck, a free pre-launch scanner at tryshipcheck.com. It fetches your live page and the JavaScript it ships, and flags leaked secrets (including a Supabase service_role JWT), publicly downloadable .env or .git files, missing HTTPS and security headers, and broken link-preview images.

It does not test Row Level Security, and it does not try to read your database. It also does not yet detect the newer sb_secret_ key format, so search for that by hand. A clean ShipCheck score does not mean your tables are private. Do the dashboard and logged-out checks above for that, then run a free scan for the things it does catch.

Scan your app free

Paste your live URL or public GitHub repo. ShipCheck checks for leaked keys, committed .env files, missing security headers, HTTPS issues and slow pages, then gives you copy-paste fixes. No signup.

More guides

Supabase Row Level Security (RLS) checklist for vibe-coded apps

Your Supabase anon key is public by design, so RLS is what protects your data. Enable RLS on every table, write auth.uid() policies, lock down storage, keep service_role server-side and test with a logged-out request.

Is my Lovable app secure?

How to check whether your Lovable app is secure: Supabase Row Level Security, exposed keys, security headers, auth and storage. A step-by-step checklist with fixes.

Exposed .env file or API key? How to check and rotate

How to find leaked API keys and committed .env files in your repo, JavaScript bundle or live site, rotate them safely, and stop it happening again.

The vibe-coded app launch checklist

A practical pre-launch checklist for apps built with Lovable, Cursor, Bolt, v0 or Replit: security, secrets, database rules, performance, SEO, legal and monitoring.