caelo

Caelo › Guides › Is my Lovable app secure?

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

By Arthi Arumugam, Irth Labs · Published · Updated

Short answerAn 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.

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. Act on a finding

Follow the fix in your report and run Caelo again. If Git could commit an untracked file containing secrets, preview a US$19 quick fix for that file.

For findings that need an engineer, Irth Labs offers a US$490 App Health Check. You receive a written report within 48 hours and a fixed repair quote. The fee counts toward the repair if you proceed.

Book the App Health Check See repair services

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