Is Lovable Safe? What to Check Before Going Live

In short: Lovable comes with its own security checks. The known data leaks in Lovable apps came through each app's own database: its rules were missing or let anyone read everything. That is exactly what I find with my clients too. Here is how to check your app, what Lovable's scan covers and when you are ready for real customer data.

By Michael Kaiser ·

Is Lovable safe?

Lovable does a fair amount to protect you. It scans your app every time you publish, keeps API keys in a separate place for secrets and warns you when you paste one into the chat. Whether your app is secure, though, is mostly decided somewhere else: in your database rules, which say who may read and change which data.

Most of the clients I work with build with Lovable or Base44. What I find is practically always the same on both platforms: the database rules are switched off or wide open. Then anyone who opens the app in a browser can pull data that was never meant for them.

The good news: you can check this without reading code, and it is usually quick to fix.

What has already happened with Lovable apps?

Two investigations show the same pattern.

In March 2025, security researcher Matt Palmer reported to Lovable that generated apps did not protect their database properly. This became CVE-2025-48757: people who were not signed in could read or write arbitrary tables of those apps. It is rated critical, with a score of 9.3 out of 10. Lovable disputes the entry, saying each customer is responsible for protecting their own app’s data.

In November 2026, the German business paper Handelsblatt reported on a larger study by the German security firm Crissy Field:

  • They found 159,041 Lovable projects published between December 2025 and September 2026. 34,545 of them used Supabase.
  • 24,664 of these websites sent database records as soon as they loaded, without any sign-in.
  • On 7,403 of them, or 30 percent, the researchers found records containing email addresses.

The researchers point out that the 30 percent is not a confirmed leak rate and that their sample does not represent all Lovable apps. Still, what they found included profiles with names and birth dates, chat messages, payment information and passport numbers.

Why can every visitor see your database key?

Many Lovable apps store their data in Supabase. The app in the browser talks to the database directly, using a public key. Anyone who opens the app can read that key, and that is intended. In Supabase’s words, the public key only reaches what Row Level Security allows, meaning the rules inside the database itself.

So the key is not the problem. A missing rule behind it is. If Row Level Security is off for a table, the database hands everything to anyone who asks.

The secret key, service_role, is a different story. It bypasses every rule. Supabase says never to put it in a browser, a shipped app or source control.

How can you tell if your database is open?

With my clients I see two cases: Row Level Security is off, or it is on but a rule lets everyone read everything. Supabase flags both.

How to check: Open your project in the Supabase dashboard and go to the Security Advisor under Advisors. Look for two findings:

  • An error for rls_disabled_in_public: Row Level Security is off for this table, so it is publicly accessible.
  • A warning for permissive_rls_policy: a rule lets everyone through.

If you don’t have your own Supabase account, Lovable’s scan reports tables without per-record rules and rules that let everyone through. Then run the two-account test from our checklist before you launch: account B must not see account A’s entries, not even through the direct URL.

What to tell your AI: “Turn on Row Level Security for every table. New data is visible only to whoever created it. Ask me who else may see anything.”

Is Lovable’s security scan enough?

Lovable checks your app in two ways:

  • The quick scan runs every time you publish. It checks your database rules, your packages and MCP servers your app exposes without authentication.
  • The deep scan reviews all your code, but only when you start it. It does not run on its own.

Lovable itself says these tools catch common problems but cannot provide complete security. For apps with sensitive data, it recommends an additional professional review.

With my clients, the scan missed quite a bit: known vulnerabilities with a CVE number and publicly readable records. For packages, Lovable’s documentation offers an explanation: the quick scan only raises vulnerabilities rated critical as findings, and some of those only show up with a note in the package list.

So run both scans, the deep one before launch and after every larger change. And check your database yourself as well, as described above.

How quickly can an open database be closed?

Usually faster than you’d think. When I show clients an open table, they lock everything down right away. With clear instructions it is usually done immediately, a few hours at most.

If a secret key ever ended up in your code or in the chat, replace it with a new one at the provider afterwards. Otherwise the old key keeps working, even after it is gone from the code.

Can you use Lovable for real customer data?

Yes, and I’d say that to anyone, but only once security has been thought through completely and hardened properly. Above all, that means a clear plan for who may see and change what, and a database that enforces exactly that.

Crissy Field recommends the same: review access rights, interfaces and the separation between user accounts before real customer or business data goes into the app, and again after every significant change.

Can this be handled while you build?

The checks above start once the app exists. builtSecure starts earlier. It gives your AI these rules while it builds: Row Level Security for every table, keys only in the secrets, no secret key in the browser. And it asks you what only you can know, such as who may see which data.

Lovable and Base44 are the first platforms we are building builtSecure for. It is still at an early stage. If you want to try it, you can start for free below.

Frequently asked questions

Is the public key in the browser a mistake?

No, that is how Supabase is designed. The public key only reaches what Row Level Security allows. The dangerous one is the secret service_role key, which bypasses every rule and never belongs in the browser.

Is Lovable's security scan enough?

Run it, it catches common mistakes. But Lovable itself says its tools cannot provide complete security and recommends an additional professional review for apps with sensitive data.

Can I use Lovable for real customer data?

Yes, once it is clear who may see and change which data and your app actually enforces that. Check it before launch and after every larger change.

Sources

  1. Lovable: Security overview, retrieved on
  2. CVE-2025-48757, retrieved on
  3. Matt Palmer: CVE-2025-48757, retrieved on
  4. Crissy Field: Lovable: Many Apps Built on the Platform Expose Sensitive Data, retrieved on
  5. Supabase: API keys, retrieved on
  6. Supabase: Row Level Security, retrieved on
  7. Supabase: Advisors, retrieved on

Security you never have to ask for. Free during early access.

Start for free

Rather get news first? Subscribe and we'll email you now and then.

More posts