A dark Clearview Studios cover card titled "1 in 10 Lovable Apps Were Leaking User Data".

1 in 10 Lovable Apps Were Leaking User Data

In March 2025 a researcher checked 1,645 apps built with the AI app builder Lovable. About one in ten, 170 of them, let a stranger read or change data in their databases.

The apps worked. They looked finished. Nothing on screen told their owners anything was wrong.

Three caveats first, because they matter.

  • The researcher worked for a competitor.
  • The sample was apps featured on Lovable’s own site, not every Lovable app.
  • Lovable disputes who is responsible.

Take all three seriously and the lesson still stands.

What did the scan find?#

The researcher was Matt Palmer, then at Replit, which competes with Lovable. His statement reports “303 endpoints across 170 projects (approximately 10.3% of the 1645 analyzed)”. Semafor, which broke the story in May 2025, described the exposed data as “names, email addresses, financial information and secret API keys for AI services”.

The flaw was logged publicly as CVE-2025-48757, in the catalogue the security industry uses to track known vulnerabilities. The record says it “allows remote unauthenticated attackers to read or write to arbitrary database tables of generated sites”, and scores it 9.3 out of 10. The record also carries Lovable’s objection: each customer “accepts a responsibility over protecting the data of their application.”

A brass padlock joining two chains, with the key left in the lock
Photograph: Lacz02 · Wikimedia Commons · CC BY-SA 4.0

Why can a working app still leak data?#

Lovable apps store their data in Supabase, a hosted database, and the app in your browser talks to that database directly. What keeps one user out of another’s records is a set of rules called row-level security, or RLS. Supabase’s documentation states the default plainly: “A table in an exposed schema without RLS is readable and writable by any role with a grant on it.”

Missing rules don’t break anything you can see. You log in, your own data appears, the demo passes. Alex Stamos, a former chief security officer at Facebook, told Semafor what he thinks of letting users connect straight to a database: “You can do it correctly. The odds of doing it correctly are extremely low.”

That’s a judgement about the design, and a hard one for a non-technical founder to act on alone. You can’t review rules you don’t know exist. We covered the wider pattern in what AI-generated code quietly skips.

How did it end?#

Lovable acted. Its 2.0 release in April 2025, before the findings went public, added a Security Scan. Palmer’s criticism was that “it merely checks for the existence of any RLS policy”, so a rule that exists and is wrong still passes. Lovable replied on X, as quoted by Semafor: “We’re not yet where we want to be in terms of security”.

The company has been straight about the limits since. A June 2025 post says “we can’t guarantee your app will be 100% secure”. Its documentation today reads: “For apps that handle sensitive data or critical tasks, consider a review by a security professional.”

The problem has come up again. In February 2026 The Register reported a Lovable-hosted app that exposed 18,697 user records. Taimur Khan, the researcher who found it, called the bug “A classic logic inversion that a human security reviewer would catch in seconds”. Lovable told The Register the app included code it had not generated and a database it did not host, and that the creator “is now addressing the issue.”

We could not find any public account of what the owners of the 170 apps did next.

What should you do if you built on a platform like this?#

  1. Run the two-account test. Sign up twice, log in as the first user, and try to open the second user’s records.
  2. Treat a passing scan as a start. It tells you rules exist. It can’t tell you they’re right.
  3. Take the platform’s own advice. If your app holds customer data or takes payments, get an experienced person to review it before you sell to anyone who will ask where their data lives.

Clearview is stack-agnostic, so we look at apps on whatever platform they were built on, Lovable included, and our starting point is to keep what works. More than fifteen years of building with senior teams taught us that a review before launch is the cheapest security work there is. If you’d like a second pair of eyes on yours, ask us.

Sources

On this page