Is your Lovable app exposing your data? The incidents explained, and 3 checks you can run yourself

By Nathan Guigui, Founder of GUIGUI Tech · Facts checked against the official sources listed at the end of the article

Your Lovable app can expose data in two very different ways. The first depends on Lovable: between February and April 2026, the code and chat of public projects could be read by other Lovable users, which may have revealed keys written into that code. The second depends on you, and it is the most common: a Supabase database whose access rules (RLS) are missing or too broad. Three checks, run from your own dashboards, cover the essentials: RLS on every table, where the service_role key lives, and your project's visibility.

This article is not here to scare you off Lovable. It sorts what was reported, what is confirmed, and what you can check yourself. The information below has been checked against Lovable's own write-ups, the official Lovable and Supabase documentation, and the tech press, as of November 2026. Every check suggested here applies to your project, from your accounts.

Which Lovable security incidents have been reported?

Three public episodes concern Lovable apps: a 2025 report about insufficient access rules, a poorly protected Lovable showcase app in February 2026, and a flaw in Lovable's API made public in April 2026. Only the third involves the platform itself; the first two concern how apps were configured.

DateWhat was reportedWho is at fault
May 2025CVE-2025-48757: insufficient RLS policies on sites generated by LovableApp configuration (disputed by Lovable)
February 2026A showcase app on Lovable let unauthenticated visitors throughThat app's configuration
February to April 2026Chat and code of public projects readable by other Lovable usersLovable platform (regression)

2025: the CVE-2025-48757 report

The CVE-2025-48757 record, published on May 30, 2025, describes insufficient Row Level Security policies on sites generated by Lovable through April 15, 2025, allowing unauthenticated people to read or write database tables. It is marked as disputed: Lovable considers that each customer is responsible for protecting their app's data.

February 2026: an app showcased by Lovable

On February 27, 2026, The Register reported on an exam app hosted on Lovable and featured on its Discover page. According to researcher Taimur Khan, quoted by the paper, it had 16 flaws, six of them critical, and exposed 18,697 user records. The example given is an inverted access check: it blocked signed-in users and let anonymous visitors through. Lovable's security chief replied that every project gets a free security scan before publishing, that applying its recommendations is up to the user, and that the database involved was not hosted by Lovable.

April 2026: the API flaw on public projects

On April 20, 2026, a researcher made public a flaw in Lovable's API. According to The Register, the researcher says that with five API calls from a free account, they obtained another user's profile, their public projects, the source code, and database credentials extracted from that code. The Next Web states that the incident affected projects created before November 2025; The Register notes that this scope is the researcher's claim, and that Lovable did not confirm it.

Lovable's official write-up gives its version:

  • Cause: in February 2026, backend regressions re-enabled access to the chat history and source code of public projects.
  • Window: from February 3 to April 20, 2026, that chat and code could be accessed by any Lovable user who had the project link.
  • Scope: public projects only. “Private projects and Lovable Cloud were never impacted,” Lovable writes.
  • Fix: access was blocked and the regression reverted; remaining public projects are being made private, except Lovable's official templates.
  • Reports: researcher reports, the first dated February 22, 2026, had been closed without escalation because of outdated internal documentation.

Lovable first said it had not suffered a data breach and spoke of intended behavior, before acknowledging, in that same write-up, that its first response missed the mark.

Why does “before November 2025” keep coming up?

November 2025 keeps coming up because that is when new Lovable projects became private by default. According to Lovable's documentation on project visibility, before November 6, 2025, projects were public by default on free plans. A project created before that date was therefore more likely to still be public, and the incident only affected public projects.

What this means for you:

  • Your project was public between February 3 and April 20, 2026: assume its code and chat may have been read. Any secret key written in the code or pasted into the chat must be replaced. Lovable says it is contacting owners of projects that may have been viewed by others.
  • Your project was private (or “workspace”): according to Lovable, it was not affected by this incident.
  • Either way, this incident says nothing about how well your database is protected. That is what the checks below are for.

Key point

“Public project” and “public app” are not the same thing. According to Lovable's documentation, project visibility controls who can open the editor (code, chat, unpublished changes); access to the published app is set separately. Your app can be live for everyone while the project stays private.

Check 1: is RLS enabled on every table?

RLS must be enabled on every table in your Supabase database, with no exceptions, and with policies that genuinely restrict access. This is the most important check: according to Supabase's documentation, a table in an exposed schema without RLS is readable and writable by any role with a grant on it. The publishable key, visible in any app, is then enough to read that table.

If your app uses Lovable Cloud (no Supabase account in your name):

  1. Open your project, then the Security view, and run a scan. According to Lovable's documentation, the quick scan flags, among other things, tables without per-record access control and rules that let everyone through.
  2. Open More → Database → Manage → Policies to see every policy in your project, table by table.
  3. Deal with findings marked Critical first.

If your app is connected to your own Supabase project:

  1. Sign in to your Supabase dashboard and open the Security Advisor.
  2. Look for these alerts, described in the Advisors documentation:
AlertWhat it meansSeverity
rls_disabled_in_publicA table is publicly accessible, without RLSUrgent
sensitive_columns_exposedLikely sensitive columns are reachable without RLSUrgent
policy_exists_rls_disabledPolicies exist, but RLS is off: they are not enforcedTo fix
permissive_rls_policyAn always-true policy, such as USING (true), lets everything throughTo fix
rls_enabled_no_policyRLS on with no policy: nobody reads the table through the APIOften harmless, but can break a feature

A table with no alert is not necessarily well protected. A policy can be active and look sensible, yet still let one user read other users' rows. For each table, ask yourself: “Who should be able to read these rows? Who should be able to change them?”

Since 2026, a new Supabase table can also return a 42501 permission denied for table error: see the cause and the safe fix, without GRANT ALL to the anon role.

Key point

To fix things, ask Lovable in Chat mode to explain each table's policy in one plain sentence (“each user only reads their own orders”) before changing anything. A policy nobody can explain is a policy to review.

Check 2: is the service_role key out of your app?

The service_role key (or sb_secret_... secret key) must never be in code that runs in the browser or on the phone. According to Supabase's documentation on keys, a secret key bypasses every RLS policy: with it, the whole database is open.

There are two families of keys, and it is normal to see one of them in your app:

KeyFormer nameCan it be in the app?
Publishable (sb_publishable_...)anonYes: it stays subject to RLS
Secret (sb_secret_...)service_roleNever: it bypasses RLS

How to check, on your own project:

  1. Locate your keys: in the Supabase dashboard, Settings > API Keys lists every key, legacy and new. Note the beginning of the secret key, without copying it anywhere else.
  2. Search for it in your code: in your synced GitHub repository, search for service_role, sb_secret_ and the beginning of your secret key. With Lovable Cloud, you can also ask in Chat mode: “Is a secret or service_role key used in code that runs in the browser?”
  3. Check where third-party service keys are stored (Stripe, email sending, AI): according to Lovable's documentation, they belong in More → Secrets, not in the code. Lovable's deep scan also looks for secrets in the code.
  4. Reread your Lovable chat if your project was public: a key pasted into the chat may have been seen during the incident.

If a secret key was exposed, Supabase's guide says to:

  1. fix the cause of the leak first, otherwise the new key will leak the same way;
  2. create a new secret key under Settings > API Keys;
  3. roll it out to every component that used the old one;
  4. delete the old key, immediately if someone else is actively using it. For a legacy service_role key, Supabase says to deactivate the legacy keys and revoke the legacy JWT secret.

Also go through any Stripe, email or AI keys that were in the code: each service has its own replacement procedure.

Check 3: is your Lovable project private?

Your Lovable project should be set to “Workspace” or “Restricted” access, never public. According to Lovable's documentation, as of November 2026:

  • public projects have not existed since April 22, 2026: remaining public projects were switched to “Workspace” access;
  • Workspace (default): workspace members and invited collaborators access the project according to their role;
  • Restricted (Business and Enterprise plans): only the project owner, invited collaborators and workspace owners can access it.

How to check:

  1. Open the project and click Share in the top bar: the current access level is shown there.
  2. Look at the list of workspace members and invited collaborators: does a former contractor or partner still have access? According to the documentation, workspace owners can access every project in the workspace, whatever the setting.
  3. If you are an admin, check the default under Workspace settings → Privacy & security → Default project access.
  4. Also check public remixing, which is set separately under Project settings → Sharing.

The current setting says nothing about the past. If your project was public between February 3 and April 20, 2026, check 2 becomes your priority.

What to do depending on what you find

This table maps each result of the three checks to the action to take.

What you findSeverityAction
A table without RLS holding user dataUrgentEnable RLS and write the policies before anything else
An always-true policy (USING (true)) on private dataUrgentRewrite the policy to restrict access to the data's owner
A secret or service_role key in the app's codeUrgentMove the call server-side, then replace the key
Project public between February and April 2026 with keys in the code or chatHighReplace every key involved
A former contractor still in the workspaceMediumRemove their access
No alerts, policies understood and explainedLowRerun these checks after every major change

If your users are in Europe and personal data may have been read, the GDPR may impose obligations on you, including notifying your data protection authority: check with your regulator or your legal adviser.

If your Lovable app is also getting slow or unstable, see My Lovable app is getting slow or unstable: when should I move off it? If you are getting ready to publish it on the stores, our guide to publishing a Lovable app on the App Store and Google Play walks through the steps.

Get help

These three checks cover the most common flaws, not all of them. For instance, they do not catch a protection that only exists on screen, like the inverted check in the app reported by The Register in February 2026.

If your Lovable app has real users, the security audit for your Lovable app costs €1,200 excl. VAT, in 3 business days. We check the RLS policies on every table, secret keys visible in the browser, protections that only exist on screen, user sign-in, uploaded files and third-party service keys, without changing anything. You get a plain-language written report covering what is serious, what is less so, and what to do. A new check after your own fixes costs €350 excl. VAT.

Frequently asked questions

Did Lovable have a data leak in 2026?
Lovable disputes the word leak. According to its own write-up, between February 3 and April 20, 2026, a regression made the chat history and source code of public projects accessible to any Lovable user who had the project link. Lovable says private projects and Lovable Cloud were never affected, and that the issue was fixed on April 20, 2026.
Is my Lovable project created before November 2025 affected?
It may be, if it was public. According to Lovable's documentation, before November 6, 2025, projects were public by default on free plans. According to Lovable, only public projects were exposed by the February-April 2026 incident. If your project was public, assume its code and chat may have been read, and replace any secret key they contained.
What is RLS in Supabase?
Row Level Security (RLS) is a set of rules, inside the database, that decide which rows each user can read or change. According to Supabase's documentation, a table in an exposed schema without RLS is readable and writable by any role with a grant on it.
Is the Supabase anon key visible in my app a problem?
Not if RLS is properly in place. According to Supabase's documentation, the publishable key (formerly “anon”) is safe to expose in a web page or mobile app, because it remains subject to RLS policies. It is the secret key (formerly “service_role”) that must never be in the browser, because it bypasses every RLS policy.
What should I do if my service_role key was exposed?
According to Supabase's guide, first fix the cause of the leak, then create a new secret key under Settings > API Keys, roll it out everywhere the old one was used, and finally retire the old one. For a legacy service_role key, Supabase also says to deactivate the legacy keys and revoke the legacy JWT secret.
Is Lovable's security scan enough?
It is a good starting point, not a guarantee. According to Lovable's documentation, its security tools cannot guarantee complete security, the app's creator remains responsible for its security, and Lovable recommends a professional security review for apps handling sensitive data.

Need help with this?

Security Audit for your Lovable App

€1,200 excl. VAT3 business days

Your Lovable or Bolt app has real users? We check that no stranger can see their data (Supabase, secret keys) and explain what to fix, in plain words.

Learn more →

More articles

Android developer verification in 2027: is your app registered?

Google is expanding Android developer verification worldwide starting January 2027. Who is affected, the known timeline and how to check that your app is registered.

Read more

Apple tightens App Store rules in 2026: what it means for an app built with Lovable or AI

June and October 2026: Apple tightens its rules against low-quality apps (4.3), hidden features (2.5.19) and misleading visuals (2.3.14). What it means for an app built with Lovable or AI.

Read more

Tell us about your project

Our office

  • France
    1 RUE DE STOCKHOLM
    75008, PARIS