CVE-2025-48757 and Lovable: what the record says, and 6 checks to see if your Supabase data is exposed
If you built an app with Lovable, you may have seen the CVE number: CVE-2025-48757. This is what it says, what it means for your app, and the checks you can run yourself today. What the record says The CVE re
If you built an app with Lovable, you may have seen the CVE number: CVE-2025-48757. This is what it says, what it means for your app, and the checks you can run yourself today.
What the record says
The CVE record (published by MITRE, listed at cve.org and the National Vulnerability Database) describes it as an insufficient database Row-Level Security policy in Lovable, through 2025-04-15, that allows remote unauthenticated attackers to read or write arbitrary database tables of generated sites.
Two things worth knowing:
- Researcher Matt Palmer says he found the issue on March 20, 2025 and published a statement on it. Sources are linked at the bottom.
- The supplier disputes the CVE, on the basis that each customer's app is configured by that customer. That is a fair point to keep in mind, and it is also the useful one: whether your data is exposed depends on your own Row Level Security settings, not on a headline.
What it means for your app
Supabase apps expose a public API. The "anon" key in your front end is meant to be public. What protects your data is Row Level Security (RLS) on each table. With RLS off, or with a policy that says "allow everyone", anyone holding the anon key can read the table. With a loose write policy, they can change it.
This is not unique to one builder. Any tool that generates a Supabase app can leave a table without a proper policy.
6 checks, 10 minutes
- Open your Supabase dashboard, Table Editor. Every table in the public schema should show RLS enabled.
-
Read each policy. A policy of
using (true)means everyone. That is only right for data you want public. -
Check write policies too. Insert, update and delete need their own rules, scoped to
auth.uid(). - Test signed out. Call your table's REST URL with only the anon key. If you get rows back, the table is open.
- Test across users. Sign in as user A and try to read user B's row by changing the id.
- Look at views and functions. A view or a SECURITY DEFINER function can bypass the policies on the table beneath it.
The fix that is not a fix
Turning RLS off to make an error go away, or adding a catch-all policy, is what puts the data in public. Fix the policy instead: scope it to the signed-in user and test again.
What an outside scan can and cannot tell you
ProofForge's public-side scan never signs in, so it checks what a stranger can reach on your live site: exposed files, secret-shaped strings in the shipped code, and open endpoints. It cannot read your policies, and it will say "inconclusive" when it cannot know. For the cross-user check in step 5, ProofForge offers a free two-account test using two of your own test accounts.
Sources
- CVE record: https://www.cve.org/CVERecord?id=CVE-2025-48757
- Tenable summary, including the supplier's dispute: https://www.tenable.com/cve/CVE-2025-48757
- Researcher statement: https://mattpalmer.io/posts/2025/05/statement-on-CVE-2025-48757/
Check your own app from the outside, free. Run the free ProofForge scan on your live URL. No account needed for the first scan. It looks at your public site the way a stranger would and says pass, fail or inconclusive, so you know what is confirmed and what it could not see. One-time reports start at $9: see pricing. Building with an AI agent? There is an MCP server so it can check before it deploys.
Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes β full credit and traffic to the original publisher.