Guide
Lovable blocked your publish: what each critical finding means and how to fix it
Published November 30, 2026 · Guides
What the November 23 security-check redesign changed, when the workspace setting blocks every publish path, and how to read the finding on a project you own.
This guide is for people who built an app in Lovable and then could not publish it after the security checks changed in November 2026. It stays with Lovable's changelog and the current docs for the Security view, publishing, and workspace settings. Where a fix lives in Supabase, it uses Supabase's own page. It does not name a finding your project will show unless one of those pages names it.
Open the Security view, the policies screen, and the publish dialog only on a project you own or are allowed to administer.
What changed on November 23
The changelog entry for November 23, 2026 is titled Redesigned project security checks. It says the Security view opens from More → Security and now shows your checks first, with Findings and Dependencies on their own pages under Security. Lovable runs the automatic checks before you publish. Run checks runs every check that is out of date, including the advanced checks, which read all of your app's code. Running checks does not consume credits.
That entry describes the screen and when the checks run. The sentence that a finding can stop publishing is on a different date. The November 18, 2026 changelog entry, Critical security findings now block every way to publish, is the one that extends the block to the project chat, Chats, Lovable in Slack, the Lovable API, and the Lovable MCP server. The November 12, 2026 entry is earlier still: on a project that uses the built-in backend, Lovable asks you to review unresolved critical findings, and you can open them, publish anyway, or ask Lovable to fix them in one request.
The current publish page says the dialog runs the automatic checks and does not run the advanced checks. The Security view says the automatic checks take a few seconds. The advanced checks usually take 3 to 13 minutes, and at most 15. Opening Publish starts the short checks. The code review starts when you select Run checks, when you start it from the workspace Security center, or when you ask Lovable in the project chat.
The setting that blocks publish
The name on the settings page is Block publishing with critical issues. Workspace admins and owners open it from Workspace settings → Security → Privacy & security → Publishing. It is available on all plans. The documented default is Disabled, except on new Enterprise workspaces that Lovable creates, where it starts enabled. When the workspace is Managed by the organization, that page says only org admins can change these settings.
When the setting is disabled, projects can be published with critical findings still open. Lovable still tells you about them. The publish dialog shows them. On a project that uses the built-in backend, clicking Publish also opens the Review security findings dialog. That dialog lists up to three of the findings and how many more there are. Review opens the Security view. Publish anyway publishes with the findings unresolved, and on a project that is already published the button reads Update anyway. Try to fix sends every unresolved critical finding to Lovable in one request, in the project chat, and does not publish the project. The request draws from your account's 10 free fixes. When you ask Lovable to publish in the project chat, Lovable publishes and tells you how many critical findings are unresolved. The scan card is that case: the dialog reports findings, and the app goes live because the setting is off.
When the setting is enabled, a project cannot be published while it has unresolved critical findings. In the publish dialog, Resolve findings appears under Before you publish until you resolve them, and the Review security findings dialog does not open. Select Review there to open the Security view. When you ask Lovable to publish in the project chat, in Chats, or in Lovable in Slack, Lovable does not start publishing. It tells you how many critical findings to fix or ignore first. When you publish through the Lovable API or the Lovable MCP server, the request fails with a 400 error of type security_critical_findings that lists the blocking findings.
The current settings page says critical findings from every check count, including findings from the advanced checks, the dependency check, and AI pentests with Aikido. The November 18 changelog says findings from every scan count, including the Deep scan, the dependency audit, and AI pentests. The November 18 entry uses the name Deep scan. The current security pages use advanced checks for the checks that read all of the app's code. This guide keeps each page's words.
The block uses the latest results of each check, even when those results are outdated, and it does not require a fresh run of the advanced checks. Findings you have ignored do not count toward the block. Ignoring a finding does not fix the issue. Passing the block does not prove that your app is secure. The settings page says to test your app's access rules before publishing.
Where the block shows up
In the publish dialog, the security line counts critical findings from every check and scanner, including a scanner your workspace has connected, such as Wiz. When there are no critical findings, the line shows how many warnings to review. Info findings are not counted. With no critical findings and no warnings, the line says there are no security issues. When Lovable has no results for the project, the line asks you to run the security checks. Findings do not block publishing by default. The block is the workspace setting above. When that setting is on and the checks find critical issues, the dialog lists Resolve findings under Before you publish.
Publishing blocked, in the troubleshooting accordion, is a different stop. That accordion says a workspace policy does not allow this kind of publishing, and it names publishing publicly and publishing as an external collaborator. Those policies are on Enterprise plans. When the sensitive data findings policy blocks publishing, the dialog lists Sensitive data under Before you publish. A critical-findings block is the Resolve findings row, not that policy row.
On the API, the publish endpoint is POST /v1/projects/{project_id}/publish. The API reference marks that endpoint Business or higher. It says that when the workspace blocks publishing on critical security findings, the quick security scan runs on the version being published first, and unresolved findings fail the request with 400 security_critical_findings. The product docs call the checks in the publish dialog the automatic checks. The API reference still calls this pre-deploy check the quick security scan. The error's props.finding_refs is an array of strings. The reference's example is {"finding_refs":["supabase/finding-1"]}. That string is the sample in the reference. It shows the shape of the field. This guide does not treat supabase/finding-1 as a finding title in your project.
The API changelog for November 17, 2026 says the same request also returns that 400 for unresolved critical findings from earlier scans. Those findings include Deep scan, dependency, supply-chain, and pentest findings, and props.finding_refs lists every finding that blocked the request. The November 2, 2026 entry is the one that says the quick security scan runs before the deployment starts. The November 20, 2026 entry says PATCH /v1/projects/{project_id}/publish runs the same checks when you change the audience of a published app. Changing the audience to public returns 400 with type security_critical_findings when those findings block publishing in your workspace. Changing a public app to workspace or custom returns 400 with type app_mcp_unauthenticated_private when the app exposes an MCP server without authentication. That second type is a different error from the critical-findings block.
There is no published list of finding titles
Each finding has one of three labels. Critical means it needs your attention immediately. Warning means review it, and fix it if needed. Info means a suggestion to consider. The Security view says a critical finding is usually a weakness someone could use to attack your app.
Lovable sorts findings into categories. The headings are Sign-in and accounts, Access permissions, Private data, Keys and passwords, User input, App actions, Payments and paid features, and App settings and dependencies. A heading appears only when that category has findings. The docs describe what each category covers. They do not publish the title string a finding will use in your project. Open the finding and read its name, its Severity, its Source, and the evidence: how the problem starts, what the app does, and what could happen.
If only signed-in people can open your app, the advanced checks take that into account. You set this with your app's website access. A finding that would be Critical on a public app shows as a Warning when its code can only be reached after signing in. Some findings keep their level, such as secrets in your code and problems another website could exploit. If you change who can open your app, the levels update the next time the checks run. That is how the label is chosen. The security overview still says to fix critical problems before you make your app public.
The sections below are the clusters the current docs describe in enough detail to act on: database access, keys in the frontend, and packages. Each one says what the check looks at, when that kind of finding blocks publish, and the fix path on a project you own. A finding blocks publish when the workspace setting is on and Lovable is treating that finding as an unresolved critical finding. The label on your finding is the one that decides it.
Database access and exposed rows
The automatic checks include Database security. The security overview's examples are a table without per-row rules (row-level security), a rule that lets everyone in, and leaked-password protection disabled. The publish page says the automatic checks look at database access rules, including mistakes in row-level security (RLS) policies. The same overview says the Database security check also looks at file storage rules and leaked-password protection. The advanced checks go further. They check whether your server code follows the same ownership rules as your database, and whether actions only some users should take, such as admin actions, check the user's role rather than only that they signed in. The category Access permissions covers users who can view or change data or features without permission. Private data covers personal details, such as emails, phone numbers, and profiles, visible without permission.
Those sentences are examples of what the checks look at. The pages do not say that each example is labeled Critical on your project.
Row level security is the rule that decides which rows a user can see or change. Lovable's example is users who can only read their own orders. The policies view is More → Database, then Manage, then Policies. It is read-only. Each table shows whether RLS is enabled and how many policies it has. The Applies to column shows the roles. A policy that shows public covers every role, signed in or not. anon is a request from someone who is not signed in. authenticated is a signed-in request. service_role is privileged access for server code, and your RLS policies do not apply to those requests.
The pages of the app use a publishable key. Anyone using the app can see that key, and Lovable says that is intended, because the key gives no privileged access. Requests made with it come in as anon, or as authenticated after someone signs in, so the policies still apply. A role shows that someone is signed in. It does not show who the person is. A policy that checks only for authenticated gives every signed-in user the same access to every row that policy covers. A policy that keeps one user's rows from another compares the person making the request with something in the row, such as the row's owner.
The best-practices page says server-side code that uses the service role bypasses RLS, so that code has to check permissions itself. It also says a function running on the server is still callable by a client. The App actions category covers backend functions and routes that anyone can trigger without permission or limits. The edge function card is that gap on a function you own. File storage rules are one of the related settings the Database security check looks at. The storage card is the public-bucket case.
Before going live, that page says to verify that RLS is enabled on all sensitive tables, that users cannot access other users' private data, that shared and public data behaves as intended, and that new tables are not missing policies. Its checklist also says to address all critical findings in the Security view. Lovable's documented prompts for this review are "Review RLS policies to ensure users can only access their own data and shared data is properly protected", "Only allow users to see their own invoices", and "Which of my tables can people who aren't signed in read or change?"
On your own project, open the finding and use Open source file when it points at a line. Then open the policies view and read the table the finding names. The view cannot edit the policy. Ask Lovable in the project chat, or choose Fix on the finding, or Add to chat so the request includes the finding Lovable already filed. Review the policy Lovable writes before you try to publish again.
For leaked-password protection on the built-in backend, the security overview says to enable Password HIBP check in More → Users → Settings → Email. The email authentication page says that check rejects known or easy-to-guess passwords using the Have I Been Pwned database of leaked passwords, and that it is enabled by default on new projects. That page is for the built-in backend. A project connected to your own Supabase project manages authentication in Supabase. Lovable points that case at Supabase's password security guide, which says leaked password protection is configured in the project's Auth settings and is available on the Pro Plan and above.
A connected Supabase project's tables are the Supabase data guide. The SQL there is for a Supabase project you administer. Lovable's policies screen is the path on this page for the built-in database. A table with row security off is the RLS card. A policy of using (true) is the always-true card.
Keys and passwords in the frontend
The category Keys and passwords covers exposed API keys and other secrets, and access links or codes that are easy to guess. The security overview says the automatic checks do not cover keys left in the code. The advanced checks read the code for those problems. Secrets in your code keep their level when you limit the app to signed-in visitors. A finding in this category blocks publish when its label is one the workspace setting treats as an unresolved critical finding. The docs name the category and the examples. They do not name a scanner rule id for it.
Part of the app runs in the visitor's browser, and anyone can read the code there. The security overview says API keys and other secrets must never go into that code, because a leaked key can expose data or let someone use your accounts. The best-practices page says secrets stored in frontend code are visible to users and should be considered compromised. The wrong example on that page is a constant API_KEY set to a string beginning sk-, and a constant STRIPE_SECRET set to a string beginning sk_live_. Those are Lovable's placeholders. Its prompts for the fix are "Add an API key for Stripe payments securely without exposing it in the frontend code" and "Review frontend code for exposed secrets, API keys, or sensitive information".
Secrets are encrypted, injected into Edge Functions, and never included in frontend code. Manage them at More → Settings → Secrets. The list shows the name and the creation date. Values are never shown again after you save them. The secrets page's examples of backend secrets are STRIPE_SECRET_KEY, RESEND_API_KEY, and OPENAI_API_KEY. Anything prefixed with VITE_ is a build-time, browser-exposed value and belongs in .env, not in Secrets. The examples of values that are safe to be public are VITE_SUPABASE_URL and VITE_SUPABASE_PUBLISHABLE_KEY. Lovable rejects a VITE_ name in Secrets. The same page says not to add .env to .gitignore, because Lovable needs that file committed so the public VITE_* values are available for previews and published builds. That warning is about the public values.
Names that start with SUPABASE_, including SUPABASE_SERVICE_ROLE_KEY, are reserved. Lovable fills them when the built-in backend, or a connected Supabase project, is enabled. The secrets page says a function can read one with Deno.env.get. The database-access troubleshooting says not to put a service role key in browser code, because that key skips every policy. The service role card is that key in the bundle. The Vite prefix card is a VITE_ variable that copied a secret into the client.
If you paste a key into the project chat and Lovable recognizes the tool, it offers a connector and still saves the key as a project secret when you send the message. The security overview says you do not need to paste the key: describe the integration, and Lovable asks for the value in the secure form. The pasted-key card is that transcript. After the value is out of the frontend, treat it as compromised, which is the best-practices page's wording, and issue a new one at the provider. Inside Lovable, the LOVABLE_API_KEY secret has a Rotate action. For a key another service issued, the secrets page says to generate a new one at that service. This guide does not add a rotation button for OpenAI or Stripe inside Lovable. The API key guide is the check of the bundle and of git history on an app you own, including which Supabase, Stripe, and Firebase keys are supposed to be public.
In new Lovable apps created from May 13, 2026, which use TanStack Start, a secret you change applies to the preview immediately. The published app uses the new value after you publish again. Publishing again is the step the workspace setting holds until the critical finding is resolved.
Packages with known vulnerabilities
The automatic Vulnerable dependencies check finds packages with known vulnerabilities. Each finding names the package, its version, and the public advisory. The Dependencies page is More → Security → Dependencies. It lists the npm packages your app uses when it runs, and it leaves out packages used only to develop the app. Lovable reads the list from bun.lock or package-lock.json.
The security overview says only critical vulnerabilities become findings. The Dependencies page says those findings always show as a Warning, and that high and medium vulnerabilities appear only in the list. Some vulnerabilities rated critical in public security databases do not become findings. Lovable has confirmed they cannot affect Lovable apps, or their EPSS score is low. EPSS is an industry estimate of how likely attackers are to take advantage of a vulnerability. Those packages stay in the list with a marker. Fix all leaves them out.
The privacy settings page says critical findings from the dependency check count toward the block. The Dependencies page says the findings it creates always show as a Warning. Read the Severity on your finding. This guide reports both sentences. It does not decide that a Warning blocks publish, and it does not decide that a dependency finding is exempt from the block. The November 17 API changelog lists dependency and supply-chain findings among the earlier-scan findings that return security_critical_findings when the setting is on. Workspace admins and owners also see affected projects in the Security center, and the Supply chain security tab shows the version that fixes the problem, when there is one.
On your own project, open More → Security → Dependencies. Fix all sends every affected package to Lovable in one request, and it uses your free fixes. You can also open the finding and ask Lovable to update the package and version it names. Review the change and run the app before you publish. If the list is empty, neither lockfile lists packages, or the project lists only packages used to develop the app. If a check cannot finish, the page shows the reason. If a lockfile is damaged, ask Lovable in the project chat to reinstall the packages, then select Run checks. That button on the Dependencies page runs only the dependency check.
An MCP server without sign-in
The automatic checks also flag an app that offers an MCP server without sign-in. The security overview calls this public tool access. An MCP server lets AI assistants, such as ChatGPT or Claude, use your app's tools. The Security view says that if your app's MCP integration lets people in without sign-in, Lovable also starts the advanced checks when that integration changes or when you publish it, at most once a day. The docs describe the check. They do not give it a finding title. Open the finding and read the evidence.
The docs do not name a settings control that adds sign-in to that server. Choose Fix on the finding, or Add to chat, and ask Lovable to require sign-in on the MCP server the finding names. Then read the change. The API error app_mcp_unauthenticated_private is the separate November 20 case: changing a public app's audience to workspace or custom while that server is still open without authentication.
How to clear the block on your own project
Open More → Security. Findings and Dependencies are under Security in the same menu. The Security view says these pages are not available in a draft that has its own backend. Use them on the project itself, while you build and after you publish.
If the card says the results are out of date, select Run checks. Lovable runs every automatic and advanced check that is out of date for the latest version. Running checks does not consume credits or count toward a limit. Anyone with edit access can run them. The button is unavailable while checks are running or when the results are already current. After you change the project, earlier findings from the advanced checks stay on the list and are marked outdated until you run the checks again. The block can still use those results.
On the Findings page, the open items are on the Findings tab. Search findings narrows the list. The Group menu can show them by Severity. Fix one finding from its menu, or Fix in its details. Fix all at the top of the page sends every open finding in one request and leaves ignored findings out. You can also select findings and click Fix. When the project has open critical findings or warnings, a notice above the project chat input shows how many. It counts critical findings when there are any, and warnings otherwise. Fix all on that notice sends every open critical finding and warning. Ignored findings and Info findings are left out. After you use Fix all or close the notice, it stays hidden on that project for 24 hours.
Fixes from the Security view, or with Fix all in the project chat, use your free fixes. The account includes 10 free fixes, counted across all of your workspaces and projects. Each one becomes available again 24 hours after you use it. Security fixes share that pool with Try to fix on build errors. When all 10 are in use, further fixes are standard build usage and consume credits. The workspace needs at least one credit to start any fix. Add to chat is standard build usage and consumes credits. The fix buttons are unavailable while Lovable is still working on an earlier request, or while checks are running. Review and test the changes Lovable makes.
If a finding does not apply to your app, choose Ignore finding and pick a reason: This is intended, I accept this risk, This is wrong, or Other. Ignored findings move to the Ignored tab and do not count toward the block. Ignoring does not fix the issue. The Security view says to ignore a finding only when you are sure it does not apply. Stop ignoring puts it back.
Auto-fix is optional, and it is separate from the publish block. With it enabled, each build request in the project chat looks at up to three of the latest findings from the automatic checks: critical database findings and vulnerable packages. Lovable tries to fix them in the same response. That consumes credits. Auto-fix does not handle findings from the advanced checks. The workspace default is Selected project, which leaves auto-fix off until someone enables it for that project under Project settings → Auto-fix security issues. The Security view is the place the docs call the main place to work through findings.
Then publish again, from the dialog, the project chat, Chats, Lovable in Slack, the API, or the MCP server. While a critical finding is still unresolved, the setting keeps the block, and the dialog keeps Resolve findings under Before you publish.
What a cleared block does not mean
The Security view says that when the latest checks find nothing, no problems turned up, and that no check can catch every risk. The settings page says passing the block does not prove that your app is secure. The publish dialog does not run the advanced checks, so a publish that succeeds after only the automatic checks has not run the code review unless you ran it. Ask Lovable to review the app's security in the project chat when you want the written review. That request consumes credits. The checks it starts are free. The best-practices checklist says to address every critical finding, keep secrets out of frontend code, and test the RLS policies before you publish.
Findings from a connected tool, such as Wiz or Aikido, appear after Lovable's categories, each in a group named after the tool. Aikido's pentest findings are problems the test proved can be used against the app, and the settings page says critical findings from those pentests count toward the block. A publish that gets past the block has cleared the findings Lovable is treating as critical. It has not replaced a review of who can read each table.
Common questions
What did Lovable change on November 23, 2026?
The changelog entry Redesigned project security checks says the Security view opens from More, then Security, and shows your checks first, with Findings and Dependencies on their own pages. Lovable runs the automatic checks before you publish. Run checks runs every check that is out of date, including the advanced checks, which read all of the app's code. Running checks does not consume credits. That entry does not say a finding blocks publishing. The publish page says the dialog runs the automatic checks and does not run the advanced checks. The Security view says the automatic checks take a few seconds, and the advanced checks usually take 3 to 13 minutes, and at most 15.
Why can I still publish when the dialog shows critical findings?
Block publishing with critical issues is the workspace setting, under Workspace settings, Security, Privacy and security, Publishing. It is available on all plans. The documented default is Disabled, except on new Enterprise workspaces that Lovable creates, where it starts enabled. When it is disabled, projects can be published with critical findings still open. On a project that uses the built-in backend, the Review security findings dialog offers Publish anyway, or Update anyway when the project is already published. When you ask Lovable to publish in the project chat, Lovable publishes and tells you how many critical findings are unresolved.
Which findings count as critical?
Each finding is labeled Critical, Warning, or Info. Critical means it needs your attention immediately. Lovable's category headings are Sign-in and accounts, Access permissions, Private data, Keys and passwords, User input, App actions, Payments and paid features, and App settings and dependencies. The docs describe what each category covers. They do not publish the title a finding will use in your project. Open the finding and read its Severity. If only signed-in people can open the app, a finding that would be Critical on a public app shows as a Warning when its code can only be reached after signing in. Secrets in the code, and problems another website could exploit, keep their level. The levels update the next time the checks run after you change who can open the app.
Chat, Slack, the API, and MCP all refuse to publish. Is that one setting?
Yes, when Block publishing with critical issues is enabled. The settings page says Lovable does not start publishing from the project chat, from Chats, or from Lovable in Slack, and tells you how many critical findings to fix or ignore first. A publish through the Lovable API or the Lovable MCP server fails with HTTP 400 and type security_critical_findings. The publish dialog lists Resolve findings under Before you publish, and the Review security findings dialog does not open. The November 18, 2026 changelog is the entry that extends the block to those paths. The November 23 redesign is the change to the Security view and to running the automatic checks before publish.
A dependency finding says Warning. Does it block publish?
The Dependencies page says only critical vulnerabilities become findings, and that those findings always show as a Warning. High and medium vulnerabilities stay on the list. The privacy settings page says critical findings from the dependency check count toward the block. The November 17, 2026 API changelog lists dependency and supply-chain findings among the earlier scans that return security_critical_findings when the setting is on. Read the Severity on your finding. Those pages do not say whether a Warning from the dependency check is the critical finding the block reads.
I changed the code and publish is still blocked. What should I check?
The settings page says the block uses the latest results of each check, even when they are outdated, and that it does not require a fresh run of the advanced checks. The Security view says that after you change the project, earlier findings from the advanced checks stay on the list and are marked outdated until you select Run checks. Ignored findings do not count toward the block. A finding that is still open can still block, including one marked outdated. The Security view pages are not available in a draft that has its own backend. Fix or ignore the open critical findings, then publish again.
The daily card
One break a day: the symptom, the cause, a prompt for your own project, and a short check. The address is not on the list until you confirm it.
Sources
- Lovable changelog (November 23, 18, and 12, 2026)
- Lovable: Publish your project
- Lovable: Privacy and security settings
- Lovable: Security overview
- Lovable: Project security view
- Lovable API changelog (November 20, 17, and 2, 2026)
- Lovable API: Publish project
- Lovable: Control who can access your app's data
- Lovable: Secrets
- Lovable: Security best practices
- Lovable: Email authentication
- Supabase: Password security