Elegant Tech
Guide · Lovable

Lovable security checklist

In November 2026 a security firm checked 159,041 apps built with Lovable and found passports, chat messages and payment details readable without a login. Every screen in those apps looked fine. This checklist explains why that happens, what the Lovable security tools catch, a 30 second test you can run today and how to fix what it finds, based on the Lovable docs as of 26 November 2026.

What the November 2026 study found

Crissy Field, a security firm in Hamburg, pulled 159,041 Lovable projects published between December 2025 and September 2026 from the Common Crawl web archive, together with the German business paper Handelsblatt. 34,545 of them used Supabase as their database.

On 24,664 of those sites, database records arrived as soon as the page loaded, with no login. That alone is not a leak, because some data is meant to be public. With further read-only requests using the same key the page already sends, the researchers found tables with email addresses on 7,403 sites.

The worst cases were real. A service provider exposed more than 1,000 identity records with passport numbers. A lifestyle forum exposed more than 80,000 profiles and more than 200,000 chat messages. Event organizers and restaurants exposed ticket and food orders with phone numbers, addresses and payment information.

The researchers are careful about the limits: the 30 percent figure is not a confirmed leak rate, and the sample is not representative of all Lovable apps. Apps on the Lovable built-in backend were not part of the study.

Why a Lovable app can leak when every screen looks right

The screens Lovable builds only ask the database for your own rows, so clicking around your own app never shows the problem. The database decides on its own what it hands over, and it answers anyone who sends a valid request.

Every Lovable app ships a publishable key to the browser. Lovable says that is intended: the key gives no privileged access, and requests made with it arrive as anon before sign in and as authenticated after. Row Level Security policies decide what each of those roles can read or change.

Here is the trap. Lovable notes that a role only shows whether someone is signed in, not who they are. A policy that checks only for authenticated gives every signed-in user the same access to every row. To keep one user out of another user's data, the policy has to compare the person making the request with the owner stored on the row.

What the Lovable security tools catch

  • Quick scan, on every publish. Runs automatically when you open the publish dialog. It flags tables without row level security, rules that let everyone through, leaked password protection turned off, critical dependency vulnerabilities and an MCP server exposed without sign in.
  • Deep scan, on demand. Reviews your application code for users who can view or change data that is not theirs, including server code that bypasses your database rules, plus open endpoints, injection, leaked secrets, payments and sign in flaws. It does not run by itself: start it from the Security view before you publish.
  • The policies view. More, then Database, then Manage, then Policies lists every policy, the action it covers, who it applies to and its condition. It is read only. To change a policy you ask Lovable in the project chat.
  • What the tools say about themselves. Lovable states that its scans cannot guarantee complete security and recommends an additional professional review for apps that handle sensitive data. Treat a clean scan as a good start and keep testing.

The 5 mistakes behind most Lovable leaks

  • A table with no row level security. Anyone with the publishable key can read it. Tables added late in a build, by a quick prompt, are the ones most often missed.
  • A policy that only checks authenticated. Every person who signs up can read every row. This is the most common way user B ends up seeing user A's records.
  • A policy open to anon. Fine for a public product list. Dangerous for anything with names, emails, orders or messages.
  • Storage left open. Row level security also covers storage. A public bucket of invoices, contracts or passport scans leaks even when every table is locked.
  • Server code on the service role. Lovable states that policies do not apply to service_role requests. Any server function that uses it has to check who is calling, and the service role key must never reach the browser.

The 30 second self test

  1. Create 2 test accounts in your app, user A and user B, and give user A a private record such as an order, a note or a profile field.
  2. Log in as user A and copy the id of that record from the URL or from the network request in developer tools.
  3. Log out, log in as user B and open the same URL, or replay the request with user A's id.
  4. If user B can read, change or delete that record, fix the policy on that table before anything else ships.

How to fix it inside Lovable

Start in the project chat. Lovable documents prompts such as "Which of my tables can people who are not signed in read or change?" to review access, and "Only allow users to see their own invoices." to change a policy. Name each table that holds user data and ask for owner based rules on select, insert, update and delete.

Then run the Quick scan and the Deep scan from the Security view, fix every Critical finding, and run the 30 second test again with 2 fresh accounts. Repeat the test after every prompt that touches the database, because the next change can quietly loosen a rule.

If your app runs on your own Supabase project, the Supabase RLS checklist below covers the database side in more depth: views, security definer functions, storage policies and tests in CI.

The 3 ways to production, and what each costs

  • Harden in place, from $5,000, 2 to 3 weeks. Lock down the database, fix auth, move secrets to the server, add monitoring. The frontend stays as it is. Right when you have under a few hundred users and the product still changes weekly.
  • Rebuild the backend, keep the front, $15,000 to $25,000, 6 to 8 weeks. New API layer, cleaned data model, real permissions, integrations moved server side, tests and CI. Right when users like the product but the plumbing cannot be trusted with money or personal data.
  • Full production rebuild, $25,000 to $35,000, 8 to 10 weeks. Same product decisions on a new stack, UX fixes from real usage, AI features designed in. Right when you are charging money, growing, and know exactly what version 2 should be.

These are our fixed prices for this work, with full IP transfer.

When this checklist is not enough

This checklist covers who can read and change rows through your database API. It does not prove that your edge functions, webhooks or payment flows check the caller, and it does not test apps where several companies share the same tables with roles inside each company. If real customers or money move through your app, test those paths separately with 2 accounts in 2 different workspaces, or have someone do it for you.

Frequently asked questions

The platform gives you row level security, a Quick scan on every publish and an on demand Deep scan. Whether your app is secure depends on the policies on your own tables, and Lovable itself recommends a professional review for apps that handle sensitive data.

Yes. Lovable says the publishable key is meant to be visible and gives no privileged access. Your data is protected by your row level security policies. Hiding the key protects nothing. Never put the service role key in browser code.

No. The Quick scan checks database rules, dependencies and MCP exposure on publish. The Deep scan reviews your code, but only when you run it. Lovable states that its tools cannot guarantee complete security.

Open More, then Database, then Manage, then Policies to see every policy and who it applies to. Then run the 30 second test with 2 accounts, because a policy that only checks for signed-in users still leaks between users.

No. Crissy Field examined apps that use Supabase. The researchers say similar misconfigurations may occur on the built-in backend, but they did not test it.

Send us a test login. Get the check free.

We test whether one user can see another user's data in your Lovable app and send a written report in 48 hours.