# Is my Lovable app secure? A 15-minute self-check

Canonical: https://caelo.sh/guides/is-my-lovable-app-secure
Published: 2026-11-25 · Updated: 2026-11-27 · Arthi Arumugam, Caelo by Irth Labs

**Short answer:** An app built with Lovable (or Bolt, Replit, Cursor or v0) usually works before it is safe. The tool builds what you asked for, and security rules you never asked for are often missing. Check five things on your own app: every table has a database rule that limits rows to their owner, no secret key is in the browser, admin pages check the role on the server, orders are marked paid only by the payment provider, and a signed-out visitor gets nothing private.

## Why do AI-built apps ship with gaps?

AI app builders are good at the part you can see: screens, forms, flows. The rules nobody mentions, such as "a customer may only see their own orders", are the ones that get skipped. One 2026 preprint traced 55.5% of vibe-coded app vulnerabilities to security rules nobody stated, so the AI never built them.

In the same preprint of 200 vibe-coded apps, broken access control was the most common problem, found in 64% of the apps. Access control means: who is allowed to read or change which data. That is where to look first.

## The 15-minute self-check

1. Database rules. Open your database dashboard and list every table. Each one should have row level security switched on and at least one policy. A table with row level security switched off, or a rule that says "true", is readable by anyone who has your public key, and that key is in your app's browser code by design.
2. Rule logic. Read each policy in plain words. "Users can read rows where `user_id` equals their own id" is right. "Authenticated users can read all rows" means any stranger who signs up can read everyone's data.
3. Keys in the browser. Open your live site, then your browser's developer tools, and search the loaded JavaScript for words like `secret`, `sk_live` and `api_key`, and for the service_role key. Public keys (the anon or publishable key) are fine there. Anything secret is not.
4. Admin checks. If your app has an admin area, ask: is the admin check done on the server, or only by hiding a button? A flag such as `isAdmin` kept in the browser can be changed by anyone.
5. Payments. Find where an order becomes "paid". It should happen only after your payment provider confirms it to your server, through a verified webhook. If the browser can send "paid", so can anyone.
6. Signed-out test. Open a private window, stay signed out, and visit your private pages directly by their address. You should see a login screen, never data.

## What should you do with what you find?

If you find a table with no rule, or a secret key in the browser, treat it as urgent: fix the rule, and rotate the key (see our guide on leaked keys). Do not ask the AI tool to "make the error go away": fixes that weaken security to stop an error are a known pattern.

If you would rather have someone check it properly, the Irth Labs App Health Check is $490: a written report within 48 hours, with a fixed price to repair what we found. Or start with the free local check: run `npx caelo .` in the project folder on your own machine.

## Check your own app

1. Run the free local check: `npx caelo .` Caelo is a free, open source (MIT) command line tool and MCP server from Irth Labs that checks the files of an AI-built app for exposed API keys, Supabase and Firebase misconfigurations and `.env` files with real values. It runs on your machine, uploads nothing and uses no AI model. Each finding comes with a plain-English fix.
2. Follow the fix in the report and rerun Caelo. For an untracked, unignored file containing secrets, preview the US$19 quick fix. https://caelo.sh/fix
3. For an engineer's assessment, book the US$490 App Health Check. Irth Labs delivers a report and fixed repair quote, with credit toward the repair. https://www.irthlabs.com/start?service=app-health-check

## Questions

### Is Lovable itself insecure?

This is about the apps built with it, not the tool. Any AI builder produces what you describe; the security rules you do not describe are often missing. The same checks apply to Bolt, Replit, Cursor and v0 apps.

### Is the Supabase anon key in my code a leak?

No. The anon (publishable) key is meant to be public. It is safe only if every table has correct row level security. The service_role key is different: it ignores all rules and must never be in browser code or a public repository.

### Can I just ask the AI to make my app secure?

It helps, but it is not enough on its own. A peer-reviewed 2025 study found that letting AI repeatedly improve code without a human increased critical vulnerabilities by 37.6% after five rounds. Every fix needs a separate check.

### How long does a professional check take?

Our App Health Check delivers a written report within 48 hours, for $490, with a fixed repair quote.

## Sources

- [Deng, Fan and Meng, 2026. Understanding the (In)Security of Vibe-Coded Applications. Preprint.](https://arxiv.org/abs/2606.23130)
- [Shukla, Joshi and Syed. Security Degradation in Iterative AI Code Generation, IEEE-ISTAS 2025.](https://arxiv.org/abs/2506.11022)
- [Supabase docs: Row Level Security.](https://supabase.com/docs/guides/database/postgres/row-level-security)

## Related guides

- [What free tool can check a Lovable, Bolt or Cursor app for security issues before launch?](https://caelo.sh/guides/free-security-scanners-for-ai-built-apps)
- [How to check your Supabase row level security is actually working](https://caelo.sh/guides/supabase-rls-check)
- [Is it safe to expose the Supabase anon key in my frontend?](https://caelo.sh/guides/is-supabase-anon-key-safe-to-expose)
- [Can users get my AI-built app's paid features for free? Checking Stripe payments](https://caelo.sh/guides/stripe-webhook-security-ai-built-app)
- [Is my Bolt.new app secure? A self-check before you launch](https://caelo.sh/guides/is-my-bolt-app-secure)
- [Is my Replit app secure? Checks to run before you publish](https://caelo.sh/guides/is-my-replit-app-secure)
- [AI app builder security defaults, compared from their own docs (Nov 2026)](https://caelo.sh/guides/ai-app-builder-security-defaults-compared)
- [Are VITE_ environment variables safe for API keys?](https://caelo.sh/guides/vite-env-variables-exposed)
- [Supabase storage bucket public by mistake? How to lock it down](https://caelo.sh/guides/supabase-storage-bucket-public)
