Security scanner for Lovable apps: Lovable's built-in scan, plus what to check on the live URL
Updated 13 November 2026
Looking for a security scanner for a Lovable app? Start with Lovable's own Quick scan (it runs when you publish) and Deep scan in the Security view. Those look at your project from the inside. Then check the live URL from the outside, the way a stranger sees it: leaked keys in the JavaScript, tables anyone can read, public files and missing headers. This guide covers both, and how to keep checking after every prompt.
Check your own app for this, free.
Paste your live URL. ShipCheck looks for leaked API keys in your page and JavaScript, exposed files like /.env and /.git, missing security headers, SSL certificate problems, domain expiry (custom domains only) and what Google sees without running JavaScript. You'll see your score without signing up.
Start with Lovable's built-in security review
Lovable includes its own security scanning, which inspects your project from the inside (code and Supabase configuration). Run it and fix what it reports. It's free and it knows your project structure. An outside-in scan like ShipCheck is complementary: it looks at the deployed site the way an attacker or Google sees it, and it re-checks on a schedule.
1. Secrets in your JavaScript bundle
Lovable apps are typically Vite + React single-page apps. In Vite, any environment variable prefixed with VITE_ is compiled into the JavaScript that every visitor downloads. If a Stripe secret key, OpenAI key or Supabase service key ever ends up in a VITE_ variable, or is pasted directly into a component, it's public.
How to check: open your live site, open DevTools → Sources (or view the files under /assets/), and search for sk_live, sk-, service_role, sb_secret_ and AKIA. Anything you find must be rotated (revoked and replaced), not just deleted, because it may already have been copied. Not sure whether a key is meant to be public? Type its first few characters into the free is this key safe? tool (nothing leaves your browser). The full check and what to do if a secret leaked is in how to check for leaked API keys.
The fix: secret keys belong in server-side code only, such as a Supabase Edge Function that reads them from Supabase secrets. The browser calls your function, never the third-party API directly.
2. Supabase Row Level Security
Most Lovable apps use Supabase. The Supabase URL and the anon/publishable key are always visible in your frontend; that's by design. What protects your data is Row Level Security (RLS). If a table in the exposed schema has RLS switched off, or has a policy like using (true), anyone can read it with the public key. Read is the Supabase anon key safe? for the full explanation and how to check RLS.
A common trap: a security tool confirms RLS is enabled, but a permissive policy still lets everyone read every row. The only reliable test is to try reading each table anonymously, which ShipCheck does for verified owners (counting rows with HEAD requests, never downloading data).
3. Exposed files and source maps
/.env: if a.envfile gets copied intopublic/, your host will serve it to anyone./.git/: only an issue if the repository root is deployed instead of the build output.- Source maps (
.js.map): they reveal your original source code and comments. Turn them off for production builds (build.sourcemap: falsein Vite) unless you upload them privately to an error tracker.
Watch out for false alarms when checking by hand: single-page apps often return the homepage HTML with status 200 for any path, so /.env "loading" isn't proof of a leak. Look at the content.
4. Security headers
Headers such as Content-Security-Policy, Strict-Transport-Security, X-Frame-Options and X-Content-Type-Options are set by your host, not your React code. Check them with curl -I https://your-app.com. How to set them on Lovable, Bolt, Vercel and Netlify: security headers guide.
5. Don't forget findability
Not security, but just as painful: client-rendered apps can look empty to crawlers that don't run JavaScript. Run curl https://your-app.com and check that your headline text, <title> and meta description are in the raw HTML. Also make sure a noindex tag or a canonical URL pointing at your *.lovable.app preview domain didn't survive into production. The seven-check walkthrough is in why your Lovable app isn't showing on Google.
6. Re-check after every big change
Every prompt can touch dozens of files. A key that was server-side last week can move into a component this week. That's why ShipCheck re-scans weekly (or daily) and emails you a diff: what's new, what's fixed, what's still open, with a copy-paste prompt to paste back into Lovable for each issue.
Copy-paste prompt: ask Lovable to audit itself
Audit this project for security issues before launch:
1. List every place an API key or secret is used. Any secret used in frontend code
or in a VITE_ variable must move to a Supabase Edge Function using Supabase secrets.
2. List every Supabase table, whether RLS is enabled, and what each policy allows.
Flag any table without RLS and any policy using "true" for anonymous users.
3. Make sure no .env file is in the public folder and production source maps are off.
Show me the changes before applying them.For the rest of a pre-launch pass (payments, updates, uptime), see the vibe-coded app security checklist.
What ShipCheck checks on a Lovable URL
The free scan checks your live site from the outside. It looks for known secret key formats in your HTML, up to 20 same-origin JavaScript files and their public source maps (it shows at most the first 6 characters of any key), public /.env and /.git, public source maps, whether security headers are present (not how strict a CSP is), the HTTP to HTTPS redirect, SSL and domain expiry (custom domains only), what search engines see without JavaScript, and whether you use Supabase or Firebase. It does not detect Next.js versions, and it does not probe Storage buckets. The read-only test of which Supabase tables answer anonymous reads needs a free account that has verified it owns the app; the anonymous scan does not query tables. Paid plans re-scan weekly on Solo ($12/mo) or daily on Builder ($29/mo), and they check once a day that your app is up, emailing you after two failed checks in a row.
FAQ
Is there a security scanner for Lovable apps?
Yes. Lovable has a built-in Quick scan that runs when you publish, and a Deep scan in the Security view. Those inspect the project from the inside. You should also scan the live URL from the outside for leaked keys, exposed files, missing headers and what Google sees without JavaScript. ShipCheck's free scan does that outside-in check.
Is Lovable's built-in security scan enough?
It's a good start, but it doesn't replace an outside-in check of the published site. An AI edit can move a key into a component or change a policy after the last scan, and crawlers and attackers see the live URL, not the editor.
What does ShipCheck's free scan check on a Lovable app?
Your live URL: known secret key formats in the page, JavaScript and public source maps; public /.env and /.git; source maps; whether security headers are present; the HTTPS redirect; SSL and domain expiry on custom domains; what search engines see without JavaScript; and whether you use Supabase or Firebase. It doesn't detect Next.js versions or probe Storage buckets. The Supabase table-read test needs a free account that has verified ownership.
Run the same checks on your app.
A free scan takes under a minute. No card, and no sign-up to see your score and the list of issues.