AppInspected

Fix guides

Is your Lovable app one of the 24,664 that showed data to strangers? How to check.

Last reviewed December 1, 2026 against the providers' current documentation.

The short version

The researchers didn't hack anything: they used the public key every visitor's browser gets and asked each app's Supabase database for records. If a table has Row Level Security off, or a policy that lets everyone read, it answers. Test your own app the same way, logged out, table by table. Anything that comes back with real data needs RLS and an owner-only policy today.

Why it matters

German security firm Crissy Field checked 159,041 Lovable projects published between December 2025 and September 2026 (found through Common Crawl). 34,545 used Supabase, and 24,664 of those returned database records to a visitor who wasn't logged in. On 7,403 sites, further read-only requests returned records with email addresses, across 10,560 tables. Examples in the reporting include more than 80,000 profiles and 200,000 chat messages from one forum and over 1,000 identity records from one service. The researchers say the 30% figure is not a confirmed breach rate and the sample isn't representative of all Lovable apps; Lovable's built-in database was not part of the study. No list of affected apps was published, so the only way to know about yours is to test it.

Fix it, in this order

  1. Find your Supabase project and its public key

    Open your published app in a private window, open DevTools, go to the Network tab and reload. Click a request to <project-ref>.supabase.co and copy the project URL and the apikey request header. That key is the anon or publishable key; it is public by design and every visitor already has it. (The free check below also names the Supabase project your app talks to.)
  2. Ask each table for data, logged out

    For every table in your Supabase Table Editor, run this from your own computer, against your own project only:
    curl "https://<project-ref>.supabase.co/rest/v1/<table>?select=*&limit=1" \
      -H "apikey: <public key>" \
      -H "Authorization: Bearer <public key>"
    [] or a permission error is good. A real row from a table with users, messages, orders, documents or anything personal means a stranger can page through the whole table. This is the same kind of read-only request the researchers sent. No terminal? Paste the project URL, the public key and your table names into our free Supabase RLS checker: it sends the same signed-out request from your browser with limit=0, so it shows how many rows each table would hand over without showing any of them.
  3. Find the cause in SQL

    In the Supabase SQL Editor:
    -- tables with Row Level Security off
    select tablename from pg_tables
    where schemaname = 'public' and not rowsecurity;
    
    -- policies that let everyone in
    select tablename, policyname, cmd, roles, qual, with_check
    from pg_policies
    where schemaname = 'public'
      and (qual = 'true' or with_check = 'true');
    The first list has no protection at all. In the second, a select policy with true on private data is as open as no RLS. A policy for authenticated with true is open too if anyone can sign up.
  4. Check file storage

    Run select id, public from storage.buckets; A bucket marked public serves every file in it to anyone with the link. ID photos, contracts and invoices don't belong in one; make it private and serve files with signed URLs.
  5. Close it

    For each open table: turn RLS on, take back grants the app doesn't need, and add one policy per operation that limits rows to their owner, for example using ( (select auth.uid()) = user_id ). Step-by-step SQL is in our Supabase RLS guide. Then run Lovable's Security scan and repeat the logged-out test from step 2 until every private table returns nothing.
  6. If real data was readable, treat it as exposed

    You can't prove nobody read it. Look at your Supabase API logs for requests you don't recognise (how far back they go depends on your plan), write down what was open and since when, and decide whether to tell your users. If you have users in the EU or UK, data protection law may require reporting a personal data breach to the regulator within 72 hours of becoming aware of it; get advice if you're unsure.

Or ask your AI tool to do it

Paste this into Lovable, Bolt, Cursor, Claude Code or whichever tool built your app. Review what it changes before you deploy.

Researchers recently read data from thousands of Lovable apps on Supabase without logging in, because tables had Row Level Security off or policies that allowed everyone. Audit this project for the same problem before changing anything: 1) List every table in the public schema with its RLS status, its grants to anon and authenticated, and every policy with its role and condition. Flag tables with RLS off, policies using true on private data, and authenticated policies that any new sign-up would pass. 2) List storage buckets and whether they are public. 3) For each table, say which pages read or write it and who should be allowed to see each row. Then write one migration that enables RLS on every table, revokes all from anon and authenticated, grants back only what the app uses, and adds one policy per operation limited to the row owner with (select auth.uid()). Only data that is meant to be public may use using (true), and only for select. Never use the service_role or secret key in frontend code. Finally, give me a curl command per table to confirm a logged-out visitor gets no rows.

How this happens

A Lovable app talks to Supabase straight from the browser with a public key, so the database rules are the only thing between a visitor and the data. When a feature doesn't work because a rule blocks it, the quickest change that makes the error go away is to switch RLS off or add a policy that says true. The app then works for you and for everyone else, and nothing on screen tells you.

See what your app shows strangers

The free check reads your published Lovable app the way a stranger would: it names the Supabase project your app talks to and flags a service_role or secret key in your JavaScript, exposed files and missing headers. It does not test your tables; the free <a href="/supabase-rls-checker">Supabase RLS checker</a> (signed out) and the $19 report's database tests (signed in) do.

Topic check: Lovable security check

Test your database, not just your code

The free check can only see your code. The website security report can add database tests: with test accounts you create, it checks whether a stranger or another signed-in user can read data they shouldn't. It also covers up to 30 pages and 40 JavaScript files, exposed files, headers and libraries, with the fix for each finding.

$19 once, including 20 runs over 30 days so you can fix things and check again.

Get the report, $19 See an example report

Example report header: a score out of 100, findings by severity, Download PDF and Email me this report.

Questions

Was Lovable hacked?

Not according to the reports. The researchers sent read-only requests with the public key that every visitor's browser receives. The exposure came from database access rules in the apps' own Supabase projects: Row Level Security missing or too open.

How do I know if my app was in the study?

No list of apps was published. The study covered Lovable projects published between December 2025 and September 2026 that appeared in Common Crawl, so it's safer to assume yours could have been. The logged-out test above tells you whether your data is readable today, which is what matters.

Is my Supabase anon key leaked? Should I rotate it?

The anon or publishable key is meant to be public, so rotating it doesn't fix anything; a stranger gets the new one from your site. Fix the rules. Only the service_role or sb_secret_ key must never be in your app; if it is, see Supabase service_role key exposed.

Doesn't Lovable's Security scan catch this?

Lovable's scans review database rules, such as tables without RLS and rules that allow everyone, and you should run them. They look at the project at the time of the scan; changes made later, or in Supabase directly, need a new scan. A logged-out test against the live app is a quick second opinion.

Can AppInspected test my tables?

Yes, two ways. The free Supabase RLS checker tests what a signed-out visitor can read: you paste your project URL, public key and table names, your browser asks Supabase for a row count per table, and nothing passes through us. The free site check doesn't test tables; it names the Supabase project your app uses. Whether signed-in users can read each other's rows needs real accounts: the $19 website security report adds optional read-only database tests where you create two test accounts and a test record, and it checks whether a signed-out visitor or the other account can read it.

Sources

Related guides