cd /news/ai-safety/is-my-lovable-app-secure-a-10-minute… · home › topics › ai-safety › article
[ARTICLE · art-177460] src=dev.to ↗ pub= topic=ai-safety verified=true sentiment=↓ negative

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

A developer published a 10-minute self-check for founders to verify whether apps built with Lovable and Supabase are secure, warning that such apps are not secure by default because the AI builder does not reliably configure Row Level Security or keep secret keys out of the browser. The guide cites third-party reports that CVE-2025-48757 affected more than 170 Lovable apps lacking proper RLS, and that an informal review of 50 deployed Lovable repositories found 89% had no RLS and 34% exposed the service-role key in client code. It walks through cross-user data testing, running Lovable's scan and Supabase's Security Advisor, searching code for leaked keys, probing admin routes, and auditing accounts and 2FA.

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 playbook: Securing agents and AI tools
by read4 min views6 publishedNov 27, 2026

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, instead of repeating it here.

I have not measured how common these problems are, so here is what third parties report. According to Superblocks, 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 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, 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.

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

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.

── more in #ai-safety 4 stories · sorted by recency
── more on @lovable 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/is-my-lovable-app-se…] indexed:0 read:4min 2026-11-27 · —