Is a Lovable App Secure Enough for Real Users?

Arrie Burger--8 min read

A Lovable app can be secure enough for real users, but not by default and not because a scan passed. Lovable's own docs say its scanners "cannot guarantee complete security" and "do not replace a thorough security review". Whether your app is safe depends on its data rules, secrets and sign-in, tested by someone trying to break them.

That's an honest answer from Lovable, and it's the right one. A scanner reads code. It doesn't know that a coach should see only their own clients, or that a tenant shouldn't see the landlord's notes. That knowledge lives in your head, and it's exactly what attackers test.

Everything below about Lovable's tools comes from Lovable's security docs, last checked on 14 October 2026. Lovable ships changes often, so check the page again before relying on a detail.

What does Lovable's security scan check?

Lovable runs two scans. A Quick Scan runs automatically before you publish and checks database access rules, row-level security, npm dependency vulnerabilities and MCP server authentication. A Deep Scan, run on demand, reviews your code for access control, open endpoints, injection, leaked secrets, payment flaws, weak authentication and exposed personal data.

That's a useful list. The Deep Scan in particular covers most of the mistakes that turn up in AI-built apps. Lovable also offers optional connectors to outside security tools for code analysis and automated testing, and Enterprise customers can schedule recurring Deep Scans.

Run both. Read every finding, not just the red ones. A scan you skipped finds nothing.

What doesn't the scan do?

The scan finds known patterns of mistakes. It can't confirm that your rules match your business, it can't prove nothing is missing, and Lovable says some low-likelihood findings don't appear at all. In Lovable's words, the tools "help identify common security issues, but they cannot guarantee complete security".

The gap is business logic. Imagine a booking app where every signed-in user can read every booking. The database has a policy. The policy works. The scan sees a policy and moves on. Your customers' names, phone numbers and appointment times are still readable by every other customer.

Researchers made the same point about the first version of the scan in 2025. Matt Palmer's disclosure said it "checks for the existence of any RLS policy, not its correctness or alignment with application logic". The scan has grown a lot since. The underlying limit hasn't moved: a tool can check that a lock exists, not that it's on the right door.

What a scan can check, and what needs a person

The scan

  • A table has an access policy
  • A known vulnerable package
  • A key pattern in the code
  • An endpoint without sign-in

A person

  • The policy matches who should see what
  • One customer cannot read another
  • A payment cannot be faked or replayed
  • What happens when someone tries

What happened in the 2025 Lovable incidents?

In March 2025 a researcher found that 170 of 1,645 Lovable projects he scanned exposed user data through missing or weak database rules. It was published in May 2025 as CVE-2025-48757. In October 2025 a separate study of 5,600 apps found more than 2,000 vulnerabilities and over 400 exposed secrets.

The first incident has a clear public record. Palmer, then at Replit, found the issue on 20 March 2025 and reported it to Lovable the next day. His scan found 303 exposed endpoints across 170 projects, about 10.3% of those he checked. The data included usernames, emails, phone numbers, API keys and payment details.

Semafor's report added that on 14 April 2025 another engineer, Danial Asaria, posted about pulling personal debt amounts, home addresses and API keys from Lovable sites in 47 minutes. Lovable shipped a security scan with Lovable 2.0 on 24 April. Its statement to Semafor: "We're not yet where we want to be in terms of security and we're committed to keep improving the security posture for all Lovable users."

The CVE record describes "an insufficient database Row-Level Security policy in Lovable through 2025-04-15" that let unauthenticated attackers "read or write to arbitrary database tables of generated sites". Tenable lists it at 9.3, critical.

The second data point came from Escape's research, published 29 October 2025. It scanned 5,600 public apps, most of them made with Lovable, and only passively. It still found more than 2,000 vulnerabilities, over 400 exposed secrets and 175 cases of exposed personal data, including medical records and bank account numbers.

What Escape found in 5,600 AI-built apps (October 2025)

Vulnerabilities (over 2,000)2,000Exposed secrets (over 400)400Personal data leaks175

One more, because it's recent. In April 2026 Lovable published its own account of a regression that exposed chat histories and source code of public projects created between 3 February and 20 April 2026 to other signed-in users. Lovable says private projects and Lovable Cloud were never affected. It says it is making existing public projects private, apart from official templates.

Is the problem Lovable, or how these apps get made?

Mostly how they get made. In a Lovable app the browser talks to the database directly, by design, so database rules are the only thing between a visitor and your data. The AI writes what you ask for, and almost nobody asks for "customer B must never read customer A's invoices".

Escape's study found the same patterns across several tools, not just Lovable: misconfigured row-level security, keys in the JavaScript bundle and endpoints anyone could call. That's not a reason to switch tools. It's a reason to stop assuming the tool handled it. The same holes turn up in apps built with Bolt, Cursor, Replit and v0.

It's the same lesson as automating a broken process. The tool does exactly what it's told, quickly. If nobody wrote down who should see what, the app won't know either.

How can you tell if your own Lovable app is exposed?

Run five checks. Read another account's data with a second test account. Search your published JavaScript for keys. Confirm the secret database key is nowhere in the front end. Make sure the project isn't public. Then run Lovable's Deep Scan and work through every finding. Each takes minutes.

Two accounts. Sign up twice. As the first user, try to read, edit and delete the second user's records, through the app and by calling the database API with the first user's session. If anything works, you have a data rule to fix. How Supabase row-level security works shows which rule, and how to read it.

The bundle. Open your live site, view the loaded JavaScript and search for key, secret and sk_. The Supabase publishable key is meant to be public. Anything else isn't. Lovable's hosting guide notes that VITE_ variables "are embedded at build time", so treat every one of them as public.

The secret key. Supabase's docs say its secret key "skips every Row Level Security policy". It should only exist in edge functions or server code. If it's ever been in the front end, rotate it today.

Visibility. Check the project's visibility setting in Lovable. If it was public at any point, treat every key that ever appeared in its code as seen and replace it.

Edge functions. Call each function from a private browser window without signing in. Anything that sends email, takes a payment or calls an AI model should refuse you. If it doesn't, a stranger can spend your money or send mail in your name.

The Deep Scan. Run it, then fix or consciously accept each finding. Write down why you accepted any. If you're working through the rest of a launch list, the Lovable production checklist has the order.

When is a Lovable app secure enough?

It's secure enough when the damage from a leak would be small, or when someone has tested the data rules, secrets and sign-in against how your business actually works. A waiting-list page can launch on a clean scan. An app holding payments, health details or client files needs a person to check it first.

Ask what a leak would cost. If the honest answer is "an embarrassing email to forty people", ship it and keep improving. If it's "a regulator, a lawsuit or a customer's livelihood", the scan is where the work starts, not where it ends.

The law has a view here too. If the app holds other people's personal information, privacy laws like POPIA and GDPR expect security measures that fit the risk, and a leak must be reported. That's true whoever wrote the code. The same rules apply when you later let an AI assistant read those records.

A scan checks that the lock exists. Only a person checks that it is on the right door.

That's the check we do. The free Exposure Check looks at your live app from outside only and sends a five-minute video of what turned up. The Production-Readiness Review reads the repo and the live app, typically in five business days, depending on complexity. Our Lovable page covers the gaps we usually see in Lovable apps. If your app will also answer your team's AI assistant, AI connectors and the platform view explain how access stays tied to each person's role.

Lovable told you the truth about its scan. Believe it.

How we help with this

Want to discuss this topic?

If this resonates with where your company is right now, we'd like to hear from you.