Bologu

Is Lovable safe? Security risks and how to check your app

Updated · by the Bologu team

Short answer: you can build a secure app with Lovable, but whether your app is safe depends on how its database permissions are set and whether any secret key ended up in the web page. Lovable checks part of this for you, but Lovable’s own documentation says its checks can’t guarantee that your app is secure. The rest is on the app’s owner.

What has happened with Lovable

  • CVE-2025-48757 (2025): researchers scanned 1,645 Lovable projects and found 170 of them (about 10%) with missing or overly loose RLS, across 303 endpoints. Anyone could use the public key in the page to read or change data without signing in. Exposed data included user names and emails, third-party API keys stored in tables, and payment status. The flaw is rated critical (CVSS 9.3).
  • The April 2026 incident: from February 3 to April 20, 2026, the chat history and source code of projects set to public could be viewed by other Lovable users who had the project link. Lovable shipped a fix within two hours of the public report and says private projects and Lovable Cloud were not affected. Projects that had been public were then made private.

The first was a mistake inside users’ apps (database permissions left open); the second was a problem with the platform itself. They need different fixes.

What Lovable checks for you today

  • Before you publish, it automatically checks the database, such as RLS rules and rules that let everyone in. When your package list changes, it checks for packages with known critical flaws.
  • Advanced checks read your whole app’s code (sign-in, permissions, private data, keys, payments). You run them from the Security view, free of charge.
  • Workspace admins can block publishing while critical issues are open.

These checks look at whether rules exist, not whether they are right for your app. A policy that lets any signed-in user read everyone else’s data can still pass an automatic check.

Check your Lovable app in 10 minutes

  1. Open the project’s Security view and run the advanced checks. Fix every critical finding before real users arrive.
  2. Make sure the project is private. If it was public between February and April 2026, assume its code and chat were read, and rotate every key that was ever in the code or pasted into the chat.
  3. Open Supabase → Advisors → Security Advisor: there must be no “RLS Disabled in Public” error (see the Supabase RLS guide).
  4. Sign in with two accounts and try to open one account’s data from the other. It must fail.
  5. Search the frontend code for secret keys such as OpenAI or Stripe secret keys (see how to check for leaked API keys).
  6. If you have an admin page, its checks must read the role from a database table, not from a value users can edit. If you take payments, webhooks must verify the provider’s signature.

Prompt to have Lovable review it

Review this Lovable project's security before launch.
1. List every database table and storage bucket the app uses. For each one, show whether RLS
   is on and every policy. Users must only read and change their own rows; admin-only tables
   must check the role from a roles table, never from user_metadata.
2. Search the frontend code for secret keys (OpenAI, Stripe secret, database or Supabase
   secret keys, webhook secrets). Move each one into an Edge Function / server secret and
   tell me which keys I must rotate.
3. Check every Edge Function: it must verify the user's session, and payment webhooks must
   verify the provider's signature.
4. Check that prices, discounts and roles are decided on the server, not taken from the
   browser.
Show me every change, and the SQL I can run to prove that a signed-out visitor and a
normal user cannot read other users' data.

Let Bologu check it from the outside

The website scan (free) looks at your app the way a stranger sees it: leaked keys in the page, the Supabase tables the page calls, and admin tables or functions called from the browser. The Supabase account audit reads the policy on every table. Use them alongside Lovable’s checks; they look from different angles. See also the vibe coding security checklist.

Sources