Skip to content
VibecodeZero

Lovable security checklist for non-coders: what to check before real users

Updated First published

This page is for you if you built an app in Lovable, don’t read code, and want to let real people sign up. It’s a checklist to go through before that happens. Why now: in November 2026, a security firm reported that many Lovable apps returned data without a login. That’s a claim about a sample, and Could my app be exposing personal data? explains what it says and what it doesn’t. The checks below are how you test your own app. If your app is already live, the same steps apply, and I launched my vibe-coded app. Now what? covers the rest of the post-launch checks. For a quick check of whether your app is leaking data or keys right now, on Lovable or any other tool, see Is my vibe-coded app leaking?

The facts about Lovable come from its docs on security, the Security view, security best practices, database access, project access and project settings, plus Supabase’s docs on row level security, and Lovable’s docs on Secrets and Git sync, all checked November 25, 2026. Two tests in step 6 are our own recommendation, and we say so there. Menus change, so check those pages if something looks different. The Lovable button at the end of this page is an affiliate link: if you sign up through it, we may earn a commission, at no extra cost to you. The links to Lovable’s docs are plain links. See how we make money.

1. Run the advanced checks, not just the automatic ones

Lovable has two groups of built-in security checks. Both are free and don’t use credits. Find them in your project under More → Security, on the Security check card.

  • Automatic checks. A fixed set of checks that takes seconds and runs in the background when you open the Publish dialog. They look at your database rules (for example, tables without per-user rules, or rules that let everyone through), known problems in the packages your app uses, and an MCP server your app exposes without sign-in. They don’t read your app’s own code.
  • Advanced checks. They read all your app’s code for problems specific to your app: users who can see or change data that isn’t theirs, functions anyone can trigger, unsafe input, leaked keys, payments a customer could change or skip, and sign-in that could be bypassed. They also rerun any automatic checks that are out of date.

The catch: the advanced checks don’t run by themselves. Publishing runs the automatic checks, not the advanced ones. Lovable’s one exception is an app with an MCP integration that anyone can use without signing in: it starts them when that integration changes or is published, at most once a day. Click Run checks on the card, and Lovable runs every check that is out of date for your current version. It says the advanced checks usually take 3 to 13 minutes, at most 15, and you can leave the Security view while they run. When you change your project, older findings from the advanced checks stay on the list but are marked as outdated, and the card suggests running them again if you’ve published 2 or more times since the last run.

Run them again after big changes, especially to sign-in or the database.

2. Fix the Critical findings first

The Security view groups findings by category, like Access permissions, Private data and Keys and passwords, and labels each one Critical (“needs your attention immediately”), Warning or Info. Start with the Critical ones.

  • Click Open on a finding to read What could happen, a plain-language explanation of the risk.
  • Click Fix on one finding, or Fix all at the top of the Findings page to send every open finding at once. These use your account’s 10 free fixes, shared with Try to fix on build errors. Each comes back 24 hours after you use it. After that, fixes use credits.
  • Review and test after each fix. Lovable’s docs say to review and test the changes Lovable makes.
  • Don’t ignore a finding you don’t understand. Lovable says to ignore one only when you’re sure it doesn’t apply, and to ask Lovable first if you’re not sure.

If you publish with Critical findings open, Lovable says you can, but to fix them first if you can, because a critical finding is usually a weakness someone could use to attack your app. If your project uses Lovable’s built-in backend, it opens a Review security findings dialog when you click Publish, where you can send the findings to Lovable to fix or publish anyway. A workspace admin can also turn on Block publishing with critical issues.

Auto-fix. In Project settings, the Auto-fix security issues setting lets Lovable fix a few eligible findings from the automatic checks, like common database rule mistakes and vulnerable packages, as part of your normal build requests. That uses credits, and it doesn’t fix findings from the advanced checks.

3. Check who can see which data (RLS)

If your app saves anything about people, like names, emails, orders or messages, the database decides who can read it. Lovable uses row-level security (RLS): rules that decide which rows each user can see or change, for example “users can only read their own orders”. Lovable sets up basic rules automatically, but its docs say to review them early, because they’re much easier to change before real data exists.

Where to look. Open More → Database, select Manage, then Policies. Each rule shows what it applies to (SELECT is reading, INSERT is adding, UPDATE is changing, DELETE is removing) and who it covers, signed-in (authenticated) or anonymous (anon) users. This view is read-only. To change a rule, ask Lovable in the chat, in plain words:

Only allow users to see their own invoices.

What to check before going live, from Lovable’s security best practices:

  • RLS is on for every table with private data.
  • Users can’t read other users’ private data.
  • Data meant to be shared or public works the way you intended.
  • New tables have rules too.

Why it matters, from Supabase’s docs: a table without RLS “is readable and writable by any role with a grant on it”, so Supabase says to enable RLS on every table your app exposes. A rule that lets anonymous users read everything gives every signed-out visitor access to those rows, so use it only for data that’s meant to be public.

Never turn RLS off to make an error go away. If RLS is blocking something, ask Lovable to fix the rule instead. Database errors in a vibe-coded app explains what to paste into the chat.

If your app uses email and password sign-in on Lovable’s built-in backend, also turn on Password HIBP check in More → Users → Settings → Email. It rejects passwords that are known to have leaked. The automatic checks flag it when it’s off.

4. Keep secret keys out of the code

Your app’s frontend, the part that runs in the visitor’s browser, can be read by anyone. Lovable’s docs say secrets stored in frontend code “should be considered compromised”.

  • Don’t paste a secret key into the chat as code. Lovable detects API keys pasted into the chat and guides you to store them in Secrets instead. Describe what you want (“I want to use service X to send emails”), and Lovable sets it up so the key stays on the server.
  • VITE_ means public. Lovable’s Secrets docs say anything that starts with VITE_ is a browser value, built into the code your app sends to visitors, and is only for values that are safe to be public, like VITE_SUPABASE_URL and VITE_SUPABASE_PUBLISHABLE_KEY. Lovable’s Git sync docs say never to add a service role key or any other secret to them.
  • The service role key never goes in the browser. Supabase says its secret key can bypass RLS, and that you should never use it in the browser or expose it to customers.

To check, you can paste this prompt from Lovable’s own examples:

Review frontend code for exposed secrets, API keys, or sensitive information

If a key was ever in your code or in a public place, treat it as leaked: create a new one at the provider and delete the old one. OpenCode breach: what to do with your AI API key walks through it.

5. Check who can open your project

Two different settings decide who sees what. Lovable’s docs say they’re independent:

  • Project access decides who can open your project in the editor, which includes your code, your project chat and unpublished changes. Since December 2025, every workspace defaults to Workspace: only members of your workspace and people you invite. Workspace owners can always see every project in the workspace. Check it in the Share menu, top right of the editor, and remove people who no longer need access.
  • Website access decides who can visit the published app. By default, anyone with the link can.

Public remixing is off by default, in Project settings → Sharing. If you turn it on, anyone with the project link can make a copy, and Lovable says they can read your source code in their copy. Keep it off unless you want that, and if you do turn it on, make sure the code has no passwords, keys or personal data.

6. Test it like a stranger (our recommendation)

The two tests below are our recommendation, not a Lovable feature or a step from Lovable’s docs. They need no code and catch the most common problem, one person seeing another’s data, in a way you can see with your own eyes. Do them on the published link, after you publish your latest changes.

Test 1: a private window. Open the live app in a private (incognito) window, where you aren’t signed in. Try every page and button a visitor could reach. Anything that should need a login, like a list of orders or a profile page, shouldn’t show data. If you can copy the address of a page you see while signed in, paste it into the private window too.

Test 2: two accounts. Sign up as person A and add something private, like an order or a note. Then, in another browser or private window, sign up as person B. Person B shouldn’t see anything that belongs to A, not in lists, not in search and not by opening the address of A’s page.

If either test shows someone else’s data, stop sharing the link and paste this into Lovable’s Chat mode, which answers without changing code:

I tested my app with two accounts, and one account could see the other account's data on [page].
Don't change any code yet. Explain in plain words which rule or code lets this happen and what you would change to fix it.

Then switch back to build mode, ask for that one fix, run the checks again and repeat both tests. Could my app be exposing personal data? has more on what to do if it already happened.

You can also ask for a conversational security review at any time with a prompt like Review my app's security. Lovable checks your database and public tools, starts the advanced checks in the background and explains what they found in the chat. The checks are free, but your request and Lovable’s explanation use credits. Lovable suggests it when you want a deeper look at your app’s overall security.

7. When to pay a professional

Lovable’s docs say: “For apps that handle sensitive data or critical tasks, consider a review by a security professional.” In practice, that’s an app with health or financial information, documents about people, payments, or anything that would hurt someone if it leaked.

Lovable lists two optional security integrations, connected for a whole workspace:

  • Aikido runs AI penetration tests: AI agents use your running app and try to break in, the way a real attacker would, through sign-in, permissions and APIs. Findings show up in your Security view. Aikido bills you directly, and it doesn’t use Lovable credits.
  • Wiz adds another scanner that reads your code and your packages. It runs with Lovable’s scans, and its costs depend on your own Wiz account.

Lovable’s recommended order is to run the scanners first, fix what they find, then validate with a pentest before a major release. If you’d rather hire a person, How much does it cost to fix a Bolt or Lovable app? covers where to find one.

Your checklist

  • Advanced checks run on the current version, and every Critical finding fixed and tested.
  • RLS rules reviewed in More → Database → Manage → Policies, on every table with private data.
  • No secret keys in the code or in VITE_ variables.
  • Project access and Public remixing checked.
  • Private window and two-account tests passed on the published link.
  • A professional review planned, if the app handles sensitive data or payments.

When a hosting platform asks you to republish after a security fix, see Node.js and PHP security fixes: do you need to republish?

Questions people ask

Is my Lovable app secure by default?

Not automatically. Lovable sets up basic database rules (RLS) for you and checks for common mistakes, but its docs say you're still responsible for your app's security and that its checks can't guarantee that it's secure. Run the free checks in More → Security before real people use the app, fix the Critical findings and test the result.

Does running Lovable's security checks cost credits?

No. Running the checks is free, automatic or advanced. Fixing findings with Fix or Fix all uses your account's 10 free fixes first, and each one comes back 24 hours after you use it. After that, fixes use credits. Asking Lovable in the chat to review your app's security also uses credits.

What's the difference between the automatic and the advanced checks?

The automatic checks run a fixed set of checks in seconds, in the background when you open the Publish dialog: your database rules, known problems in the packages your app uses, and an MCP server open without sign-in. The advanced checks read all of your app's code for problems specific to it, like users who can see data that isn't theirs, functions anyone can trigger, leaked keys, payments a customer could skip and sign-in that could be bypassed. They also rerun any automatic checks that are out of date, but you have to start them yourself.

What do Lovable's security checks not cover?

Lovable doesn't publish a list of everything it misses. Its docs say the checks find common issues but can't guarantee that your app is secure or replace a full security review, that an empty result means no problems turned up but no check can catch every risk, and that the automatic checks don't read your app's own code. The advanced checks don't run by themselves, and Lovable's auto-fix doesn't fix their findings. That's why we suggest the two-account test and, for sensitive apps, a professional review.

Can someone see my API key in a Lovable app?

If it's in the frontend code, yes. Lovable's docs say code that runs in the browser can be inspected, and that secrets stored there should be considered compromised. Store keys in Secrets and ask Lovable to make the call from server-side code. Variables that start with VITE_ are sent to the browser, so they're only for values that are safe to be public.

What is RLS and do I need it?

RLS (row-level security) is a set of database rules that decide which rows each signed-in or anonymous user can see or change, like "users can only read their own orders". If your app saves anything about people, you need it. Supabase's docs say a table without RLS is readable and writable by anyone the database lets in, and recommend enabling it on every table your app exposes.

Should I pay for a security review?

If your app handles sensitive data, payments or critical features, Lovable suggests a review by a security professional. Lovable also lets a workspace connect Aikido, which runs AI penetration tests on your live app and bills you directly, and recommends running its security checks and fixing what they find first. For a small app with no personal data, the free checks and the tests on this page are a reasonable start.

New guides by email. An email when we publish a new guide, error fix or chapter, in plain English. Subscribe