A security audit of 159,041 projects built on Lovable found 7,403 Supabase deployments leaking user records — including more than 1,000 passport numbers and over 200,000 private chat messages — all reachable from a browser without any authentication. The data was not stolen; it was simply left open.
How it happened
Researchers at Crissy Field discovered that Lovable’s AI generated backend configurations with no row-level security on Supabase tables. Of 34,545 projects using Supabase, 24,664 sent database records on page load without requiring login. The platform prioritised speed of deployment over data protection, and the defaults reflected that trade-off.
What responsible development looks like
The developer chooses the platform, but the platform sets the defaults. When an AI agent configures a database, it should default to private, require explicit opt-in for public access, and warn users when sensitive fields are exposed. Supabase itself offers row-level security — the tools just need to use it by default.
The lesson is not that AI-generated code is dangerous, but that security must be part of the generative contract. Platforms that treat data protection as an afterthought will erode the very trust that makes AI-assisted development viable. The next wave of AI-generated apps will only be trustworthy if the defaults are safe.