"Vibe coding" (describing an app to an AI tool and letting it write the code) has made it possible for anyone to build a working product in a weekend. We think that's genuinely good. More founders can test an idea before spending money on it.
The risk is that "it works when I click through it" and "it's safe to put real customers on it" are different tests, and the AI tools mostly check the first.
What went wrong in 2025
In March 2025, security researcher Matt Palmer reported a flaw in apps built with Lovable, a popular AI app builder. Many generated apps stored data in Supabase without proper row-level security, the database rule that says "users can only see their own rows". A follow-up scan found 303 exposed endpoints across 170 projects. Because these apps ship a public key in the browser, anyone could query the database directly, without logging in, and read names, emails, phone numbers, payment status and even API keys. The issue is recorded as CVE-2025-48757.
Lovable added a security scan afterwards. But the pattern isn't specific to one tool. It's what happens when the code that matters most for safety is the code nobody reads.
Five checks before real users arrive
1. Can one user see another user's data? Make two test accounts. Log in as the first and try to open the second's records, by changing an ID in the address bar or calling the API directly. If you can, stop.
2. Is every database table protected? On Supabase or Firebase, every table holding personal data needs access rules that are switched on and actually restrict access. A rule that exists but allows everything doesn't count.
3. Are any secrets in the browser? Open the browser's developer tools, look at the page source and network requests. Payment secret keys, AI API keys and admin tokens must only ever live on a server. A public "anon" key is fine; a secret key is not.
4. What happens when someone sends junk? Submit forms with empty fields, very long text and odd characters. Every input should be checked on the server, not only in the form.
5. Can you recover? Know where your backups are, how to restore one, and how to revoke and replace every key if one leaks.
When to bring in an engineer
If the app takes payments, stores health, financial or children's data, or will be used by more than your friends, have someone experienced review it before launch. It's usually a few days of work, far cheaper than a breach notice. In India, from May 2027 the DPDP Rules require reasonable security safeguards and a 72-hour breach report.
We're happy to review an AI-built app, keep what works and fix what doesn't. Send it over.
Sources: Lovable vulnerability explained (Superblocks) · CVE-2025-48757 (cvefeed)
Comments
No comments yet.