{"slug": "is-my-lovable-app-secure-a-10-minute-self-check", "title": "Is my Lovable app secure? A 10-minute self-check", "summary": "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.", "body_md": "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.\n\nThis 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.\n\nI 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.\n\nOpen 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.\n\nLovable 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).\n\nUse 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).\n\nIn 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).\n\nIs 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.\n\nWrite 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.\n\nAny 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.\n\nIf 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.\n\nIf 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).\n\nAn 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.", "url": "https://wpnews.pro/news/is-my-lovable-app-secure-a-10-minute-self-check", "canonical_source": "https://dev.to/lucagennaro/is-my-lovable-app-secure-a-10-minute-self-check-5ap7", "published_at": "2026-11-27 20:08:41+00:00", "updated_at": "2026-11-27 20:14:23.437967+00:00", "lang": "en", "topics": ["ai-safety", "ai-tools", "ai-products"], "entities": ["Lovable", "Supabase", "GitHub", "Superblocks", "CVE-2025-48757"], "also_reported_by": [], "takeaway": "Apps generated by Lovable are not secure by default: test with two users in separate workspaces, treat any service_role or secret key in front-end code or VITE_/NEXT_PUBLIC_ variables as leaked and rotate it, and remember that a scan finding 'a policy exists' does not prove RLS actually blocks acces", "recommendation": {"advice": "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.", "playbook": "agent-security", "playbook_url": "https://wpnews.pro/playbooks/agent-security"}, "alternates": {"html": "https://wpnews.pro/news/is-my-lovable-app-secure-a-10-minute-self-check", "markdown": "https://wpnews.pro/news/is-my-lovable-app-secure-a-10-minute-self-check.md", "text": "https://wpnews.pro/news/is-my-lovable-app-secure-a-10-minute-self-check.txt", "jsonld": "https://wpnews.pro/news/is-my-lovable-app-secure-a-10-minute-self-check.jsonld"}}