Skip to content
LockShip

Guide · Lovable · Supabase · Updated

7,403 Lovable sites left data readable: what happened, and how to check yours in five minutes

Rather check your own app first and read later? Paste its address, prove it’s yours, and the free scan shows you the worst thing a stranger can reach. Run the free scan

If you shipped something with Lovable, this week’s headline probably landed hard. Passport numbers, payment details, 200,000 chat messages, all readable without a login. We had the same first thought you did: is mine one of them? So we read the original report, not the reposts, and wrote down what it actually says, why it keeps happening, and the checks we’d run on our own app tonight. Most of them take a few minutes.

New to this? Start with our vibe coding security checklist. If you want the general Lovable walk-through rather than this incident, read Is my Lovable app secure? Seven checks you can do yourself.

The short version

Crissy Field, a security firm in Hamburg, looked at Lovable apps that use Supabase and found that on 7,403 sites it could read database records containing email addresses, without logging in. Among them were identity document details, ticket and food orders with payment information, and a forum’s private chats. It worked on the findings with the German business daily Handelsblatt, which reported them on 2 November 2026.

Nobody broke a lock. The public key that every visitor’s browser already receives was enough, because the database rules behind it either weren’t there or said yes to everyone. That is fixable in an afternoon, and you can find out whether it applies to you in five minutes.

What Crissy Field found

The research report (also in German) explains the method in plain words. Crissy Field used datasets from Common Crawl, the open web archive, to find Lovable projects. It focused on Supabase because, in its words, the integration is relatively easy to analyse and it believes Supabase is the most used database service among Lovable projects. Then it checked whether data was reachable without logging in: first what each site sent when it loaded, then what further read-only requests with the same API key returned.

159,041Lovable projects they found in Common Crawl, from December 2025 to September 2026
34,545of those used Supabase
24,664sent Supabase records to the browser as soon as the page loaded, with no login
7,403of those 24,664 sites (30%) had tables with records containing email addresses, 10,560 tables in all, which Crissy Field could read with further read-only requests

The report is careful to say that the 24,664 sites sending data on load is not a problem by itself, since that data may be meant to be public. The 7,403 is the number that matters. These are some of the cases it lists:

  • A German lifestyle forum exposed more than 80,000 profiles with full names, email addresses, dates of birth and gender, and more than 200,000 chat messages.
  • Several event organisers and restaurants exposed tens of thousands of records from ticket and food sales, including email addresses, phone numbers, postal addresses, payment information and ticket codes.
  • A property management company exposed AI-generated summaries of internal emails about tenants, property owners and business partners.
  • A service provider exposed more than 1,000 records with identity document details: passport numbers, expiry dates and nationalities.
  • Tens of thousands of contracts, invoices, personal photo albums and internal WhatsApp messages, plus newsletter sign-ups, waiting lists and support requests. In one case, 280,000 emails sent to a provider’s customers.

Read the limits too, because the reposts mostly skip them. Email addresses can be public contact details or test data, and personal records without an email weren’t counted. The report says plainly: “The 30% figure should therefore not be read as a confirmed data leak rate.” The sample comes from Common Crawl and isn’t representative of all Lovable apps. Crissy Field downloaded only parts of each dataset, so the real numbers may be larger. It writes: “We could not establish whether any of it had been misused.” And it doesn’t publish how it got in: “We are not publishing details of how to access them, as doing so could make further access easier.” The report also says its figures are more recent than the ones in the Handelsblatt article, so if you see different numbers quoted, that is probably why.

Handelsblatt’s article, by Lina Knees, says it got tips about the problem in mid-August, checked them, and put them to Lovable. Its summary of Lovable’s answer is short: “Laut Lovable ist das ein branchenweites Problem.” In English, according to Lovable it is an industry-wide problem. The rest of the article is behind a paywall, so we haven’t quoted anything else from it.

Lovable’s position on who is responsible isn’t new. Its security docs say: “You are responsible for ensuring that your app meets the security requirements appropriate for its use case, especially if it handles sensitive data or performs critical functions.” Its terms say of the code its AI writes: “You are solely responsible for reviewing, validating, and using any AI Output”. You can think that’s fair or not. Either way, it means the check is yours to do.

If this feels familiar, it should. In 2025 the same kind of problem got a CVE number. Our CVE-2025-48757 explainer has that story. What’s new here is the scale: Crissy Field’s sample is far larger than the 1,645 projects in that earlier research.

Why it keeps happening

A Lovable app with Supabase usually talks to the database straight from the browser. To do that, the page carries your project URL and a public key. That is normal and documented. Supabase’s API keys guide puts it like this: “The publishable key is taped to the front door, and it only opens the lobby.” Anyone can read that key from your page. What decides what it opens is Row Level Security (RLS), a set of rules inside Postgres that says which rows each request may see or change.

So the question is never whether your key is exposed. It is. The question is what your rules let that key do. Supabase’s RLS docs are blunt: “A table in an exposed schema without RLS is readable and writable by any role with a grant on it.” And for years, a new table in public started out with select, insert, update and delete granted to the signed-out anon role. Supabase’s API security guide lists those defaults and says Supabase is changing them so exposure becomes opt-in, but every table made before your project got that change keeps its grants.

From what we see in AI-built apps, the doors usually open in one of three ways:

  • RLS is off on a table. Often one made later, in the SQL Editor or by a migration, like a waitlist or a contact form. Supabase’s own lint for this says that in that case “anyone with the project's URL can CREATE/READ/UPDATE/DELETE (CRUD) rows in the impacted table.”
  • RLS is on, but a policy says yes to everyone. A select policy with using (true) for anon or public. It often gets added to make an error go away while you’re building, and the page works, so nobody looks at it again. RLS is “on”, the dashboard looks fine, and every row is public.
  • A policy checks that someone is signed in, not who. using (true) for authenticated means any person who creates an account reads every row. If your app lets anyone sign up, that is not much better than the first two.

We can’t tell you which of these Crissy Field ran into, because it doesn’t say. But the method it describes, read-only requests with the same public key each site sends, only ever returns rows the rules allow. Each of those 7,403 sites had at least one table whose rules let a stranger read it.

Check your own app in five minutes

The first two checks are the ones to do right now. They read your database’s own settings and change nothing. The other three take a little longer and catch what the first two can’t.

01

Count what a stranger can read, in the SQL Editor

Open your project in Supabase, go to the SQL Editor, paste this and press Run. It switches to the anon role for this one run, which is what your public key maps to, and counts how many rows that role can read in every table and view. In other words, it asks your database the question Crissy Field asked from outside.

SQL Editor · read-only
-- Read-only. Paste the whole thing into the Supabase SQL Editor and press Run.
-- The first line makes this run as the signed-out role (anon, what your public key maps to),
-- for this one run only. Then it counts the rows that role can read in every table and view in public.
-- Check the counted_as column says anon. If it says postgres, the counts are not a stranger's.
set local role anon;
select c.relname as table_name,
       (xpath('/row/n/text()',
              query_to_xml(format('select count(*) as n from public.%I', c.relname), false, true, '')))[1]::text::bigint
         as rows_a_stranger_can_read,
       current_user as counted_as
from pg_class c
join pg_namespace n on n.oid = c.relnamespace
where n.nspname = 'public'
  and c.relkind in ('r', 'p', 'v', 'm', 'f')
  and has_table_privilege('anon', c.oid, 'select')
order by rows_a_stranger_can_read desc, table_name;

Look at the counted_as column first. It must say anon. The SQL Editor normally runs as postgres, and Supabase’s post on Studio roles says of that role: “It has admin read and write privileges, and bypasses Row Level Security.” If you see postgres, delete the first line and pick anon in the role menu next to Run instead. The same post describes that menu: “You can use the new Role dropdown to select a different Postgres role for your queries in Studio.”

Then read the numbers. A table you meant to be public, like a list of events or blog posts, can have rows here. Anything with people’s names, emails, messages, orders or documents should not appear at all, or show 0. On our test project, before the fix, it printed this:

What it printed on our test project, before the fix
table_name | rows_a_stranger_can_read | counted_as
messages   | 3                        | anon
waitlist   | 3                        | anon
profiles   | 2                        | anon
events     | 1                        | anon
orders     | 0                        | anon

Three of those five are the kind of thing in the report: a waitlist, profiles and private messages, all readable by anyone. The orders line shows 0, which looks fine. It isn’t, and check 5 shows why.

02

Paste the RLS check into our free checker

The count tells you what is open now. Our free Supabase RLS checker tells you why, and what is one edit away from being open. It gives you a read-only query for the SQL Editor that looks only at Postgres’s own settings, never your rows. You paste the result back into the page, and it runs in your browser, so nothing is sent to us. It lists every table with RLS off, every policy that lets everyone through, tables any signed-in user can read in full, and whether new tables in your project still start open.

On the same test project it flagged the waitlist as critical, profiles and messages as high, and said that every signed-in user can read every row in orders. If you prefer to read the SQL yourself, our RLS checklist has the same checks as plain queries. Supabase’s Security Advisor, described in its advisors docs, runs lints like the RLS one above, and Lovable has its own security scan. Run them. Just know they mostly tell you a rule exists, not that it’s the right rule.

03

Look at what your page sends when it loads

Crissy Field’s first step was to look at what sites sent as soon as they loaded. You can do the same. Open your live site in a private window, open the browser’s developer tools, go to the Network tab, filter for rest/v1 and reload. Every request there is a table your page reads before anyone signs in. Click each one and look at the response. If you see other people’s emails, names or orders there, you don’t need any further test. Fix it now.

While you’re in there, look at the key in the request headers. A long key that starts with eyJ and says service_role when decoded, or one that starts with sb_secret_, is a different and worse problem. Stop and follow our service_role key guide.

04

Ask a table for one row, with only your public key

For any table that worries you, ask it directly from a terminal, with only the public key from your page. This is the same kind of request a stranger would make. It asks for one row, so you don’t pull your whole table.

Terminal · read-only
# One row from one table, asked the way a stranger would: only your public key, no sign-in.
curl "https://YOUR-PROJECT.supabase.co/rest/v1/YOUR_TABLE?select=*&limit=1" \
  -H "apikey: YOUR_PUBLIC_KEY"
# [] means no rows for a stranger. A 401 with "42501" means the stranger has no access at all.
# A row with real data in it means anyone can read that table.

Our anon key guide shows how to find table names your code uses and the other doors the same key opens, like database functions you can call.

05

Sign in as a second user and look again

The first four checks are about strangers. This one is about your other users. Make two accounts in your app. Sign in as the first, create something private, then sign in as the second and see if you can see it. In the SQL Editor you can do the same with the role menu: pick authenticated and choose a user.

On our test project, the orders table showed 0 rows to a stranger, but any signed-in user read every order, ticket codes included. In an app where anyone can sign up, that is one sign-up away from public. Event and ticket apps were exactly the kind of site in the report.

Signing up matters here, so check who can do it. Our Auth settings guide covers invite-only sign-ups, email confirmation and anonymous users, which Supabase also treats as signed in.

How to fix it

This is the SQL we ran on our test project. Your table and column names will be different, so read it as a pattern, not something to paste blind. Each block does three things: turn RLS on, take away the grants the browser doesn’t need, and replace the “everyone” policy with one that ties each row to its owner through auth.uid(). We tried it on PostgreSQL 17.11 and 15.19 behind PostgREST 16.5, the server Supabase’s REST API is built on.

SQL Editor · changes your database
-- 1. Waitlist: turn RLS on. Visitors may add an email, nobody reads the list from the browser.
alter table public.waitlist enable row level security;
revoke all on public.waitlist from anon, authenticated;
grant insert (email) on public.waitlist to anon, authenticated;
create policy "Anyone can join the waitlist" on public.waitlist
  for insert to anon, authenticated with check (true);

-- 2. Profiles: each signed-in user reads and edits only their own row.
drop policy "Public profiles are viewable by everyone" on public.profiles;
revoke all on public.profiles from anon;
create policy "Users read their own profile" on public.profiles
  for select to authenticated using ((select auth.uid()) = id);
create policy "Users update their own profile" on public.profiles
  for update to authenticated using ((select auth.uid()) = id) with check ((select auth.uid()) = id);

-- 3. Messages: only the sender and the recipient.
drop policy "Enable read access for all users" on public.messages;
revoke all on public.messages from anon;
create policy "People read their own conversations" on public.messages
  for select to authenticated using ((select auth.uid()) in (sender_id, recipient_id));

-- 4. Orders: your own orders, not everyone's.
drop policy "Signed-in users can read orders" on public.orders;
revoke all on public.orders from anon;
create policy "Users read their own orders" on public.orders
  for select to authenticated using ((select auth.uid()) = user_id);

-- 5. Events are meant to be public: keep reading open, take away writes the browser never needs.
revoke insert, update, delete, truncate on public.events from anon, authenticated;

After it ran, the same count from check 1 printed this:

What it printed after the fix
table_name | rows_a_stranger_can_read | counted_as
events     | 1                        | anon

A stranger asking for a waitlist, profile, message or order now gets a 401 with code 42501, permission denied. Signing up for the waitlist still works. A signed-in user reads only their own orders, profile and conversations, and an update to someone else’s profile changes nothing. Our RLS checker still shows two high findings, the public events and the open waitlist sign-up. We left both on purpose, and the checker shows them so that you decide that, not your builder.

Three things we learned doing this, so you don’t have to:

  • Policies don’t take grants away. Supabase’s RLS docs say so: “Adding policies doesn't remove them.” Revoke what strangers shouldn’t have. Our RLS checklist walks through it.
  • Public tables need care, not just a yes. If a table is meant to be public, make sure every column in it is too. Put the private columns in a separate table. Our checklist’s public data section shows how.
  • New tables start open on many projects. Fixing today’s tables doesn’t fix next week’s. Our anon key guide has how to check and change what new tables get.

If you’d rather ask Lovable to do it

You can paste this into Lovable’s chat. Read the SQL it shows you before you let it run, and do check 1 again afterwards. The AI wrote the first set of rules too.

Prompt for your builder
Please make the database private by default. For every table in the public schema:
1. Turn on Row Level Security if it is off.
2. Remove any policy that lets anon or public read with using (true), unless the table is
   meant to be read by anyone (tell me which tables you think those are and why).
3. Add policies so each signed-in user can only read and change their own rows, matched on
   (select auth.uid()) and the column that holds the owner's id.
4. Revoke select, update and delete from anon on every table strangers should not read.
Write it as one SQL migration, show it to me before you run it, and list every table with
who can read it after the change. Do not change any API keys and do not delete any data.

If your data was readable

This is the part nobody wants to read. If check 1 showed private rows, take a breath. You found it, which is better than finding out from a reporter. Here is the order we’d do things in.

  1. Close it first. Fix the rules as above, then run check 1 and check 4 again until the private tables are gone from the list. Everything else can wait an hour. This can’t.
  2. Write down what was open and since when. Which tables, which columns, how many rows. Then when the table or the policy was created: your migrations, your repo history or your builder’s history will usually tell you. That window is how long a stranger could have read it.
  3. Read your logs, knowing their limits. In Supabase, open Logs, pick the API Gateway type and filter by method GET and the path of the table, like /rest/v1/profiles. Look for addresses you don’t recognise, lots of requests in a row, or requests paging through the table. Supabase’s logs docs are honest about the limits: “Retention depends on your pricing plan.” And: “An empty result does not establish that the user had no activity.” You can download what you find as CSV or JSON. Our service_role guide has SQL for the Logs Explorer if you want to group requests by address and country.
  4. Rotate what was inside the rows, not the public key. A new public key would sit in your page just like the old one. What leaked is the data. If any readable table held secrets, like API tokens, webhook secrets, invite or ticket codes, or reset links you made yourself, replace them. If you found a secret or service_role key anywhere in your page, follow the rotation steps now.
  5. Work out who you need to tell. If you have users in the EU, the European Data Protection Board’s guide for small businesses sums up the GDPR rule: notification to your data protection authority “within 72 hours, unless it is unlikely to result in a risk to individuals”, and telling the people affected without undue delay when the risk to them is high. It also says that even for breaches you don’t report, you must record the basic details, your assessment and what you did. Other countries have their own rules. This isn’t legal advice, and if real personal data was readable, talking to a lawyer or your data protection authority early is worth it.
  6. Tell your users like a person. What was readable, for how long, what you fixed, and what they should watch for, like phishing emails that use their name or order details. People forgive a mistake far more readily than they forgive finding out from somewhere else.

Where LockShip fits

We built LockShip because checks like 4 are easy to forget and boring to repeat after every change, and your builder will happily add a new table next week. You paste your app’s URL and prove you own the domain. The scan then looks at your app the way a stranger would. It finds the Supabase URL and public key in your page, asks Supabase which tables that key can list (hosted Supabase now refuses that list to the public key, so the scan then tries the table names your own code uses with supabase.from(), plus common ones like profiles and orders), and makes read-only requests for at most one row from each. It also looks for secret keys in your JavaScript, tries /.env and /.git, and reads your security headers.

It is just as important to say what it doesn’t do. It never signs in as your users, so it can’t do check 5. It doesn’t count your rows or read your policies from the inside the way checks 1 and 2 do, and it never writes to your database. It can’t read your logs, so it can’t tell you whether anyone took anything. It is a point-in-time, best-effort check, not a penetration test, and a clean result means nothing obvious showed up from the outside right now, not that you’re safe.

The summary is free: a score and the single worst thing we found. The $39 Launch Safe certificate includes every finding with a fix prompt you can paste into Lovable, the RLS SQL, a PDF, and seven days of re-scans while you fix things. A passing re-scan gives you a badge for your site. Monitor, at $9 a month, re-runs the scan every week and emails you once when a new critical or high issue shows up, like a table that just opened up. The pricing page has the details.

Fixed your rules? See what a stranger can still read.

Paste your app’s address, prove you own it, and see what someone with only your public key can reach. The summary is free.

Run a free scan

Before you rely on a result, read the disclaimer.

Questions people ask

Was Lovable hacked?

Nothing in the report says so. Crissy Field describes reading data with read-only requests using the same public key each site already sends to every visitor. That only returns what each app’s database rules allow, so the problem it describes sits in the apps’ own access rules. Lovable told Handelsblatt it is an industry-wide problem, and its terms put responsibility for apps and data on the customer.

Does 7,403 mean 7,403 data leaks?

No, and Crissy Field says so itself. The number counts sites with readable records that contained email addresses. Some of those may be public contact addresses or test data, while personal records without an email address were not counted at all. The report says its 30% figure should not be read as a confirmed data leak rate, and that its Common Crawl sample is not representative of all Lovable apps.

Can I find out whether my app was one of them?

Not from the report. Crissy Field doesn’t publish a list of sites or the way it got in, on purpose. The faster answer is to check your own app today with the steps on this page. If a stranger can read your tables now, assume anyone could have read them for as long as the rule has been like that.

Should I rotate my Supabase anon or publishable key?

It won’t close anything. The public key is meant to be in your page, and a new one would be in your page too, readable by the same strangers. What closes the door is Row Level Security and the grants on each table. Rotate the secret or service_role key only if it ever ended up in your page, a repo or a browser variable, and rotate any secrets that were stored inside the readable rows.

I use Lovable Cloud, not my own Supabase project. Am I fine?

Don’t assume it. Crissy Field says it focused on Supabase, didn’t examine Lovable’s own database features, and that similar misconfigurations may occur there too. Lovable’s security docs say to review your RLS policies regularly, especially before publishing. Run Lovable’s security scan, then do the checks on this page with your project’s database.

I built with Bolt, v0 or Cursor. Does this apply to me?

If your browser code talks to Supabase with the public key, yes, the mechanism is the same. The report only looked at Lovable projects, but nothing about a missing or too-loose RLS policy is specific to one builder. The checks on this page work for any Supabase project.

How we tested this

The SQL on this page ran on a stand-in for a Supabase project: PostgreSQL 17.11 and 15.19 with Supabase’s anon, authenticated and service_role roles, the old default grants, an auth.uid() that reads the request’s token like Supabase’s does, and PostgREST 16.5 in front, with made-up people. We ran the count as one script, with the role switched beforehand as the role menu does, and without the first line, where counted_as showed postgres. We didn’t run it in Supabase’s hosted SQL Editor, and our PostgREST had no Supabase API gateway in front, so the apikey header in check 4 was not part of the test. On a very large table the count can take a while.

Keep reading

Sources

We checked each of these on 3 November 2026. Every figure about the incident comes from Crissy Field’s report. If something here disagrees with the report or with Supabase’s and Lovable’s docs, trust them and tell us at hi@lockship.dev.