Could my app be exposing personal data?
Updated First published
On this page (4)
Symptom
There's no visible error. The app works, but anyone with the link can see or change data that isn't theirs, or a secret key shows up in the code.
Cause
To show you a working app quickly, the AI sometimes leaves the database open, with no rules about who can read what. Everything looks normal on the screen, because the app shows what it should. The problem is what someone with bad intentions can reach from the outside. And if you start getting permission errors after adding security rules, fix the rules instead of removing them: see Database errors in a vibe-coded app. If a new Supabase table fails with “permission denied for table”, don’t fix it by granting access without RLS either: see Supabase “permission denied for table” (42501).
Another common slip is putting a service’s access key, such as an API key, directly in the code that goes to the browser, where anyone can read it. How to keep API keys safe explains where keys should live. If a key you saved in a tool leaked, see what to do after the OpenCode breach.
What a November 2026 report found in Lovable apps
In November 2026, the security firm Crissy Field, from Hamburg, published a report on Lovable apps. It worked with the newspaper Handelsblatt, which wrote about it on November 2, 2026 (in German). The firm says it analyzed 159,041 Lovable projects from December 2025 to September 2026. Of the 34,545 that used Supabase, it says 24,664 websites sent database records as soon as they loaded, with no login. With extra read-only requests, it says it found records with email addresses in tables on 7,403 of those websites. Its examples include an app with more than 1,000 records of identity document details.
The firm’s own caveats matter. Email addresses can be public contact addresses or test data, so its roughly 30% share is not a confirmed leak rate. Its sample is not representative of all Lovable apps, and it says it couldn’t tell whether any of the data was misused. These are the researchers’ claims, and we haven’t checked their data. You can read the full report (read on November 25, 2026).
The lesson fits this page: an app can look fine on screen while its database answers anyone who asks. The steps below show how to check yours.
What the rules should look like
Supabase’s docs are direct about it: if a table in the public schema has Row Level Security (RLS) turned off, anyone with your project’s URL can read, change and delete its rows. RLS is a set of rules, called policies, that decide which rows each person can see or change. For personal data, the usual rule is simple: each person reaches only their own rows. Once RLS is on, nothing is readable through the app’s key until a policy allows it.
The keys matter too. Supabase gives your app two kinds:
- Publishable key (older projects call it the anon key): made for the browser. Anyone can read it, so it only reaches what RLS allows.
- Secret key (older name: service_role): it skips every RLS rule. It belongs only on a server or in a backend function, never in the browser.
Run your tool’s security check
These checks are built in, and you don’t need to know how to code to run them:
- Lovable: go to More → Security and click Run checks. The automatic checks take seconds. They look at your database rules (for example, a table with no per-row rules, or a rule that lets everyone in), known problems in your packages and an MCP server open without sign-in, and they also run in the background when you open the Publish dialog. The advanced checks read all of your app’s code, usually in 3 to 13 minutes, looking for things like users who can see data that isn’t theirs and leaked keys. Running checks is free and doesn’t use credits. To see the rules themselves, go to More → Database → Manage → Policies. Lovable’s docs say you’re still responsible for your app’s security.
- Bolt: click the database icon at the top, then Security, to check your database rules on any plan, and click Ask Bolt to fix if it finds something. On paid plans, Publish → Run security audit reviews the whole project, including your code and keys, without using tokens.
- Your own Supabase project: open the Security Advisor in the Supabase dashboard. A “Table publicly accessible” error means RLS is off on that table.
Checked November 25, 2026 in the Supabase, Lovable and Bolt docs.
How can you check without knowing how to code?
- Open the published link in a private (incognito) window, without logging in, and see what appears.
- Create two test accounts and check whether one can see the other’s data.
- Use made-up data until you’re sure everything is protected.
How to test your app without coding turns these checks into a full checklist, and Is my vibe-coded app leaking? adds the checks for API keys and public storage buckets, plus what to do if something leaks. If your app is on Lovable, the Lovable security checklist for non-coders walks through the free security checks, the database rules and these two tests step by step. Once the app is live, keep going with the after-you-launch checklist.
Prompt to paste
Copy the text below, replace what’s in brackets and send it in the chat of the tool you’re using.
This app will store personal data about other people: [which data, for example "customers' names, phone numbers and addresses"].
Don't change anything yet. Review it and answer me in plain English:
1. Can someone who isn't logged in see or change this data?
2. Can a logged-in person see or change another person's data?
3. Does every table that stores this data have Row Level Security (RLS) turned on, with rules that let each person reach only their own rows?
4. Is there any password, secret key or service_role key visible in the code that runs in the browser?
List the problems from most serious to least serious, and only fix them after I confirm.How not to burn credits
- Ask for the review and the list of problems first, and only then for the fixes, as the prompt does. That way you don't pay for changes you didn't want.
- Run the built-in checks before you prompt. In Lovable, clicking Run checks in More → Security doesn't use credits, while asking for a security review in the chat does. In Bolt, use the Run security audit button in the Publish menu (paid plans): the audit and its fixes don't use tokens, while prompting Bolt to audit does.
- Do the free manual checks yourself. Open the published link in a private (incognito) window without logging in, and create two test accounts to see whether one can see the other's data.
- Use made-up data while you build. You can test as much as you like without real data at risk.
How Lovable counts credits, and what the free plan includes: Lovable credits explained.
Questions people ask
How do I know if my app's database is open to anyone?
If your app uses Supabase, open the Security Advisor in the Supabase dashboard. Its "Table publicly accessible" error means a table in the public schema has RLS turned off, and Supabase says anyone with your project URL can then read, edit and delete all data in it. Lovable's automatic checks and Bolt's database Security page run similar checks. Then do the human test: open the published link logged out and with two test accounts.
Is it a problem that my Supabase key is in the app's code?
It depends on which key. Supabase says the publishable key (or the older anon key) is meant for the browser and only reaches what RLS allows, so it's safe only if RLS is on. The secret key (or the older service_role key) bypasses every RLS rule and must never be in a browser, an app you ship or your code repository. If a secret key was exposed, rotate it.
Do Lovable and Bolt check this for me?
Partly. Lovable runs its automatic checks (database rules, packages with known problems and an MCP server open without sign-in) in the background when you open the Publish dialog. Its advanced checks read all of your app's code, including for data that the wrong people can see, leaked secrets and sign-in flaws, and you start them yourself with Run checks in More → Security. They usually take 3 to 13 minutes, and running checks doesn't use credits. Bolt has a database security check on every plan (database icon, then Security) and a full project security audit on paid plans (Publish, then Run security audit). Lovable's docs say its checks can't guarantee that an app is secure.
I read that Lovable apps exposed personal data. Does that mean my app did too?
Not by itself. In a report published in November 2026, the security firm Crissy Field said it looked at 159,041 Lovable projects and, among 24,664 sites that returned database records without a login, found records with email addresses on 7,403 of them. The firm says that's not a confirmed leak rate, because the emails may be public contact addresses or test data, and that its sample isn't representative of all Lovable apps. It's a claim from one firm, and we haven't checked its data. What you can do is check your own app: run the checks above, then test the published link logged out and with two accounts.
Is the AI's review enough?
No. It helps find obvious problems, but it doesn't replace a review by someone who understands security. Lovable's own docs suggest an additional professional security review for apps that handle sensitive data. For health information, documents or payments, get professional help before you publish.
Does a small app need to worry about privacy laws?
Privacy laws such as the GDPR in Europe can apply to small businesses too, not just large companies. If your app stores customer data, learn what the rules require where you and your customers live, or ask a professional.
New guides by email. An email when we publish a new guide, error fix or chapter, in plain English. Subscribe