Guides / Lovable publish blocked by security findings

last checked nov 2026

Lovable won't publish because of security findings: what blocks it and how to clear it

If Lovable tells you to fix security issues before you publish, Lovable's docs describe two separate things that can be in play: unresolved Critical findings from its security scan, and a workspace setting that turns those findings into a hard stop. We could not find the exact words "fix security issues to publish" in Lovable's documentation, so this guide uses the names the docs use: the Review security findings dialog, and Resolve findings under Before you publish.

The short answer

By default, findings do not block publishing. Lovable's publish docs say so directly, and tell you to check in the Security view which findings are critical and resolve those before making your app available. What you see at publish time depends on one setting and one project detail:

The block is off by default on every plan, except on new Enterprise workspaces that Lovable creates, where it starts on. Only critical findings count toward it, and it counts them from every scan: the Deep scan, the dependency audit and Aikido penetration tests.

You may also hit this from outside the editor. With the block on, asking Lovable to publish from the project chat, from Chats or from Lovable in Slack does not start a publish, and Lovable tells you how many critical findings to fix or ignore first. A publish through the Lovable API or the Lovable MCP server fails with a 400 error of type security_critical_findings that lists the blocking findings.

How to clear it

1. Open the Security view and read the Critical findings

In your project, go to More → Security in the toolbar. Findings are grouped by security area and each one is labeled Critical, Warning or Info. Lovable describes Critical as problems that need your attention immediately. Click a finding to see What could happen in plain language and Technical details with the evidence and source location.

2. Make sure the results are current

Scan results are tied to a specific version of your code. When the project changes, findings from the earlier version stay visible and carry a clock icon. The block uses the latest result of each scan even when it is outdated, so a finding you already fixed can still count until the scan runs again. Use Run quick scan or Run deep scan on the Security view. The Deep scan also refreshes any out-of-date quick checks, so you do not need to run both. Deep scans usually take 3 to 13 minutes and at most 15. Running scans is free.

The Quick scan runs automatically when you publish. Lovable's own checks in it cover your database access rules and settings, your npm dependencies and an MCP server your app exposes without authentication. If your workspace has connected Wiz, the Quick scan also runs Wiz, whose code scanning is separate from Lovable's own checks. Application code issues such as improper input handling, weak authorization checks or exposed credentials are areas the Quick scan does not cover. The Deep scan reviews them, but it does not run automatically as you work: you start it yourself, Enterprise admins can schedule it, and publishing an app whose MCP integration allows access without sign-in also starts one in the background. Run it before you publish.

3. Fix the findings

You can ask Lovable to fix a finding in several ways: Try to fix on one finding or group, Try to fix all in the header, or select findings and use Try to fix selected. From the publish dialog, Try to fix in the Review security findings dialog sends every unresolved critical finding to Lovable in one request. Lovable works on the fixes in the project chat and does not publish your project.

Each fix action sends one request in the project chat. Review the changes and test your app before you publish. Fixes draw from your account's 10 free fixes. Each free fix becomes available again 24 hours after you use it, further fixes consume credits, and your workspace needs at least one credit to start a fix.

4. Look at your database access rules yourself

Some Critical findings come from the Quick scan's database review, which flags tables without per-record access control, and access rules that let everyone through. To read your policies, go to More → Database, select Manage, then Policies. The view is read-only, so to change a policy you ask Lovable in the project chat. The Applies to column shows the roles a policy covers. A policy that checks only for authenticated gives every signed-in user the same access to every row it covers, so a good policy compares the person making the request with something in the row, such as its owner. Policies do not apply to service_role, which Lovable describes as privileged access for your app's server code. Server code that uses it has to check permissions itself, so keep service_role out of anything that runs in the visitor's browser, and ask Lovable in the project chat whether your server code checks permissions. For SQL queries that list your policies and the owner-only pattern, see Is my Lovable app secure? (Supabase RLS checklist).

5. Ignore a finding only when it really does not apply

Open the … menu on a finding and choose Ignore finding, then give a reason: This is intended, I accept this risk, This is wrong or Custom. Ignored findings do not count toward the publish block, but Lovable's docs are clear that ignoring a finding does not fix the issue. They move to Ignored findings at the bottom of the list, and you can restore them with Unignore finding.

6. If you are not the workspace admin

The block is set in Workspace settings → Security → Privacy & security → Publishing, where workspace admins and owners can enforce publishing rules. If you cannot see or change it, the person who runs the workspace can tell you whether it is on. Lovable recommends turning it on for every workspace, so the useful route is to clear the findings, not to switch the block off.

On Enterprise there are also separate publishing policies, for example one that restricts publishing while a project has unresolved sensitive data findings. Those are different from the scan block above and can require approval from an admin or owner.

Prove it / common mistakes

Getting past the dialog is not a fix. Publish anyway and Ignore finding both clear the prompt, not the problem. Lovable describes a critical finding as usually a weakness someone could use to attack your app. Fix it, re-run the scan, then publish.

next step

Want an outside check of your repo?

Grab the free Lockdown Pack (security rules for Cursor and Claude Code plus a pre-launch checklist), or have us scan your repo with the $99 Scan + Report. It runs automated tools on your code, and every report gets an AI check against its evidence before it is sent.

Sources

Every product detail above was checked against these official pages. Last checked Nov 2026. Lovable changes its product often; if a menu or dialog moved, the docs below are the source of truth.