Home / Guides / CVE-2025-48757 explained (Lovable + Supabase RLS)

CVE-2025-48757 explained (Lovable + Supabase RLS)

What the critical Lovable/Supabase RLS CVE was about, what the researcher found, and what to do on your app today.

Check your live site

This free scan can't read your tables. It can tell you if the key that bypasses RLS leaked. Paste your lovable.app URL to check.

Uses 1 of your 3 free scans today; a site scanned in the last 24 hours answers from that scan. Passive and read-only: we only look at what any browser can see. Only check sites you own or may test.

What the free scan checks

  • Leaked keys in your live JavaScript (AI, payment and cloud keys), including a Supabase service_role key
  • Files that should never be public, like /.env and /.git
  • Supabase and Firebase secrets in the browser: an sb_secret_ key, a Supabase access token or a Firebase service-account file
  • HTTPS and security headers (CSP, HSTS, clickjacking protection)

It only reads what any visitor's browser can see. It doesn't log in, read your tables or check App Check.

Related free check: Is your Supabase app exposing more than it should?

CVE-2025-48757 (CVSS 9.3) describes insufficient Row Level Security on Lovable-generated apps, allowing unauthenticated access to database tables via the public anon key. The supplier disputes the CVE, arguing customers own their data protection — which is exactly why you should verify your own project.

The researcher's write-up reported 303 vulnerable endpoints across 170 of 1,645 analyzed Lovable projects (~10.3%), including exposed emails and other PII (statement).

What you should do

  1. Open Supabase Security Advisor and fix every RLS finding.
  2. Confirm no service_role key is in the client.
  3. Test logged-out access to your tables.
Copy-paste into your AI builder
Assume this app may be affected by missing Supabase RLS (CVE-2025-48757 class issues). Enable RLS on all tables, replace any USING (true) policies on sensitive data, remove service_role from the client, and summarize remaining risks.

Related: Enable RLS · Is my Lovable app secure?

Scan your app free

Paste your URL. ShipLatch checks for leaked keys, exposed /.env and /.git, and flags Supabase/Firebase so you know what to lock down. The free scan finds the issues; the $29 Fix Pack gives you fix prompts written for your app and re-scans that prove each fix worked.

Scan free at shiplatch.com → See the Fix Pack

Want the whole pre-launch process in one place? See what's inside App Security for Vibe Coders, our $9 PDF playbook, or go straight to checkout.

More guides