Open your Lovable app logged out, query each Supabase table with the public anon key, and turn on Row Level Security with owner-only policies for anything that comes back

Crissy Field: 7,403 Lovable sites returned tables with email addresses to anyone, no login needed · Security incident · Crissy Field GmbH · crissyfield · Nov 2, 2026

What happened

Hamburg security firm Crissy Field GmbH found 159,041 Lovable projects in Common Crawl data (December 2025 to September 2026); 34,545 used Supabase, and 24,664 of those sites sent Supabase records as soon as they loaded, with no login. Further read-only requests with the public key found records with email addresses in 10,560 tables across 7,403 sites. Cases they downloaded include a German lifestyle forum with more than 80,000 profiles and more than 200,000 chat messages, event and restaurant ticket and sales records, and a service provider exposing more than 1,000 identity-document records with passport numbers. Handelsblatt first reported it on 2 November 2026. The researchers say the 30% figure is not a confirmed leak rate, and that they could not establish whether any data was misused.

How to prevent it

Treat the Supabase anon key as public: enable RLS on every table in the public schema, write per-operation policies tied to auth.uid(), revoke grants the anon role doesn't need, and test every table as a logged-out visitor and as a second user before you publish.

Fix prompt for your own AI tool

Copy this into your own AI tool (Cursor, Lovable, Claude Code, Bolt…). It's general guidance written by us. Review what the AI suggests before applying it.

My app uses Supabase (or Firebase) and I built it with Lovable. Please check whether my database is open to anyone. 1) List every table and storage bucket and whether Row Level Security (or security rules) is enabled. 2) For each table, explain who can read and write it now, in plain English. 3) Propose the minimum policies so users only see their own rows, public content is read-only, and plan, role or credit columns can't be changed by users. 4) Give me the SQL or rules to apply, and a test with two accounts and a logged-out browser. Don't use or ask for the service_role key. Don't change anything until I've approved your plan. Never ask me to paste API keys, passwords or .env contents; tell me where to check them myself.

Why this keeps happening: open database rules

Apps built on Supabase or Firebase talk to the database straight from the browser with a public key. Without row-level security or security rules, anyone with that key can read or change every row.

A quick checklist before you ship

More on this: every open database rules story and our related guide.

Tools involved

Lovable stories, Supabase stories

Related stories

Source: original post on Crissy Field GmbH ↗. Summarised in our own words; numbers are as stated by the source. Browse all stories.

The Honest Build. Real stories, not hype.

Every week: real stories of what building with AI actually took, the one lesson worth keeping, and the security slip-ups to avoid. Free, unsubscribe anytime. Weekly, every Friday.