Lovable apps: open Supabase tables exposed passports
Crissy Field found Lovable apps serving private Supabase data without login. What happened, what's fixed, and the release check for AI-built apps.
Picture a freelance designer who built a ticket shop for a friend's food festival in Lovable last spring. They described the app, connected Supabase, added a sign-in screen and clicked publish. Then they tested it the way most of us test our own work. Log in, buy a ticket, check the confirmation, log out, confirm the orders page bounces to sign-in. It looked private. What they never tested is what the database returns to someone who skips the page and sends requests with the key that ships inside the browser.
That gap is what Crissy Field measured, working with the German business daily Handelsblatt. The firm examined 159,041 Lovable projects and found passport details, private chat messages and ticket orders with payment information readable without logging in. This is not a launch. It is a failure mode with numbers attached. For anyone shipping AI-built apps on Supabase, it becomes a release check you can run this week.
What it is
The study, per Crissy Field's English report (Nov 2, 2026), used the Common Crawl web archive to find 159,041 Lovable projects from December 2025 to September 2026. Of those, 34,545 used Supabase. The firm says it focused on Supabase because the integration is relatively easy to analyze and, in its view, the most widely used database service among Lovable projects. The funnel:
- 24,664 sites sent Supabase records as soon as the page loaded, with no login or interaction. Crissy Field notes that alone is not a security issue, since the data may be meant for public display.
- With further read-only requests using the same API key, the researchers retrieved more database content. They found records containing email addresses in 10,560 tables across 7,403 sites, or 30% of the 24,664.
The documented cases are the part that matters for anyone handling customer data. They include a German lifestyle forum exposing more than 80,000 profiles and over 200,000 chat messages, and event organizers and restaurants exposing tens of thousands of ticket and food orders with phone numbers, postal addresses, payment information and ticket codes. There was also a property manager's AI-generated summaries of internal emails, more than 1,000 identity-document records including passport numbers, and in one case 280,000 emails sent to a provider's customers. Crissy Field says it could not establish whether any of it had been misused.
The mechanism, as PrivacyAffairs explains it (Nov 14, 2026): Supabase lets a web page talk to the database directly, using a key that sits in the page's code where anyone can see it. What keeps strangers out is Row Level Security (RLS), a set of database rules. Supabase's guidance is to switch it on for every exposed table. Where it's off or the rules are too loose, the public key opens the table. Nobody broke into Lovable. As PrivacyAffairs puts it, the apps' databases "simply answered anyone who asked."
Crissy Field's argument for why this matters beyond one app is about repetition. Lovable's database integrations follow recurring patterns, so an approach that works against one app may work against others with little extra effort. Users without a technical background also have a harder time spotting the flaw.
Two platform changes landed around the report, according to PrivacyAffairs:
- Supabase, on Oct 30, 2026, stopped making new tables reachable through its public API automatically. New tables now need an explicit grant. Per PrivacyAffairs' reading of the changelog, existing tables "keep their current grants and stay reachable."
- Lovable, on Nov 12, 2026, began asking people who publish on its built-in backend with unresolved critical security findings to review them first. They can still choose "publish anyway". Only Enterprise workspaces can block publishing outright. PrivacyAffairs doesn't say whether the prompt covers Supabase-connected projects like the ones the study measured.
On alternatives: this story is a study, not a product, so there's no competing launch to weigh. We have no fetched pages for third-party scanners. The DEV Community post republished from AgentConn names several security review tools, but we can't give trade-offs for them from their own documentation. The real choice is among three kinds of check the sources describe:
- Lovable's Deep scan in the Security view. It's free but not automatic, and it only helps if you run it.
- Supabase's Security Advisor, which flags tables. It can help identify some configuration problems but doesn't replace testing your own access rules.
- Your own allow/deny tests with two test users and an anonymous session. These are the most work, and the only check that shows what your app returns for the cases you test.
Who it's for
Pick this up now if you have a live Lovable app on Supabase that stores anything personal: sign-ups, orders, bookings, messages, uploads. The same goes for any Supabase app, whoever or whatever wrote it, that queries the database from the browser. The DEV Community checklist post makes the point that the questions apply to any app. Consultants and agencies who built apps for clients belong here too. PrivacyAffairs notes that if personal data was exposed, the law treats it as the operator's breach, not Lovable's.
Skip the urgent part if your app has no database, or only serves data that is meant to be fully public and contains nothing about individuals. You should also skip it if all database access already runs through server code you control and have tested. Even then, read Before and after once. The "public listing backed by a whole table" pattern is easy to fall into.
This also applies to the vibe coding to vibe engineering shift. We read this as a sign that many of these apps were only checked through the interface: the preview worked, so they shipped. That is exactly the gap a release gate is for.
Before and after
Before, a release checked only through the interface (our sketch):
- Describe the app in Lovable and connect Supabase.
- Click through the preview while signed in and confirm features work.
- Check that private pages redirect to sign-in when logged out.
- Publish. An app nobody touches again isn't checked again.
The failure: step 3 tests the interface, not the data boundary. In the words of the DEV Community checklist, if a database API still returns another user's rows to a request carrying only a public client key, "the data boundary is open regardless of what the UI displays."
After, the same release with a gate:
- Write a data map: every table, view, storage bucket and server function, with intended readers and writers.
- Turn on RLS for every exposed table holding non-public data. Set grants and write a policy per operation.
- Run Lovable's Deep scan and Supabase's Security Advisor, and fix flagged tables, starting with personal data.
- Run allow-and-deny tests as anonymous, User A and User B.
- Recheck the deployed app in a clean private browser window, inspecting the network responses.
- Repeat after significant changes, as Crissy Field recommends. Bring in a professional review before real customer data goes in.
Try it
Only run these checks against your own project, with test data and authorized access. The DEV Community guide says plainly: never probe someone else's app or database. Lovable's Deep scan is free, per PrivacyAffairs. The other checks use Supabase's own tools and SQL. The cost is mostly your time.
Step 1: run the scans you already have. In Lovable, open the Security view and run the Deep scan. Then open Supabase's Security Advisor and work through every flagged table. Confirm no service role key sits in the front end. That is PrivacyAffairs' recommended order. Expect a list of tables. Treat anything holding emails, orders or messages as first priority.
Step 2: classify each table. Following the DEV Community guide, label each resource as public by design, user-private, organization-scoped or privileged. For our hypothetical festival shop, that might mean the event list is public, orders are user-private, and refunds are privileged. Don't treat a table as public just because the app displays some of its rows. A public listing may need a small view instead of the whole table.
Step 3: lock down a private table. The guide gives this ownership example for a notes table with a user_id column. It is copied as published. The author warns it's an example, not a drop-in policy, and team sharing or moderation needs different rules:
-- turn RLS on, then strip the default grants before re-granting
alter table public.notes enable row level security;
revoke all on table public.notes from anon, authenticated;
grant select, insert, update, delete on table public.notes to authenticated;
create policy "Users read their own notes"
on public.notes for select
to authenticated
using ((select auth.uid()) = user_id);
create policy "Users add their own notes"
on public.notes for insert
to authenticated
with check ((select auth.uid()) = user_id);
create policy "Users update their own notes"
on public.notes for update
to authenticated
using ((select auth.uid()) = user_id)
with check ((select auth.uid()) = user_id);
create policy "Users delete their own notes"
on public.notes for delete
to authenticated
using ((select auth.uid()) = user_id);
The revoke line matters. The guide notes that, per Supabase's docs, adding policies does not revoke existing broad grants. Grants and policies are separate controls. Also check views: the guide says Supabase notes views can bypass RLS by default depending on how they're created.
Step 4: test denial, not just access. Create two test users with seeded records. The guide says Supabase supports SQL tests under supabase/tests/, run with:
supabase test db
Cover the cases the guide lists. An anonymous user cannot read a private note. User A can read and update their own note. User A cannot read, update or delete User B's note. User A cannot insert a note claiming User B's user_id. A test suite that only proves User A can read User A's row is incomplete.
Step 5: check the deployed app. Open a private window with no session and load the public pages with the network panel open. You should see no private records in any response before login. Sign in as User A, replay the app's own request with User B's test record ID, and expect denial or an empty response. Treat a failure as a release blocker, then fix, deploy and rerun.
Step 6: tell your agent. Here's our example of an instruction for a CLAUDE.md or project rules file, based on the practice above:
Our example: "Any new Supabase table must ship in the same change as: RLS enabled, explicit grants for anon and authenticated, one policy per operation, and
supabase/tests/cases proving an anonymous user and a second user are denied. Never put the service role key in client code. If a table is meant to be public, say so in the migration and expose only the needed fields."
The AgentConn post on DEV Community suggests a similar "minimum viable security prompt". Its author also warns the model "may hallucinate the policies". That's why Steps 4 and 5 exist.
Where it breaks
The numbers have stated limits. Crissy Field says the 30% figure should not be read as a confirmed leak rate. Email addresses can be public contact addresses or test data, and the method misses personal records without one. The figure applies only to the 24,664 sites examined closely, and the Common Crawl sample is not representative of all Lovable apps. Enterprise DNA repeats both caveats. The firm also downloaded only parts of datasets, so affected data may be larger. It did not examine Lovable's own database features, introduced in late 2025. Crissy Field says similar misconfigurations may occur there, but that remains untested.
What's still open. No independent party has reproduced the scan, as far as our research found. We found no comparable study of Bolt, v0 or Replit, so the sources don't support ranking Lovable against other builders. That includes the AgentConn author's claim that every AI code generator shares this weakness. We also found no direct Lovable statement on this study. PrivacyAffairs reports that Lovable told Handelsblatt this is a known industry-wide configuration problem. PrivacyAffairs also reports that Lovable disputed the 2025 CVE-2025-48757 on the same pattern, on the grounds that customers are responsible for their app's data.
The fixes don't reach existing exposure. According to PrivacyAffairs, Supabase's change covers new tables and Lovable's covers new publishes on its built-in backend. An app leaking on Oct 29 still leaks unless someone fixes it. PrivacyAffairs also reports that Handelsblatt said the data had been reachable for at least a year. The AgentConn post says Lovable has launched automated penetration testing. We couldn't confirm that from a Lovable source.
Scanners aren't proof. Crissy Field states that automated checks are no substitute for a professional security assessment. The DEV Community guide says not to accept "the scanner passed" as proof the deployed boundary works. Your tests also only cover the paths you think to test. Edge functions using a privileged key need their own caller checks.
Treat some secondary claims with care. The AgentConn post cites broad industry statistics and describes earlier Lovable incidents in 2026. Those aren't corroborated by the other sources here, so we haven't relied on them.
The legal cost is yours. PrivacyAffairs notes that under the General Data Protection Regulation (GDPR), an operator has 72 hours from becoming aware of a breach to report it, unless the breach is unlikely to put people at risk. High-risk cases, such as ID documents or payment details, also require telling the people affected. If your app holds EU data and failed Step 5, that clock may already matter. Get qualified advice rather than relying on a news summary.
Sources
- Lovable: Many Apps Built on the Platform Expose Sensitive Data · crissyfield.de
- Lovable app data exposure reported — Enterprise DNA · Enterprise DNA
- Lovable Apps Data Exposure: What's Fixed and What Isn't · PrivacyAffairs
- 24,664 Lovable Apps Were Leaking. No Hack Needed. · DEV Community
- Your AI-Built App Works. Can Strangers Read Its Database? · DEV Community