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

> Source: <https://dev.to/lucagennaro/is-my-lovable-app-secure-a-10-minute-self-check-5ap7>
> Published: 2026-11-27 20:08:41+00:00

**Recommendation:** Before shipping a Lovable/Supabase app, sign up two users in separate workspaces and confirm neither can see the other's data, then grep the repo for service_role and secret keys and rotate any found.
More in the playbook "Securing agents and AI tools": <https://wpnews.pro/playbooks/agent-security>

It can be, but it isn't secure by default: whether your Lovable app is safe depends mostly on the database rules (Row Level Security, RLS) and on which keys end up in the browser, and the AI that built the app does not reliably get either one right. You can check the basics yourself in about ten minutes, without any tools, using only your own app and accounts.

This is a self-check for founders, not a security test. Read the rules, click through your own app, write down what looks wrong. For the technical detail behind each point I link to my longer article, [7 Row Level Security checks before shipping your Lovable/Supabase app](https://lucagennaro.com/supabase-rls-checklist), instead of repeating it here.

I have not measured how common these problems are, so here is what third parties report. According to [Superblocks](https://www.superblocks.com/blog/lovable-vulnerabilities), a vulnerability tracked as CVE-2025-48757 affected more than 170 Lovable apps whose tables lacked proper RLS, and Lovable's built-in scan at the time checked that policies existed, not whether they actually blocked access. According to a [DEV Community author](https://dev.to/tgoldi/is-lovable-actually-secure-i-checked-the-supabase-rls-on-50-apps-38o2) who manually reviewed 50 deployed Lovable repositories, 89% had no RLS and 34% had the service-role key in client code. That is one small, informal sample, so treat the percentages as a warning sign, not a statistic about your app. And according to the [Supabase documentation](https://supabase.com/docs/guides/database/postgres/row-level-security), a table in an exposed schema without RLS is readable and writable by any role with a grant on it, and a secret key must never be used in the browser.

Open your own app in a normal window and a private window. Sign up two test users, ideally in two different "companies" or workspaces, and create something private with the first one: a project, an invoice, a note. Now look at everything the second user can reach: lists, search, shared links, exports, the dashboard. If the second user sees anything of the first, you have the most serious kind of problem, and it is almost always a database rule, not a screen. Use only your own app and test accounts.

Lovable offers a security scan, and the Supabase dashboard has a built-in Security Advisor under Advisors. Run both and read every warning about RLS, exposed tables or functions. Know their limit: a scan that finds "a policy exists" does not prove the policy is right. A clean result is a good sign, not a clean bill of health. The technical fixes are in [check 1 and check 2 of the RLS article](https://lucagennaro.com/supabase-rls-checklist).

Use the search in your editor or GitHub repository for `service_role`, `secret`, `sk_`, `private` and `.env`. The public (anon/publishable) key in the browser is normal. A service-role or secret key, or a paid AI provider key, anywhere in front-end code or in a variable starting with `VITE_` or `NEXT_PUBLIC_` is not. If you find one, treat it as leaked: rotate it first, then ask for the call to be moved to a server function. More in [check 7](https://lucagennaro.com/supabase-rls-checklist).

In a private window, without signing in, open the address of an internal page: `/admin`, `/dashboard`, `/settings`. Then sign in as a normal user and try the admin pages. Hidden buttons are not security. If a page loads, or even loads and then redirects after showing data, the check lives in the screen and not in the database. See [check 3](https://lucagennaro.com/supabase-rls-checklist).

Is your GitHub repository public, and does it contain anything you would not print on a poster? Are there old collaborators, test accounts or admin invitations you forgot? Is two-factor authentication on for Lovable, Supabase, GitHub and your domain provider? Most real-world access to a small app comes through accounts, not clever exploits.

Write down the most sensitive thing your app stores: names and emails, payment status, documents, health or ID data. The answer sets how much checking you need. A to-do list with no personal data needs a light review. Customer contracts or personal documents deserve a proper look before you launch, and a second pair of eyes after every large AI-generated change.

Any problem in check 1, 3 or 4 means: stop sharing the app widely, fix it, then re-test with the same two accounts. Keep that test and run it again after every big change the AI makes to your database, because AI edits are exactly when rules get loosened to make an error message disappear.

If everything looks fine, you have covered the obvious ones, not all of them. This checklist does not look at policy logic, storage rules, database functions or business-logic abuse.

If your app holds other people's data and you would rather not guess, I do fixed-price written security reviews: **$150** for an audit with a written report, **$350** if I also fix the critical and high issues and check each fix with a test. It is all by email, no calls. I work with your written permission, on a local copy built from your code and migrations, never on real user data. You can see what a report looks like in my [public demo review](https://github.com/luca-gennaro/agency-client-hub/blob/main/REPORT.md) and the details on the [audit page](https://lucagennaro.com/security-audit).

An honest limit: I am not a certified penetration tester. What you get is careful, reproducible work with tests you can rerun yourself, not a certification or a guarantee that nothing else can go wrong.
