How 170 Lovable‑built apps left user data open to anyone.
Anyone could read the databases behind the apps.
In March 2025, security researcher Matt Palmer found that apps built with Lovable let anyone read, and in some cases change, their databases without logging in. A follow-up scan found 303 exposed endpoints across 170 projects.
The exposed data included names, email addresses, phone numbers, payment and subscription details, and API keys for other services.
- Palmer reports the issue to Lovable.
- Another engineer finds the same flaw and posts about it publicly.
- Lovable releases a security scan in Lovable 2.0.
- Palmer publishes the details and the CVE after a 45-day disclosure window.
The rules that decide who sees what were missing.
The apps stored their data in Supabase, a database service. Supabase uses Row Level Security rules to decide which rows each user can see. Many of the generated apps had those rules missing or too loose.
The key an app uses to talk to Supabase is public by design. That's fine when the rules are in place. Without them, anyone who copied the key from the website could query the tables directly.
The scan wasn't enough. Lovable's new security scan checked whether a rule existed, not whether it actually blocked access. Lovable also disputes the CVE, saying each customer is responsible for protecting their own app's data.
If your business uses an app built with AI.
- Access rules on every tableEvery table holding customer data needs Row Level Security turned on, with rules that limit people to their own data.
- Test it as a strangerLog out, or use a second account, and try to load someone else's records. If you can, so can anyone.
- No secret keys in the websiteAnything in the code your visitors' browsers load can be read by anyone. Secret keys belong on the server.
- Know who's responsibleThe platform's position is that securing your data is your job, not theirs.
Three steps, in order.
- List every table and check its rules.Confirm Row Level Security is on and that each rule limits access to the right people.
- Run a logged-out test.Try to read data as a visitor and as a different user. Fix anything you can see that you shouldn't.
- Replace any keys that were exposed.If a key was ever readable, create a new one and delete the old one. Changing the code isn't enough.