StackMatch

Is your Lovable app showing emails without login? A 2-minute check and fix (2026)

Facts checked against the Crissy Field report and Supabase's docs.

On Nov 2, 2026, security firm Crissy Field and Handelsblatt published a scan of 159,041 Lovable projects found in Common Crawl. 34,545 used Supabase, and 24,664 sent database records as soon as the page loaded. With further read-only requests using the app's own public key, they found email addresses readable without login on 7,403 of those 24,664 sites (30%).

The researchers say that 30% is not a confirmed leak rate. Some emails may be public contact addresses or test data. But the usual cause is a well-known one: a Supabase table with row level security (RLS) off, or a policy that lets anyone read it. Here's how to check your own app in about 2 minutes and fix it.

Only check apps you own or have written permission to test.

Step 1: See what a logged-out visitor can read (1 minute)

Your app's front end ships a public key (the anon key, or a newer sb_publishable_… key). Anyone can see it, and it's supposed to be public. What matters is what that key can read when nobody is logged in.

  1. Browser way: open your live app in an incognito or private window, so you're logged out. Open DevTools (F12), go to the Network tab, reload, and filter by supabase.co. Click any request to /rest/v1/ and look at the Response. Are there rows with emails, names or phone numbers that a stranger shouldn't see?
  2. Terminal way: get your project URL and public key from Supabase (Project Settings → API Keys, or the Connect button), then ask for one row from each table that holds people's data:
    curl "https://YOUR-PROJECT.supabase.co/rest/v1/profiles?select=*&limit=1" \
      -H "apikey: YOUR_ANON_OR_PUBLISHABLE_KEY"
    Repeat for users, orders, contacts, waitlist, messages and any other table you have.

How to read the result: [] (an empty list) or a permission error means a logged-out visitor can't read that table. Real rows mean they can. If those rows hold personal data, fix it now. Use only the public key for this test: the service_role or secret key skips RLS, so it always returns everything and tells you nothing.

Step 2: Look for "Unrestricted" tables (30 seconds)

In the Supabase dashboard, open Table Editor. A table with RLS turned off shows a red Unrestricted label next to its name. Any Unrestricted table in the public schema can usually be read and changed by anyone who has your public key.

RLS on doesn't always mean safe. A policy like using (true) for the anon or public role still lets everyone read every row, and using (true) for authenticated lets any signed-up stranger read it. Check the Policies page (Authentication → Policies).

Step 3: Turn RLS on and add owner-only policies

Open the SQL Editor and run this, swapping in your table and column names. This example assumes each row has a user_id column that holds the owner's auth user id:

-- 1. Turn on row level security
alter table public.orders enable row level security;

-- 2. Signed-in users can read only their own rows
create policy "Users can read own orders"
on public.orders for select
to authenticated
using ( (select auth.uid()) = user_id );

-- 3. ...and insert or update only their own rows
create policy "Users can insert own orders"
on public.orders for insert
to authenticated
with check ( (select auth.uid()) = user_id );

create policy "Users can update own orders"
on public.orders for update
to authenticated
using ( (select auth.uid()) = user_id )
with check ( (select auth.uid()) = user_id );

For a profiles table where the row's id is the user's id, use (select auth.uid()) = id instead. Once RLS is on, anything with no matching policy is blocked, so a logged-out visitor gets an empty list.

Test your app after this. If a page that should be public goes blank, add a narrow read policy for just that data. Don't turn RLS back off. A waitlist or contact form usually needs an insert policy for anon, never a select one. If saving now fails with "new row violates row-level security policy", see our RLS error fix guide.

Step 4: Run Security Advisor

In the dashboard, open Advisors → Security Advisor. It flags tables in the public schema with RLS disabled, tables with RLS on but no policies, and other risky settings. Fix every error, then run Step 1 again in incognito to confirm the rows are gone.

If real people's data was readable, rotating keys won't undo that, because the public key was always meant to be public. The fix is the policies. Think about whether you need to tell your users, and check what your local privacy law requires.

More checks

Questions

Is my Lovable app one of the 7,403?

Nobody can tell from the headline. The researchers didn't publish which sites. Run the logged-out check below on your own app: if a table with personal data returns rows without login, fix it.

Does 7,403 sites mean 7,403 leaks?

No. Crissy Field says the 30% figure (7,403 of the 24,664 sites it examined more closely) should not be read as a confirmed data leak rate. Some of those emails may be public contact addresses or test data.

Is the anon key a secret?

No. The anon or publishable key is meant to be in your app's front end. It's safe only when RLS is on and your policies are tight. Never put the service_role or secret key in front-end code.

Can I check someone else's app?

No. Only check apps you own or have written permission to test.

Some links are referral links; we may earn a commission at no extra cost to you. It never changes our recommendations.

Newsletter

Get the monthly "which AI tool" email

One short, beginner-friendly email a month. No spam.

Form not showing? Subscribe here