Guides / Lovable data exposure
Is your Lovable app leaking data? Three checks to run today
November 2026 research found thousands of Lovable apps whose databases answered strangers. Here is why it happens, and three checks that tell you in under 30 minutes whether yours is one of them.
Quick answer
Is my Lovable app leaking data?
It may be, if it uses Supabase and a table has no row level security. Research published in November 2026 found 7,403 Lovable sites with tables holding email addresses that their own public key could read. Run Supabase's Security Advisor, read every policy that allows everyone, and look at your app signed out with the browser's Network tab open.
Key takeaways
- Researchers checked 159,041 Lovable projects; 24,664 sent database records to the browser on page load.
- Exposed cases included 200,000+ forum messages and 1,000+ records with passport numbers.
- The Supabase key in your app is public by design. Row level security is what protects the data.
- Three checks: the Security Advisor, every policy that allows everyone, and your app viewed signed out.
- A scan finds the common gap; a review before real customer data finds the rest.
What the research found
Crissy Field, a Hamburg security firm working with the German business paper Handelsblatt, looked at Lovable projects found in public web crawls from December 2025 to September 2026. The write-up reached 1,011 points on Hacker News on 14 November 2026.
From 159,041 Lovable projects to exposed records
Among the cases they describe:
- A lifestyle forum exposing more than 80,000 profiles and more than 200,000 chat messages.
- A service provider exposing more than 1,000 records with passport numbers, expiry dates and nationalities.
- Event and restaurant apps exposing tens of thousands of ticket and food sales records.
The researchers describe the cause only as access control mistakes, and did not publish how to reach the data. They checked by making read-only requests with the same key the app itself uses in the browser.
Why an app can do this
A Lovable app that uses Supabase talks to the database straight from the visitor's browser, with a key that is public by design: anyone can read it from the page. Supabase's own documentation is clear that this is safe only when row level security is turned on for each table, with rules that say who may read and change which rows. If a table has no such rules, or a rule that lets everyone read, the public key opens it to anyone.
The same public key, two different apps
Without row level security
- Any visitor can list every row in the table
- Changing a user ID in the request shows another user's data
- The app looks fine: it only shows you your own data on screen
With row level security
- Each request only returns rows the signed-in user may see
- Anonymous visitors get nothing from private tables
- Supabase's Security Advisor stops flagging the table
Three checks you can do today
- Run the Security Advisor. In the Supabase dashboard, open Advisors > Security Advisor. Every warning that row level security is disabled on a table in the public schema is a table anyone may be able to read. Fix those first.
- Read every policy that says
true. In Authentication > Policies, a SELECT policy whose rule is justtruelets everyone read the table. For data that belongs to a user, the rule should compare the row's owner withauth.uid(). - Look at your app as a stranger. Open it in a private window without signing in, open the browser's developer tools, and watch the Network tab while pages load. If requests to
supabase.coreturn other people's emails, orders or messages, so would anyone else's. Also check that theservice_rolekey never appears in the front end, and that storage buckets with private files are not public.
You can see which tables have row level security switched on with one query in the SQL editor:
select tablename, rowsecurity
from pg_tables
where schemaname = 'public'
order by rowsecurity, tablename;
-- rowsecurity = false: this table has no row level security
A scan is a start, not a review. The researchers say the same: automated checks do not replace a security assessment before an app handles real customer or business data. The checks above catch the most common gap; they do not test your sign-in, file uploads or admin pages. The launch security checklist covers the rest.
Related guides
- Security checklist for vibe-coded apps
- Deploying a Lovable app on AWS
- How to stabilize an AI-built app
- The CTO's guide to apps staff build with AI
What to do this week
- 5 minOpen Supabase, run the Security Advisor and list every table without row level security.
- 15 minRead every policy that allows everyone, and fix the ones on user data.
- 10 minOpen the app signed out and check what the Network tab returns.
- 1 hourWork through the launch security checklist before real customers sign up.
Want the checks done for you, with fixes?
Book a 30-minute callSources
Checked on 5 December 2026. Prices and product names change; the linked pages are the reference.
How I help
I review Lovable and other AI-built apps before real customers arrive: database rules, sign-in, keys and hosting, with the fixes made in your own accounts.
- Launch review: the database rules, keys, sign-in and storage checked, with a written list of fixes.
- Fix and move: the fixes made, and the app moved to your own AWS or Azure if you want it there.
- Operate: from $4,999 per month, monitoring and changes.
Done by a Claude Certified Architect and Certified Lovable Expert. Everything stays in your accounts.
Questions
Are Lovable apps safe?
They can be. The exposures found in 2026 came from database access rules, not from Lovable being unsafe in itself. An app whose Supabase tables have row level security with correct policies does not hand its data to strangers.
Is the Supabase anon key a secret?
No. It is meant to be public and is visible in every visitor's browser. It is safe only when row level security protects each table. The service_role key is the secret one and must never be in the front end.
How do I check if my Lovable app exposes data?
Run Supabase's Security Advisor, read every policy whose rule allows everyone, and open the app signed out with the browser's Network tab to see what the database returns.
What did the November 2026 Lovable research find?
Crissy Field checked 159,041 Lovable projects. 24,664 sent database records on page load, and 7,403 had readable tables with email addresses. The researchers say that is not a confirmed leak rate.
Is Lovable Cloud affected too?
The research looked only at apps using Supabase. The same rule applies to any database the browser talks to directly: the access rules decide who can read what.
Start with a conversation
Thirty minutes, no charge. Tell me what you have built and where it stopped. If I am not the right person, I will say so and point you somewhere better.
Calendar not loading? Open the booking page or email me.