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