Verdict: If your Lovable-built (or any vibe-coded) app stores data in Supabase, treat its database as exposed until you test it. The check takes about 15 minutes and needs only the Supabase dashboard plus one read-only curl command against your own project. On November 14, 2026, the Hamburg security firm Crissy Field — working with the German business daily Handelsblatt — reported that of 159,041 Lovable projects it found in the Common Crawl web archive, 34,545 used Supabase and 24,664 served database rows on page load with no login required. The 15-minute test below reproduces exactly that check on your own project, safely and read-only.
Why 24,664 Lovable apps matter
Crissy Field did not hack anything: the team used public Common Crawl archives of apps online between December 2025 and September 2026. Of the 24,664 Supabase-backed sites that returned rows on load, they made further read-only requests with the same public anon key the page already exposes and found email addresses in 10,560 tables across 7,403 websites — 30% of the sites examined in depth (Crissy Field). The firm explicitly cautions this is not a confirmed leak rate: some addresses may be public contact data, and the Common Crawl sample is not representative. The exposures it chose to disclose are more concrete: a service provider serving more than 1,000 records with passport numbers, expiry dates and nationalities, and a German lifestyle forum exposing 80,000+ profiles and over 200,000 chat messages. Lovable responded that this is a known, industry-wide configuration problem around Supabase, not a flaw in its AI code generation — and its terms of service place security responsibility on the customer while its marketing promises an easy all-in-one service. That gap between promise and responsibility is the story.
What actually broke: anon key plus missing Row Level Security
Every Lovable Supabase app ships its database URL and a public "anon" key inside the JavaScript bundle — by design, not a defect. The browser uses that key for every request, and Postgres Row Level Security (RLS) policies are the line between "visitors can read published posts" and "visitors can read every user profile row". Supabase's own docs describe RLS as the mechanism that controls row access at the database level. In the audited apps, that line was missing: generated projects frequently shipped tables with RLS disabled or with policies that let the anon role read everything.
The same pattern extends past Lovable. Security firm UpGuard examined about 300,000 Supabase-linked domains and found readable tables on 16,326 databases, more than half showing signs of personal data. Bolt.new and Vercel's v0 also attach apps to Supabase, and Replit and Cursor generate complete backends — so this is a generator-plus-Supabase configuration issue, not one vendor's bug. It is also a repeat: a similar Lovable data exposure became public in 2025 as CVE-2025-48757.
The 15-minute check: is your app one of the exposed?
Run this only against a project you own. Three steps, about 15 minutes total.
Step 1 — find your keys (2 minutes). Open your deployed app, press F12 for DevTools, and search the page source for "supabase". Every Lovable Supabase bundle contains the project URL and the anon key. Note the URL — you need the dashboard next.
Step 2 — the read-only test (5 minutes). Open the Supabase dashboard, copy the project URL and the anon (public) key, and run one command with them substituted in:
curl "https://YOUR-PROJECT.supabase.co/rest/v1/YOUR-TABLE?select=*&limit=1" \
-H "apikey: YOUR-ANON-KEY" \
-H "Authorization: Bearer YOUR-ANON-KEY"
- HTTP 200 with a data array — anonymous reads work. Your table is exposed to anyone with the bundle key. This is fine only if the rows are meant to be public anyway.
- 401, 404 or an empty result — protected; move on.
This is exactly the test Crissy Field ran at scale, and it is read-only: a select with limit=1 cannot modify anything.
Step 3 — fix it if it returns 200 (8 minutes). In the dashboard: Database → Policies shows whether Row Level Security is enabled per table. Enable RLS on every table, then write explicit policies — the default with RLS on is deny-all. Give public read to tables that are meant to be public (for select using (true)), and restrict user-owned rows to their owner. One rule outranks everything else: never place the service_role key — which bypasses RLS entirely — in frontend code. Re-run the curl command after the change; the expected result is now a 401 or a policy-filtered empty result.
| Test result | Meaning | Action |
|---|---|---|
| 200 + rows | Anon reads work | Enable RLS, add policies, re-test |
| 200 + empty | RLS on, no public policy | Fine if intended; else add a policy |
| 401 / 404 | Protected | Nothing to do |
What this changes about vibe coding
If you build with Lovable, Bolt.new, v0 or Replit, the audit changes the definition of "done": an app is done when its database passes the 15-minute test, not when the preview looks right. That same verify-first rule is why the Cursor data breach pushed privacy-mode verification into the mainstream and why security research on coding agents — like the Codex untrusted-folder trust model — keeps finding the gap between what tools promise and what they enforce. The audit's structural point is simpler than any one tool: code generation produces a working frontend regardless of what the database allows, so the security state of the database is invisible until someone test-reads it. For secrets that must live outside app code entirely — API keys, service tokens — a secrets manager is safer than any env file shipped to the browser; our Bitwarden vs 1Password for Claude Code secrets guide covers the setup. And if you ship AI-built features to real users, the verify-first rollout checklist applies to databases as much as to code.
FAQ
Q: How many Lovable apps exposed data?
A: Crissy Field analyzed 159,041 Lovable projects; 34,545 used Supabase, and 24,664 served database rows on page load with no login. A deeper read-only probe found email-bearing tables on 30% of the sites examined more closely — not a confirmed leak rate. (Details.)
Q: Does Supabase force you to expose your database?
A: No. The anon key in the browser is standard design; Row Level Security policies are the control layer, and RLS must be enabled and configured per table.
Q: Was this a Lovable bug or a Supabase bug?
A: Lovable called it a known, industry-wide configuration problem around Supabase setups; UpGuard's separate scan found readable tables on 16,326 Supabase-linked domains far beyond Lovable. The generator ships the key, but the policy gap is what exposes data.
Q: How do I check my Lovable app in 15 minutes?
A: Grab the anon key from your bundle or dashboard, run one read-only curl against your own project, and if it returns rows, enable RLS on every table and add explicit policies. The full steps are in the section above.
Last verified: November 16, 2026. AI-assisted article, disclosed per how we work.
Top comments (0)