Is my Lovable app secure?
A practical checklist for Lovable apps on Supabase: leaked keys, RLS, .env exposure, and what a free passive scan can catch.
Check your live site
Paste your lovable.app link. In about 10 seconds you'll see if a key that skips your database rules is sitting in your live JavaScript.
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_rolekey - Files that should never be public, like
/.envand/.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?
Lovable ships full-stack apps fast, usually with a Supabase backend. The speed is the point — and so is the risk. The same failure modes show up again and again.
What usually goes wrong
- Supabase
service_rolekey in the frontend. That key bypasses Row Level Security. If it is in your bundle, anyone can read and write your database. - RLS off or too open. Tracked as CVE-2025-48757. One 2025 scan found inadequate RLS on 170 of 1,645 Lovable projects (researcher's statement). Lovable disputes the CVE framing; the misconfiguration risk is still real.
- Secret API keys in client code (OpenAI, Stripe
sk_live_, etc.). - Public
/.envor/.giton the deployed host.
2-minute self-check
- Open your live site → DevTools → Network → reload → search responses for
service_role,sk-,sk_live_. - Visit
https://your-app/.envand/.git/HEAD. Both should 404. - In Supabase → Advisors → Security Advisor, fix every red item.
Audit this Lovable + Supabase app for security. 1) Remove any service_role key from client code; use the anon key only in the browser. 2) Enable RLS on every table with policies based on auth.uid(). 3) Move OpenAI/Stripe secret calls into Edge Functions. 4) Confirm .env is not in the public folder.
Related: Enable Supabase RLS · Exposed service_role key · Lovable checklist
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.
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.