CVE-2025-48757: What the Lovable Row Level Security Flaw Means for Your App

CVE-2025-48757 put missing row level security in Lovable-generated apps on the record. What it says, what it does not, and how to check whether your own app is affected.

Dr. Security3 MIN READ

๐Ÿ’ก The short version: CVE-2025-48757 is the public record that apps generated by Lovable could ship with insufficient row level security, so people with no account could read or write database tables. If you have a Lovable app on Supabase, check your policies today. The fix lives in your database, not in an update you wait for.

๐Ÿ“„ What the record says

The CVE description reads, in short: insufficient database row level security (RLS) policy in Lovable, through 2025-04-15, allows remote unauthenticated attackers to read or write to arbitrary database tables of generated sites. Scores and wording differ between databases, and the entry has been under analysis, so treat the exact rating as a detail. The mechanism is the point.

๐Ÿ™… What it does not say

  • It's not a bug in Supabase. RLS works as documented. The problem was apps created without the policies that make it protect anything.
  • It doesn't mean every Lovable app is open. It means the setup can be wrong, and nobody is forced to notice.
  • It isn't only about one date. The date in the record is a cut-off for the affected versions. An app made last week can still have a table with no policy if nobody looked.

You may also have seen the claim that a researcher found about 170 exposed apps among roughly 1,645 examined. That figure comes from secondary write-ups, so read it as "a real share", not a precise rate.

๐Ÿค” Why this keeps happening

  1. An assistant writes code that works, and "works" is judged by the person using the app while signed in.
  2. The public Supabase key is, by design, in the browser. The only brake is RLS.
  3. Nothing on screen changes when a table is left open. No error, no warning in the preview. It just quietly works for everyone.

โฑ๏ธ Check your own app in 10 minutes

  1. In the Supabase dashboard, list your tables and look for any with RLS disabled.
  2. For each table with RLS on, read the policies. Search for using ( true ) on anything private.
  3. Check your views. They bypass RLS by default, because they're usually created by the postgres user.
  4. Open your live site, view the JavaScript and search for service_role or sb_secret_. That key bypasses RLS and must stay on a server.
  5. Open a private window and request a table with only the public key. If rows come back that you wouldn't hand to a stranger, fix the policy.
Where you lookWhat it tells you
Supabase table listWhich tables have RLS on
Policies tabWho is allowed to do what
Your built JavaScriptWhether a secret key shipped
A private browser windowWhat a stranger can actually reach

๐Ÿ› ๏ธ If you find a problem

  • Turn RLS on and add the narrowest policy that keeps the app working. Our RLS guide has copy-paste examples.
  • If a secret key was ever public, rotate it. A key that has been exposed should be treated as known.
  • Look at your logs for unusual reads. If personal data was readable, find out what your legal duties are where your users live.

๐Ÿš€ Want a second pair of eyes? The free scan checks your live site for keys left in public code, exposed files, security headers and email setup. Scan your site free. On paid plans, once you've verified ownership, the report also checks whether your Supabase backend answers to the public.

  • CVE-2025-48757
  • lovable vulnerability
  • lovable rls
  • supabase row level security
  • vibe coding security

FIND OUT WHAT YOU'RE EXPOSING.