Can strangers read your app's database? How to check in five minutes
If you built with Lovable and Supabase, there is one setting that decides whether your tables answer anyone who asks — here is how to find out which way yours is set.
ON THIS PAGE
Can strangers read my Lovable app's database?
Yes, it is possible, and it is common. In apps built with Lovable and Supabase, the browser asks the database for data directly, so your login screen does not block outsiders. A single per-table protection setting does. If it is switched off, that table answers anyone who asks.
Why can anyone reach the database at all?
When you build with Lovable and it sets you up with Supabase, your app does something a traditional app does not. There is no middleman server checking who is asking for what. The browser talks to the database directly, and the key it uses to do that ships inside the code your app sends to every visitor.
That key is meant to be public. It is not a password, and it being visible is not the problem. The problem is what comes next: with that key, someone can ask your database for data without going through your login screen at all.
Think of your login screen as a door in a wall. The database sits outside the wall. What keeps people out of each table is one setting on that table — row-level security, meaning a rule that decides which person is allowed to see which rows. When it is off, the table answers strangers.
How do I check if mine is on?
Do these three things, in this order. You do not need to understand what you are looking at — you only need to see whether a list comes back empty.
- Open the Table Editor in SupabaseYou will see your tables listed — profiles, users, orders, whatever your app made. Next to each name, Supabase shows whether protection is on. Any table where it says protection is disabled is a table that answers strangers. Write those names down.
- Run the built-in health checkSupabase has a page called Advisors, with a Security tab. It runs automatically and lists problems in a table. The finding you are hunting for is worded roughly as a table being publicly accessible with row security disabled. In plain terms: protection is off, so anyone with your project's address can read, edit and delete rows.
- Check it from the outside, the way a stranger wouldOpen your live app, right-click, choose Inspect, and open the Network tab. Refresh and watch the requests go by. You will see your app asking Supabase for things. Copy one of those requests and run it logged out, in a private window. If data comes back when nobody is signed in, strangers can read it.
Why does this happen so often?
You did not misconfigure anything. The default did. In March 2025, a developer named Matt Palmer found this in a Lovable-built site and then went looking for how widespread it was.1
What was reachable was not trivial: names, email addresses, financial information, and secret keys for AI services that would let a stranger run up charges on the owner's account.2 In the app that started it, the contact details of several hundred people who had used it were visible to anyone.
Read the official wording again and notice the word write. Not just read.4 Lovable disputed the finding, taking the position that each customer is responsible for protecting their own app's data.5 However you feel about that, it is the practical situation you are in.
Lovable later shipped a built-in security scan, and it is worth running. But know its limit: it checks whether the protection is switched on. Switched on is not the same as switched on correctly. A table can have protection enabled with a rule attached that says, in effect, allow everyone — and that passes.
Why does it still leak after I turn it on?
There is a second trapdoor underneath the first. Supabase's own documentation notes that on existing projects, a new table starts with read, insert, update and delete already granted broadly, and that adding rules later does not take those permissions back.9 So if the instructions you followed only added a rule, you may not be finished.
Separately from the database, your app may be shipping a key that is not safe to be public. A security firm called Escape scanned several thousand publicly reachable apps built with these tools, most of them on Lovable, and reported more than four hundred exposed secrets, noting that Supabase service keys were often trivially retrievable from the code sent to browsers.6
The ordinary public key is fine to be visible. The service key is the one that ignores every rule you have written. If you ever pasted a key into your app's code because something was not working, go find out which one it was.
What should I do if the answer is yes?
Do not delete anything and do not panic-prompt your way through it at one in the morning. Turn protection on for the affected tables first, starting with anything holding people's identities — the users or profiles table, then anything with payment or contact details.
Turning it on is instant, and yes, it may break parts of your app until the rules are written. That is the correct order. A broken feature is recoverable; a copied customer list is not.
Then write rules that say each person can only see their own rows, and test them with two real accounts as described above. You can ask Lovable to do it, but verify it yourself in Supabase afterwards. You are checking the work, not doing it.
Turn on row-level security for every table in my Supabase project that holds user data, starting with the users and profiles tables. For each one, add a policy that lets a signed-in person read and write only the rows that belong to them, and nothing else. List every table you changed and the exact policy you added to each, so I can check it in the Supabase dashboard myself.
If data was genuinely exposed and you have users in the EU or UK, there are notification duties with short clocks on them. That is a question for someone qualified, not for a blog post and not for a chat window.
What does this check not cover?
Running the check once tells you about today. It tells you nothing about the deploy you make next Tuesday, when a prompt changes a table and the rule that was protecting it quietly stops applying. Nobody solves that by remembering to look.
It also helps to separate two worries that get mixed up, because they have completely different answers.
| The worry | Where you find out | How often you have to look |
|---|---|---|
| Can a stranger read my users' data? | Supabase Table Editor and Advisors, plus your own two-account test | By hand, after any change that touches your data |
| Is my app actually working right now? | Something watching it from outside, or your users telling you | Continuously — this is the part worth handing off |
That second row is what Fomio does. You paste a link, it watches the app from outside, and it tells you one of three things: Working, Having trouble, or Down. When something breaks it explains in plain English what likely went wrong, by email, and on the paid plans it writes a prompt you can paste straight into the tool you built with.
The free plan watches one app, checks every five minutes, keeps a week of history and needs no card. Builder watches three, checks every minute and adds the fix prompts. Pro watches fifteen and adds a status page your users can look at. Current prices are on fomio.ai/pricing.
Being straight with you: Fomio will not tell you whether a stranger can read your database. It is not a security scanner and does not pretend to be. Today's check is a thing you do by hand, in Supabase, with two browser windows.
Questions people also ask
Go do it now. Open the Table Editor, open Advisors, run the two-account test. Five minutes, and then you know.
WHERE THIS COMES FROM
- Statement on CVE-2025-48757 — Matt Palmer, 1 May 2025
- CVE-2025-48757 — Matt Palmer, 1 May 2025
- CVE-2025-48757 — Incorrect Authorization in Lovable — Positive Technologies vulnerability database, 1 January 2025
- CVE-2025-48757 — Vulnerability-Lookup (CIRCL), 30 May 2025
- The hottest new vibe coding startup Lovable is a sitting duck for hackers — Semafor, 29 May 2025
- It turns out that sites created with 'Lovable'… have a security flaw — GIGAZINE, 2 June 2025
- Lovable app security issues: an afternoon checklist — Zeroic, 1 October 2025
- Your Vibe-Coded App Might Be Leaking User Data. Here's How to Lock Down Supabase in 30 Minutes — DEV Community, 1 October 2025
- Supabase Row Level Security: Fix Data Leaks in Lovable Apps — DEV Community, 1 October 2025
- Row Level Security in Lovable apps: why your database might be public — DEV Community, 1 August 2025
- Six Ways a Lovable App Leaks Data Before You Even Launch — Vibemastery, 1 August 2025
