---
title: "Can strangers read your app's database? How to check in five minutes"
description: "A five-minute check that tells you whether your Lovable and Supabase app is handing user data to anyone who asks, and what to do if it is."
url: https://www.fomio.ai/blog/can-strangers-read-your-apps-database-how-to-check-in-five-minutes
published: 2026-11-01T19:00:00.165+00:00
updated: 2026-11-01T19:00:00.165+00:00
topic: supabase
words: 1773
---

# 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.

**In short:**

- Apps built with Lovable and Supabase let the browser talk to the database directly, so your login screen is not what keeps strangers out.
- One per-table setting decides it. When it is off, the table answers anyone who knows your project's address.
- You can check it in three steps, in Supabase and your own browser, without writing code.
- Testing with only your own account proves nothing — you need a second account with data in it.
- This is a check you repeat after any change that touches your data, not a one-time fix.

### 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.

1. **Open the Table Editor in Supabase** — You 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.
2. **Run the built-in health check** — Supabase 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.
3. **Check it from the outside, the way a stranger would** — Open 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.

> **The mistake people make on step three** — If you are the only person who has ever signed up, an empty result proves nothing. Zero rows coming back means nothing until another user's row exists to be leaked. Make a second account with a second email, put a row of fake data in it, then run the test as the first account. If you can see the second account's data, so can everybody.

## 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]

- **10.3%** — Apps in Palmer's scan with inadequate protection settings, finished 21 March 2025 [^2]
- **9.3, critical** — Severity rating given to the logged vulnerability, CVE-2025-48757 [^3]

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.

**Paste this into your AI tool**

```text
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.

*Two different questions about your app, and where each one is answered*

| 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


### Is it dangerous that my Supabase key is visible in my app's code?

The ordinary public key is designed to be visible, so seeing it in your app's code is not itself a problem. What matters is whether each table has protection switched on behind it. The dangerous one is the service key, which ignores every rule you have written. Escape's scan of apps built with these tools reported more than four hundred exposed secrets, with service keys often easy to pull out of the code sent to browsers.[^6]

### Does Lovable's own security scan catch this?

It helps, and it is worth running. But it checks whether protection is switched on, not whether the rule behind it is any good. A table can pass the scan while carrying a rule that effectively allows everyone. Treat the scan as a first pass, then do the two-account test yourself: sign up twice, put data in the second account, and see whether the first account can read it.

### I turned protection on and my app broke. Did I do it wrong?

Probably not. Switching it on blocks everything until you write rules saying who may see what, so features going quiet is the expected middle step rather than a mistake. Leave it on, then add a rule per table letting each signed-in person reach only their own rows. Test with two accounts before you call it done. A broken feature is recoverable; a copied customer list is not.

### How often should I repeat this check?

After any change that creates a table, renames one, or alters how your app reads data. Prompt-driven changes can add a new table without the protection you set up on the old ones, and nothing will tell you. Make the Advisors page and the two-account test part of your routine before you ship, in the same way you would click through your own signup flow.

Go do it now. Open the Table Editor, open Advisors, run the two-account test. Five minutes, and then you know.


## Sources

[^1]: Statement on CVE-2025-48757 — Matt Palmer (2025-05-01). https://mattpalmer.io/posts/2025/05/statement-on-CVE-2025-48757/
[^2]: CVE-2025-48757 — Matt Palmer (2025-05-01). https://mattpalmer.io/posts/2025/05/CVE-2025-48757/
[^3]: CVE-2025-48757 — Incorrect Authorization in Lovable — Positive Technologies vulnerability database (2025-01-01). https://dbugs.ptsecurity.com/vulnerability/PT-2025-23236
[^4]: CVE-2025-48757 — Vulnerability-Lookup (CIRCL) (2025-05-30). https://vulnerability.circl.lu/vuln/cve-2025-48757
[^5]: The hottest new vibe coding startup Lovable is a sitting duck for hackers — Semafor (2025-05-29). https://www.semafor.com/article/05/29/2025/the-hottest-new-vibe-coding-startup-lovable-is-a-sitting-duck-for-hackers
[^6]: It turns out that sites created with 'Lovable'… have a security flaw — GIGAZINE (2025-06-02). https://gigazine.net/gsc_news/en/20250602-loveable-ai-made-service-vulnerability/
[^7]: Lovable app security issues: an afternoon checklist — Zeroic (2025-10-01). https://zeroic.in/blog/lovable-app-security-issues
[^8]: Your Vibe-Coded App Might Be Leaking User Data. Here's How to Lock Down Supabase in 30 Minutes — DEV Community (2025-10-01). https://dev.to/siteory/your-vibe-coded-app-might-be-leaking-user-data-heres-how-to-lock-down-supabase-in-30-minutes-327k
[^9]: Supabase Row Level Security: Fix Data Leaks in Lovable Apps — DEV Community (2025-10-01). https://dev.to/samrat-patel/supabase-row-level-security-fix-data-leaks-in-lovable-apps-418h
[^10]: Row Level Security in Lovable apps: why your database might be public — DEV Community (2025-08-01). https://dev.to/hdevv/row-level-security-in-lovable-apps-why-your-database-might-be-public-mj2
[^11]: Six Ways a Lovable App Leaks Data Before You Even Launch — Vibemastery (2025-08-01). https://vibemastery.io/blog/lovable-app-security-checklist
