vibe codingsecurityLovableCVEdata breachAI app builder

What Is CVE-2025-48757? How 170 Lovable Apps Leaked Data

Published Last updated Wolfgang Solutions
Database cylinder splitting open with red and teal data leaking out

The short answer. CVE-2025-48757 is a critical-rated (CVSS 9.3) flaw in apps generated by Lovable. Supabase tables shipped without working Row Level Security, so anyone holding the app's public anon key, which every visitor's browser already has, could read or write data.

Who is affected: Lovable projects that use a Supabase database, especially ones created on or before April 15, 2025. Any app that queries Supabase straight from the browser can have the same gap, whatever tool built it.

Is your app exposed? Run the 5-minute check below. You need your Supabase dashboard and a terminal, nothing else.

What is CVE-2025-48757?

CVE-2025-48757 is a critical (CVSS 9.3) incorrect-authorization flaw in apps generated by Lovable through April 15, 2025. An insufficient Supabase Row Level Security policy let unauthenticated attackers read or write arbitrary database tables of those generated sites, using the app's public anon key, which every visitor's browser already has.

The National Vulnerability Database lists it as CWE-863 and published the record on May 30, 2025. Lovable, the supplier, disputes the CVE, saying each customer is responsible for protecting their application's data.

Who is affected by CVE-2025-48757?

Lovable projects that use a Supabase database, especially ones created on or before April 15, 2025, are the ones this CVE describes. Any app that queries Supabase straight from the browser can have the same gap, whatever tool built it.

A researcher who scanned 1,645 apps built with a popular AI app builder in March 2025 found 170 production apps that let anyone on the internet read, and often change, their users' data. The 5-minute check below is how to find out whether yours is one of them.

Is Your Lovable App Exposed? Check in 5 Minutes

You don't need to be a developer for this. You need access to your Supabase project and about five minutes.

  1. Does your app use Supabase? In Lovable, look for a Supabase connection in the project settings, or open your app, press F12, and look in the Network tab for requests to *.supabase.co. No Supabase, no exposure to this specific CVE (the rest of this post still applies).
  2. Find tables with RLS off (1 minute). In your Supabase dashboard, open the SQL Editor and run select tablename, rowsecurity from pg_tables where schemaname = 'public';. Any table showing false can be read by anyone with your app's public anon key.
  3. Read the policies on the rest (2 minutes). Go to Authentication, then Policies. A policy that says using (true), or one that is enabled for the anon role on a table holding user data, lets everyone in even though RLS shows as "on." Good policies tie rows to the signed-in user, for example auth.uid() = user_id.
  4. Test it like an attacker (2 minutes). Log out, copy the anon key from your app's frontend (it is public by design), and run curl 'https://YOUR-PROJECT.supabase.co/rest/v1/YOUR_TABLE?select=*' -H 'apikey: YOUR_ANON_KEY' against your most sensitive table. If you get back rows you shouldn't, so can anyone else.

What the results mean: an empty result or a permission error on every sensitive table is what you want. Any false in step 2, any open policy in step 3, or any real data in step 4 means the app is exposed today. Turn on RLS for that table, write a policy that limits rows to their owner, rerun step 4, and then assume the data may already have been read and decide whether you need to notify users. The detailed walkthrough below also covers leaked secrets and user enumeration.

In March 2025, a security researcher scanned 1,645 apps built with one of the most popular AI app builders and found something troubling: 170 of them let anyone on the internet read, and often change, their users' data. Not in a lab. Not in a test environment. In production.

The vulnerability, published as CVE-2025-48757 on May 29, 2025, affected applications built with Lovable — a platform that has become a go-to tool for founders and non-technical entrepreneurs who want to ship fast. The flaw wasn't in a single app. It was in the platform itself: missing Row Level Security (RLS) on Supabase databases, which meant that anyone who knew the pattern could read, modify, or delete data from any Lovable-built app that hadn't manually locked things down.

Over 170 production applications were exposed. Some contained customer names, emails, and behavioral data. The builders of those apps had no idea.

This Keeps Happening

Lovable wasn't an outlier. It was a pattern.

Moltbook, another AI-built application, leaked 1.5 million authentication tokens and 35,000 email addresses. The Tea App exposed 72,000 images and 1.1 million user records. A single Lovable-built app shipped in a weekend exposed 18,000 users' personal data because the AI generated client-side database queries with no access controls.

The CSA (Cloud Security Alliance) catalogued more than 2,000 critical vulnerabilities across 1,400 AI-generated applications in 2025. CodeRabbit analyzed 470 GitHub pull requests and found AI co-authored code introduced 2.74x more XSS vulnerabilities and 1.91x more insecure object references compared to human-only code.

Veracode's 2025 research found that 45% of AI-generated code contained security flaws. Nearly half. The question isn't whether your AI-built app has a vulnerability — it's whether anyone has found it yet.

Why AI Code Is Especially Vulnerable

Here's the uncomfortable truth: AI coding tools are only as secure as the code they've been trained on. And a huge portion of existing code — including millions of lines used to train these models — was written before modern security practices were standard.

When an AI generates a login form, it draws on patterns from thousands of login forms. Many of those patterns include the same vulnerabilities that have plagued web development for decades. The AI doesn't know it's writing insecure code. It knows it's writing code that works.

The problem is compounded by who is using these tools. An estimated 63% of active vibe coding users are non-developers. They don't recognize insecure patterns because they've never been trained to spot them. A developer sees eval(userInput) and knows it's dangerous. A non-developer sees code that works and moves on.

The Specific Failure: Missing Row Level Security

The Lovable CVE was a Supabase RLS problem. Supabase is a popular backend choice for Lovable apps — it gives you a real database, auth, and file storage with minimal setup. But Supabase's Row Level Security (RLS) — the feature that controls who can see and modify which rows — is not automatically enabled. You have to configure it manually.

When Lovable generated the code for connecting to Supabase, it often didn't generate the RLS policies. The database was there, the connection worked, and data flowed — but there was no access control layer. Anyone who understood the structure could query any table directly through the browser.

This isn't a Lovable-specific bug. It's a pattern that shows up across every AI code generator: the code they produce is functional, but it often omits the security configuration that a human developer would instinctively add.

Is Your AI-Built App Affected?

If you built an app with Lovable, Bolt, v0, Replit, Cursor, or any other AI tool in the last two years, the odds are significant that something exploitable is in your codebase right now. That's not an accusation — it's a statistical reality based on the vulnerability rates documented across the industry.

The good news: it's fixable. And it's usually not as hard as people fear.

A real security audit of an AI-built app typically finds a specific list of issues. Common findings include:

  • Exposed database rows — missing RLS policies on Supabase, Firebase, or other BaaS backends
  • Hardcoded API keys — secrets baked into frontend code, visible to anyone who opens DevTools
  • Broken authentication flows — session management that works but has edge cases an attacker can exploit
  • Missing rate limiting — APIs that can be hammered without throttling
  • Unvalidated user input — entry points that accept data without checking type, length, or format

These aren't exotic vulnerabilities. They're the same categories of issues that have been in web security literature for twenty years. AI just makes it easier to ship them at scale.

How to Check Your Lovable App for Missing RLS

Start with these three questions:

1. Does your app connect to a database? If it's using Supabase, Firebase, PlanetScale, or any managed database, check whether Row Level Security is enabled and configured. For Supabase specifically: open the SQL Editor in your Supabase dashboard and run select tablename, rowsecurity from pg_tables where schemaname = 'public';. Every table should show true. Any false means RLS is off and that table is readable by anyone with your anon key. RLS being on is not the end of it, though. A policy like using (true) is technically "enabled" and still lets everyone in, so read each policy and confirm it limits rows to the logged-in user (for example auth.uid() = user_id).

Then test it the way an attacker would. Log out, copy the anon key from your app's frontend (it's public by design), and request a table directly: curl 'https://YOUR-PROJECT.supabase.co/rest/v1/YOUR_TABLE?select=*' -H 'apikey: YOUR_ANON_KEY'. If that returns other people's rows, so will anyone else's request.

2. Are there any secrets in your frontend code? Open your browser's DevTools, go to the Sources or Network tab, and look for API keys, tokens, or configuration values that shouldn't be visible to end users. If you can find them, attackers can too.

3. Can you enumerate user accounts without being logged in? Try accessing /users, /api/users, /profile?id=1, /profile?id=2 — any endpoint that might return data for other users without proper authorization checks.

If any of those three checks turn up issues, you have a real security gap that needs addressing before you have meaningful user traffic.

The Real Point

This isn't an article about Lovable. Lovable is actually pretty good at what it does — it's a legitimate tool that has helped real businesses ship real products. The point is about the nature of AI-generated code in general: it is functional first, and the security layer is frequently absent or incomplete.

If you're running an AI-built app with real users, real data, or real money flowing through it — you owe it to yourself and your customers to know what's actually in your codebase. The vulnerabilities are real. The exploits are being actively searched for. And the fix is usually faster and cheaper than the incident you're preventing.

Wolfgang Solutions offers security audits and AI penetration testing for vibe-coded applications. We review the actual code, test your database and API access the way an attacker would, and give you a prioritized fix list. If you want to know what's actually running in your production environment, reach out and we'll scope it out.

This post covers one vulnerability. For everything else between a working prototype and a product customers can trust (owning your code, hosting, secrets, backups, monitoring, payments, and a full pre-launch security checklist), read our guide to taking a Lovable or Replit app to production.

And if you're currently building with Lovable or a similar tool: audit your RLS settings today. It's the one fix that would have prevented the CVE.

Frequently Asked Questions

What was CVE-2025-48757?
CVE-2025-48757 is a critical-rated (CVSS 9.3) vulnerability in apps generated by the Lovable AI app builder, caused by missing or insufficient Row Level Security (RLS) on their Supabase databases. A researcher found 170 of 1,645 scanned Lovable apps exposed: anyone could read, and in many cases modify, data without logging in. It was found in March 2025 and published on May 29, 2025. Lovable disputes the CVE, saying each app owner is responsible for securing their own data.
How do I check if my Lovable app is affected by CVE-2025-48757?
It takes about five minutes. Open the SQL Editor in Supabase and run: select tablename, rowsecurity from pg_tables where schemaname = 'public'; Any table showing false has RLS turned off. Then read each policy to make sure it limits rows to the logged-in user rather than allowing everyone (watch for using (true)). Finally, while logged out, request a table directly with only the public anon key. If other users' rows come back, the app is exposed.
How many AI-built apps have security vulnerabilities?
According to Veracode's 2025 research, 45% of AI-generated code contains security flaws. The Cloud Security Alliance found over 2,000 critical vulnerabilities across 1,400 AI-generated applications. CodeRabbit's analysis of GitHub pull requests found AI co-authored code has 2.74x more XSS vulnerabilities than human-only code.
Is vibe coding dangerous?
Vibe coding itself isn't dangerous — but shipping AI-generated code without reviewing it for security issues is. The tools produce functional code, but they frequently omit security configurations like access controls, input validation, and rate limiting. A non-developer using these tools is unlikely to spot the gaps, which is why an estimated 63% of vibe coding users are non-developers who haven't been trained to identify insecure patterns.
How do I secure my Lovable or Bolt app?
Start by auditing your database access controls — check that Row Level Security is enabled on all Supabase or Firebase tables. Remove any secrets from frontend code and move them server-side. Verify that every API endpoint validates user identity before returning data. Run a brute-force test against your login endpoints to check for missing rate limiting. If any of these turn up issues, prioritize them by the sensitivity of the data at risk. Our Lovable and Replit production guide has the full pre-launch security checklist.
Can Wolfgang Solutions audit my AI-built app?
Yes. We offer security audits specifically for applications built with AI code generators like Lovable, Bolt, v0, and Replit. We review authentication flows, database access controls, API security, and infrastructure configuration, then provide a prioritized fix list. NDA available before we look at any code.