← All insights

AI · 7 min read

Is your Lovable app exposing customer data? How to check in 15 minutes

Apps built with Lovable, Bolt and similar tools usually keep their data in Supabase. If its security rules aren’t set up properly, anyone can read the data without signing in. Here’s how to check yours, without being a developer.

AI app builders such as Lovable, Bolt and Replit have made it possible for anyone to build a working app in an afternoon. Lots of small businesses now run real work on one: a booking tool, a client portal, a quoting app, an internal dashboard.

Most of these apps keep their data in Supabase, a hosted database. Supabase is a good product, but it relies on one thing being set up correctly: the rules that decide who can see which rows of data. When those rules are missing or too loose, the data is open to anyone who finds the app.

This isn’t hypothetical

In 2025 a security researcher checked 1,645 apps from Lovable’s public showcase and found 170 whose data could be read, and in some cases changed, by anyone, without signing in. It was recorded as a security vulnerability, CVE-2025-48757. The official record describes it plainly: attackers who weren’t signed in could read or write any table in the affected apps’ databases.

Lovable has since added security checks that warn about the most obvious problems. That helps, but no tool can know which of your data is meant to be private. That’s a business decision, and it’s yours.

Why it happens

A Lovable app runs mostly in the visitor’s browser. To talk to Supabase, the browser is given a public key, known as the anon or publishable key. That’s normal and safe, as long as Supabase’s row-level security (RLS) rules decide what that key can do.

If a table has no row-level security, the public key can read everything in it. If the rules exist but are written as “allow everyone”, the effect is the same. Because the key is in the browser, anyone can find it, and it takes a curious person a few minutes, not a skilled attacker.

AI builders tend to get this wrong in predictable ways. A table is added late and nobody turns on its rules. A rule is loosened to fix an error (“it works now!”). Or a powerful admin key is pasted into the app to get something working.

Five checks you can do yourself

You need to be able to sign in to your Supabase project. If you don’t know whether you can, that’s finding number one: someone else controls your data.

1. Run Supabase’s Security Advisor

In the Supabase dashboard, open Advisors and choose Security Advisor. It lists tables without row-level security, among other issues. Anything marked as an error deserves attention today.

2. Check every table has row-level security switched on

Open the Table Editor. Supabase labels tables where RLS is disabled. Every table holding anything about customers, staff, money or bookings should have RLS enabled.

3. Read the rules, not just the switch

Go to Authentication and then Policies. RLS being “on” isn’t enough. Look at each rule for tables with personal data. A rule that applies to everyone, or whose condition is simply true, lets every person it covers see every row. Ask yourself: should a customer be able to see other customers’ records?

4. Make sure the admin key isn’t in the app

Supabase gives you two kinds of key. The public one belongs in the app. The secret one, called the service role or secret key, bypasses every rule and must never leave the server. If you’ve ever pasted it into a prompt, or your app has an “admin” feature that works without a server, assume it’s exposed and replace it in the Supabase settings.

The same goes for other secret keys, such as Stripe or OpenAI keys. If the app calls those services directly from the browser, the key is visible to anyone.

5. Check who can sign up

Under Authentication, look at the sign-up settings. If anyone can create an account, then any rule that says “signed-in users can see this” really means “anyone can see this”. For an internal tool or a client portal, sign-up should usually be off, or by invitation only.

What else to look at once the data is safe

  • Backups. Check what your Supabase plan includes, and whether anyone has ever restored a backup to prove it works.
  • Tests. If nothing checks the app automatically, every new prompt can break something that used to work.
  • Changes straight to live. Ideally changes are tried on a copy first. Lovable’s GitHub sync makes that possible.
  • Who has access. Former staff, freelancers and old Lovable collaborators may still have the keys to your data.

If you find a problem

Don’t panic, and don’t delete things. Make a note of what you found, switch on row-level security for any open tables, and replace any exposed secret keys. Enabling RLS with no rules blocks all access through the public key, so the app may stop working until the right rules are written. That’s safer than leaving data open, but plan for it.

If customer data may already have been accessed, you may need to tell the people affected, and the ICO. The ICO’s guidance on reporting a breach explains when.

Want someone to check it for you?

We offer a free health check for AI-built apps. With your permission, we check your Supabase rules, secret keys and sign-up settings, and send you a plain-English report. If anything needs fixing, we’ll give you a fixed price from £500, and you can keep building in Lovable afterwards. See how we rescue Lovable apps, or send us the link.

Tell us what you have. We’ll reply with a fixed price.

Send a link or a few sentences about your system. The assessment is free, and every job starts at £500 plus VAT.