Guide
Is my Lovable app leaking data? How to check in 5 minutes
Short answer: if your app talks to Supabase from the browser, anyone can reach the same API your front end uses. That is normal. What keeps private data private is Row Level Security (RLS) plus the right grants. You can check your own live app in about five minutes: open it signed out, watch the requests it makes, and look at whether the responses contain other people's information. "RLS is enabled" is not the finish line.
This is a check you run on your app, in a private window, as a signed-out visitor. It is not a way to probe other people's sites.
What a November 2026 study actually found
In November 2026 the Hamburg security firm Crissy Field published research, produced with the German newspaper Handelsblatt, into how well Lovable-built apps protect data.¹ ² Using Common Crawl, they identified 159,041 Lovable projects from December 2025 to September 2026. 34,545 of those used Supabase.
Of that Supabase group, 24,664 sites sent database records as soon as the page loaded, with no login and no further click. Crissy Field is clear that this alone is not a security issue: the data may be meant for public display, like a published catalogue or a blog.¹
They then made further read-only requests with the same public API key the site already used, and found records containing email addresses in 10,560 tables across 7,403 of those 24,664 sites (30%).¹ They also describe serious individual cases: a forum with more than 80,000 profiles and 200,000 chat messages left readable, ticket and food-order records, contracts and invoices, and in one case more than 1,000 identity-document records, including passport numbers.¹
They also say what the 30% figure is not. Some email addresses may be public contact details or test data; personal records with no email were not counted; the Common Crawl sample is not representative of every Lovable app; and they could not tell whether any of the data had been misused. In their words, "The 30% figure should therefore not be read as a confirmed data leak rate."¹ The English report also notes that it presents a more recent analysis and updated figures than the Handelsblatt article.¹
Lovable's terms place responsibility for an application and its data on the customer who built it. Handelsblatt put the findings to Lovable.¹ ²
This is not a new class of bug. CVE-2025-48757 (May 2025) already documented Lovable-generated projects exposing data, including emails and payment status, through missing or insufficient RLS.³ The useful response is still the same: test your own app as a stranger, then fix policies and grants. A longer fix list is in our Supabase RLS launch checklist.
Why this happens in vibe-coded apps
Tools like Lovable often generate a front end that calls Supabase directly with a publishable (formerly anon) key. Supabase states that this key is public: anyone can read it from your site's code.⁴ That is fine as long as RLS and grants decide what each request can see.
Two mistakes show up again and again:
- RLS is off, or a table was created in SQL and never got it. Supabase's own docs say a table in an exposed schema without RLS is readable and writable by any role with a grant on it.⁵
- RLS is on, but the policy is too loose. A policy such as
using (true)orauth.uid() is not nullcan pass a "does a policy exist?" check and still hand data to the wrong people. The first lets any signed-out visitor read every row. The second lets any signed-in user read every row, including other people's.⁵
You do not need to attack your database to find this. You only need to look at what your own app already fetches when nobody is logged in.
The 5-minute check
Do this on the live URL customers will use, not only on a Lovable preview. Use a private (incognito) window so you are definitely signed out.
1. Open your app as a stranger (about 1 minute)
- Open a private window.
- Visit your live site. Do not sign in, and do not use a saved session.
- Click around the way a first-time visitor would: the homepage, any dashboard or list that appears without a login, and any "view" or "open" buttons that work while signed out.
If the app forces a login before it shows anything, still leave the private window open and continue with step 2. Some apps fetch data in the background before the login screen appears.
2. Watch what the browser already requests (about 3 minutes)
- Open DevTools → Network (in Chrome: right-click the page, Inspect, then the Network tab).
- Tick Preserve log, then reload the page and repeat the clicks from step 1.
- Filter the request list for
supabase. You are looking for calls to your project, usually a host like*.supabase.coand a path under/rest/v1/. - Click each of those requests and open the Response (or Preview) pane.
Ask one question of each response: would I be happy for a stranger to see this?
A "yes, that's fine" response is public content: published posts, a public product list, a marketing FAQ.
A "this needs a fix" response is anything that looks like another person's data: email addresses, phone numbers, names with accounts, order or ticket details, chat messages, invoices, uploads, or internal notes. If a signed-out visitor can see a list of users or a table of orders, treat that as a leak even if the numbers are small.
If you see no Supabase requests at all, your page may be static, or it may load data only after login. Sign in as a test user in a second window, create one obvious row (for example a uniquely named test record), sign out, and repeat the signed-out check. Then, still as a test, sign in as a different test user and see whether you can open the first user's record by visiting it directly. That second pass is how you catch "any logged-in user can read every row" policies.
3. Confirm it in the Supabase dashboard (about 1 minute)
This is the dashboard half of the same check, using only what Supabase already shows you:
- In Table Editor, look at every table in an exposed schema (usually
public). Each table should show RLS as on. If a table that holds private data has RLS off, turn it on before you do anything else.⁵ - Open Security Advisor (under Observability / Advisors) and read every finding instead of dismissing it.⁶
- For tables with RLS on, open the policies. If a private table has
to anonwithusing (true), signed-out visitors can read every row.⁵ That is right for genuinely public content. It is wrong for users, orders, messages, or anything with an email address in it.
If you want the full fix list after this check — grants, one policy per operation, views, storage buckets, and secret keys — use the pre-launch RLS checklist.
What this check does not cover
- Writes. This walk-through only looks at what a signed-out visitor can read. A separate, careful test is needed before you conclude that anonymous users cannot insert or update rows. Do not "test" writes against live customer data.
- Views and storage. Views can bypass RLS unless they are set up to respect it, and Storage buckets have their own policies.⁵ The 5-minute pass will not always surface those.
- Secret keys in your JavaScript. If a
service_roleorsb_secret_key has ended up in the browser, RLS will not save you, because that key bypasses RLS.⁴ Searching the live page and its scripts for those prefixes is a different check, and this guide walks through it.
FAQ
The page loads some data when I am signed out. Is that automatically a leak? No. Crissy Field makes the same distinction.¹ Public content is allowed to be public. It becomes a problem when the rows include personal or business data that should only be visible to the right signed-in user.
I turned on RLS. Am I done? Not by itself. A policy still has to restrict which rows each role can see. Test signed out, then as a second user, as in step 2.
Is it safe that my Supabase key is visible in the site's code?
Yes, if it is the publishable (or legacy anon) key and RLS and grants are set correctly. That key is designed to be public.⁴ What it can and can't do is covered separately. The secret / service_role key is never safe to expose.⁴
Can a free scanner do this for me?
Only if it actually tests what a signed-out visitor can read from your database. Our free Quick Check does not do that test. It is a look-only scan of what your URL already exposes in the page and its files: leaked secret keys, Stripe test mode on a live site, exposed .env or .git files, leftover localhost addresses, risky CORS settings, pages that break on refresh, and security headers. Every finding includes a prompt you can paste into Lovable, Bolt or Cursor. The logged-out database test is part of the $49 Launch Check, and we only run it when you give permission. We never ask for your database password or keys, and we do not keep rows.
Want a second pair of eyes? The $49 Launch Check tests, with your permission, whether anonymous visitors can read your tables, looks for exposed keys on your live site, and gives you a prioritised, plain-English fix list with copy-paste prompts for Lovable, Bolt or Cursor.
Sources
- Crissy Field, Lovable: Many Apps Built on the Platform Expose Sensitive Data (English report; the authors note it has updated figures compared with the newspaper article): https://www.crissyfield.de/research/lovable-en/
- Lina Knees, Handelsblatt, "Lovable: Hat die beliebte KI-Coding-Plattform ein Sicherheitsproblem?" (article dateline 3 November 2026; Crissy Field refers to the report date as 2 November 2026): https://www.handelsblatt.com/technik/ki/lovable-hat-die-beliebte-ki-coding-plattform-ein-sicherheitsproblem/100264923.html
- Matt Palmer, CVE-2025-48757 (29 May 2025): https://mattpalmer.io/posts/2025/05/CVE-2025-48757/
- Supabase docs, API keys: https://supabase.com/docs/guides/getting-started/api-keys
- Supabase docs, Row Level Security: https://supabase.com/docs/guides/database/postgres/row-level-security
- Supabase docs, Advisors: https://supabase.com/docs/guides/observability/advisors