Skip to content
Lovable security

Lovable security: what the built-in scan checks, and what still needs a person.

Lovable now scans every app before it is published, and can scan the whole codebase when you ask. That is a real help. But a scanner reads code and settings; it doesn't know your business. This guide shows what each scan covers, what the settings do, what a fix costs, and the checks only the app's owner can make.

The short answer: run both scans, then check what they can't see

Lovable's docs are plain about the limits. They say its security tools help find common issues but cannot guarantee complete security, that "No issues found" doesn't mean the scanner caught every risk, and that apps with sensitive data or critical functions should get an additional professional review. So use the scans as a floor, not a verdict. Then check the things that live in your head rather than in the code: who may see which data, what a payment must trigger, and which settings sit outside the project.

The two scans, side by side.

Lovable has changed the names and defaults more than once in 2026. This is how its documentation describes them on 20 November 2026.

Quick scan: a fixed list, in seconds

The Quick scan runs a set list of checks. It reviews the database for tables without row level security, rules that let everyone through, and leaked-password protection being off. It audits your npm dependencies for known vulnerabilities, and checks whether an MCP server is open without sign-in. It does not read your application code.

It runs every time you publish

Lovable runs the Quick scan automatically whenever you open the publish dialog, and in August 2026 it removed the old setting that made a scan optional before the first publish. So every recent Lovable app has had this check, at least at the moment it was published.

Deep scan: your code, on request

The Deep scan includes the Quick checks and reads all the application code. It looks for access control problems, endpoints anyone can call without signing in, unsafe input and injection, leaked secrets, payment and sign-in flaws, and personal data that is exposed. Lovable says it usually takes 3 to 13 minutes and at most 15.

You have to start it

The Deep scan does not run on its own as you build. Start it from the Security view (More, then Security, in the project toolbar), from the workspace Security center, or by asking for a security scan in chat. Run it before each publish that changes data, sign-in or payments.

Both scans are free

Lovable's docs say both scans are free and use no credits. Asking for a security review in chat is different: the conversation uses credits, even though the scans it starts don't.

Findings come in three levels

Each finding is Critical, Warning or Info. You can fix it, or ignore it with a reason such as "This is intended" or "I accept this risk". An ignored finding stays your decision, so write down why. If the published app is limited to your workspace, a finding that would be Critical on a public app can show as a Warning.

Fixes, credits and the settings worth changing.

What happens after a finding, and four workspace settings that decide how much the scans can protect you. Some of them depend on your plan.

Every finding has a Try to fix button, and you can fix several at once. Lovable gives each account 10 free fixes, shared with the fix button on build errors. A used fix comes back 24 hours later. Past ten, a fix runs as a normal chat message and uses credits, and a workspace needs at least one credit to start one. Lovable added that limit on 11 August 2026.

A fix is a code change like any other. Read what it changed, test the screen it touched with two different users, and run the scan again.

Workspaces can let Lovable fold eligible Critical findings from the Quick scan, such as common database access issues and dependencies, into the next build request. It uses credits. Lovable's docs say auto-fix does not apply fixes for Deep scan findings, so the code problems still need you to act.

This workspace setting stops an app from being published while it has critical findings. Since 19 November 2026, when it is on, it blocks every way to publish. It is off by default for most workspaces, and Lovable's docs recommend turning it on for every workspace.

Turn it on. Just don't read too much into it: Lovable itself says that passing the block does not prove the app is secure. It only means no scan rated anything Critical.

By default a project is visible to your workspace, and a published app is open to anyone. On Business and Enterprise plans you can restrict the project further and limit the published app to signed-in workspace members, which suits internal tools. One catch: a preview link opens the in-progress version even when the published app is workspace-only, unless the link needs a password. New buckets in the built-in storage are forced to private by default on all plans; leave that on unless a bucket really holds only public files.
The project Security view and both scans are available on every plan. The workspace Security center and Security insights, where admins see every project's findings in one place, are on Business and Enterprise. Scheduled deep scans and sensitive data scanning, which looks for things like ID numbers and API keys in chat, uploads and the built-in database, are Enterprise only. Lovable also connects to Wiz for code and dependency analysis and to Aikido for AI pentesting; both are billed by those companies.
This is about your code, not your app's users, but owners ask. Lovable's FAQ says that from 9 September 2026, content from Free and Pro accounts may be used for model training unless the user opts out in account settings, and that Business and Enterprise content is excluded by default. If your prompts contain client details, turn it off, and keep real customer data out of chat either way.

What no scanner can know about your app.

These are the gaps that remain after a clean scan. Broken access control is number one in the OWASP Top 10:2025, and most of it comes down to rules only you can state.

The Quick scan can tell that a table has no row level security, or a policy that lets everyone in. It can't tell that a policy which only checks "is signed in" is wrong for your app, because it doesn't know that customer A must never see customer B's orders, or that a team lead may only see their own team.

Lovable's own best-practice page says it sets up basic RLS policies automatically and that you should review and adjust them early. Our Supabase RLS guide has the SQL to list every table's policies and a two-user test.

A scanner can spot a Stripe webhook handler that doesn't verify the signature. It can't know that a refund must cancel the booking, that a failed renewal must lock the account after a grace period, or that the same event arriving twice must not credit a customer twice. Stripe's docs say to verify each event against the raw request body and to skip event IDs you have already handled. Whether the business logic after that is right, only you can say.
Lovable's docs make a point many owners miss: running code on the server does not make it private, because a client can still call the function. If a function uses the Supabase service role key, which bypasses row level security, it has to check who is calling and what they may do before it touches data.
Hiding an admin button is not access control. Lovable's docs say front-end validation gives no security guarantee and that every sign-in decision must happen on the server. If a page is "admin only", the data behind it must also be admin only, in the policy or the function.
If your app uses your own Supabase project, Stripe account or email provider, some of what matters lives in their dashboards: policies created by hand, which keys are set where, which webhook endpoints Stripe sends to, who else has admin access. Lovable's docs don't say how much of an external Supabase project the Quick scan reviews, so check those dashboards yourself.
A scan result belongs to the version that was scanned. Every prompt afterwards can add a table, move a check into the front end or add a package. That is why the Deep scan belongs before each meaningful publish, not once at launch.

A 10-minute check for the app's owner.

Do this on your own app, or on one whose owner has asked you to. It needs no tools beyond Lovable, your browser and two test accounts.

1

Run both scans

Open More, then Security, and run the Deep scan alongside the Quick scan. Read every Critical and Warning finding. For each one you ignore, write one line on why.

2

Write the access rules down

One line per table: who may read it, who may change it. "Customers read their own orders; staff read all orders; nobody deletes." This list is what the scans can't know, and what the next steps test.

3

Try it as two users

Create two test accounts. Sign in as the first, create a record, copy its link. Sign in as the second in a private window and open that link. If you can see it and your rules say you shouldn't, stop and fix it before anything else.

4

Look for keys in the browser

Open the published app, then your browser's developer tools, and search the loaded JavaScript for service_role, sb_secret_ and sk_live_. Supabase says secret keys never belong in a browser, and Lovable says a secret in front-end code should be treated as compromised. If one turns up, rotate it and move it to Secrets.

5

Turn on the publish block

In workspace settings, switch on Block publishing with critical issues, and check who can open the published app. Then repeat steps 1 and 3 before each publish that touches data, sign-in or payments.

Need more than a clean scan to show someone?

If a customer, an investor or your own launch date needs a person's view, the sign-off review gives you a written go or no-go and the blockers ranked by risk, checked against your access rules: data access, sign-in, secret keys, payments and backups. It is readiness evidence, not a pentest and not legal advice. €990 excl. VAT, credited against a fix booked within 14 days, with a written scope and price before we start.
See the sign-off review

How to read the findings you will see most.

The wording in your project may differ. What matters is the kind of problem and what to do next.

A table without row level security

Anyone with the public key, which every visitor's browser has, may be able to read or change that table. Turn RLS on and add policies that compare the row to the signed-in user. Don't accept a fix that adds a policy allowing everyone.

A policy that lets everyone through

A policy that always returns true, or only checks that someone is signed in, gives every account every row. Replace it with a rule from your list in step 2 and test it as two users.

Leaked-password protection is off

Supabase Auth can reject passwords known from public breaches. Lovable flags it when that check is off. On the built-in backend, Lovable's docs show where to switch it on under the user settings; on your own Supabase project, it is in the Auth settings.

A vulnerable dependency

A package in the app has a known vulnerability rated critical. Update it, rebuild and test. If no fixed version exists, check whether the app uses the affected part before you decide.

A secret in the code

Treat the key as public already. Rotate it at the provider first, then move the new one to Lovable's Secrets so only server-side code reads it. Removing it from the code without rotating leaves the old key working.

An endpoint anyone can call

A function or route runs without checking who is calling. Decide whether it should be public at all. If not, require a signed-in user and check that user's rights inside the function.

Questions about Lovable security.

Lovable gives you real tools: two scans, fixes, a publish block and workspace controls. Whether a given app is safe to put real users on depends on how it was built and checked. Lovable's docs say you are responsible for making sure your app meets the security needs of its use, and that its tools can't guarantee complete security.
It is the right first step and it costs nothing. Before real users, payments or personal data, also run the owner check above, and for anything sensitive get a person to look. Lovable recommends an additional professional review in that case too.
No. It means the scan found no table without RLS and no rule that obviously lets everyone in, and the Deep scan found nothing in the code it read. A policy can pass both and still be wrong for your business. The two-user test is the quickest way to find out.
Keys stored in Secrets and read only by server-side code stay out of the browser. Keys written into front-end code don't, and Lovable says those should be treated as compromised. Lovable detects keys pasted into chat and steers them into Secrets, but check the published JavaScript yourself.
No scan result says that. A scan, and a review, are readiness evidence about who can read which data. Whether the app meets the law is a legal question, and this guide is not legal advice.
No. Webnorly is independent of Lovable and does not speak for it. This guide is based on Lovable's public documentation and changelog, which change often, so check them before you rely on a setting or a plan.
Yes, if you own it or the owner agrees. It starts with a free 20-minute teardown. For a written verdict, see the sign-off review; to have the problems fixed and the app taken to production, see Finish and fix, from €3,000.

Sources

Last checked 20 November 2026. Lovable changes its security features often, so check its current documentation before you rely on a setting, a limit or a plan.

Lovable: Security overview What each scan covers, auto-fix, secrets, the limits of automated scans.
Lovable: Project security view Running the scans, how long they take, credits, Try to fix and the 10 free fixes.
Lovable: Workspace security center and Sensitive data scanning Plan limits.
Lovable: Privacy and security settings Access defaults, the publish block, public storage buckets.
Lovable: Security best practices Secrets, front-end checks, Edge Functions, the service role, basic RLS policies.
Lovable: Changelog Scan on every publish (10 Aug 2026), the fix limit (11 Aug 2026), the publish block (19 Nov 2026).
Lovable: FAQ Model training and the opt-out.
Lovable: Wiz integration The optional external scanner.
Supabase: Row Level Security and API keys Policies, and which keys may reach the browser.
Stripe: Webhooks Signature checks and duplicate events.
OWASP Top 10:2025 Broken access control.

Before real users sign in

Book a free teardown.

Tell us what your Lovable app does and who will use it. With the owner's consent, we spend 20 minutes on its riskiest part, usually who can read which data, and tell you what to fix first.