A Lovable app can be perfectly secure, or it can let strangers read your users' data without logging in. The difference almost always comes down to database permissions. In early November, the business daily Handelsblatt reported on research by security firm Crissy Field: using a public web archive, they found 159,041 Lovable projects, 34,545 of which used Supabase, and 7,403 sites where tables containing email addresses could be read without signing in. The good news is that you can check for this yourself, and fix most of it yourself.
This guide explains what the report did and did not find, then walks through checking your own Lovable app: Supabase RLS, the keys your frontend ships, public tables, environment variables, and how to have an AI review your permissions before launch. If you plan to move a Lovable project to your own domain, we also cover how environment variables and .env files are handled on RoamerHost Vibe Coding Hosting.
Research figures come from Crissy Field's original report; Supabase and Lovable features are summarized from their official documentation, checked on November 23, 2026. If anything has changed since, the official pages take precedence.
What the Lovable data leak report actually found
Crissy Field used Common Crawl, an open web archive, to identify 159,041 Lovable projects from December 2025 to September 2026, then focused on the 34,545 that used Supabase. Of those, 24,664 sites sent Supabase database records as soon as the page loaded, with no login or click required. The report is careful to say that this alone is not a vulnerability, because some data is meant to be public, such as product listings or blog posts.
The problem came next. Using the same key the page already exposed, the researchers made further read-only requests and retrieved more data. Across 7,403 of those 24,664 sites (about 30%), 10,560 tables contained email addresses. Examples in the report include a lifestyle forum with more than 80,000 profiles and 200,000 chat messages, ticket and food orders with phone numbers, addresses and payment details, more than 1,000 identity records with passport numbers, and contracts, invoices and internal messages.
The limitations are spelled out too. Email addresses may be public contact addresses or test data, so the 30% figure is not a confirmed leak rate. The Common Crawl sample is not representative of all Lovable apps, the researchers retrieved only parts of each dataset, and Lovable's own database features, launched in late 2025, were not examined. The report says Handelsblatt shared the findings with Lovable; no response from Lovable is included in the original report.
Its conclusion is worth keeping in mind: access control mistakes happen in code written by people and in code written by AI. Because Lovable projects connect to their databases in similar ways, the same misconfiguration is easier to find across many sites. For anyone building on Lovable, the practical takeaway is simple: before your app stores real customer data, someone needs to review its permissions.
First, the frontend key is supposed to be public
Many people open their browser's developer tools, spot a Supabase key in the page, and assume it has leaked. In a React plus Supabase app like the ones Lovable builds, the browser is meant to call Supabase directly with a key. Supabase has two kinds: the publishable key (starting with sb_publishable_, formerly the anon key), which the docs describe as safe to expose in web pages, apps and source code, and the secret key (starting with sb_secret_, formerly service_role), which belongs on the backend only.
What actually protects your data is Row Level Security (RLS). With RLS on and the right policies, a visitor holding the public key can only read what the policies allow, such as their own orders. According to the Supabase docs, a table in an exposed schema without RLS can be read and written by any role with a grant on it, and once RLS is enabled with no policies, nothing is readable through the API with a publishable key. The secret key bypasses every RLS policy, so if it ends up in your frontend, no policy will save you.
One more note: the Supabase docs say the legacy anon and service_role keys are planned for deprecation by the end of 2026. If your project still uses them, plan the switch while you are checking everything else.
Five steps to check your own app
Step 1: open Supabase's Security Advisor
This is the quickest place to start. In your Supabase project, open Security Advisor under Advisors. The findings that matter most here are rls_disabled_in_public (a public table without RLS, which anyone with the project URL can read, edit or delete), sensitive_columns_exposed (a table with password- or ID-like columns and no RLS), permissive_rls_policy (a policy such as USING (true) that lets everyone through) and security_definer_view (a view that runs with its creator's privileges and ignores RLS). The docs note that some findings may be intentional, so compare them with your own schema before changing anything.
Step 2: check RLS and policies on every table
Go through the Table Editor table by table. Every table in public should have RLS enabled. Then read the policies. For data only its owner should see, such as profiles, orders and messages, a policy usually compares the signed-in user's ID with the row's owner:
alter table public.orders enable row level security;
create policy "Members can view their own orders"
on public.orders for select
to authenticated
using ( (select auth.uid()) = user_id );
Watch for policies written as using (true) or select policies granted to anon: those let anyone read. That is fine for products or public posts, but not for mailing lists, contact forms or sign-up data. Forms are the most common trouble spot, where a site lets visitors insert a row and quietly lets everyone read all rows too.
Step 3: make sure only the public key reaches the browser
Search your code for service_role, sb_secret_ and SERVICE_ROLE, then open your live site and search for the same strings in the Sources or Network tab. Only the publishable or anon key should appear. Pay special attention to environment variables starting with VITE_ or NEXT_PUBLIC_: they are bundled into the page at build time and anyone can read them. Secret keys, database passwords and paid API keys such as OpenAI's must never use those prefixes. If a secret key has ever appeared in your frontend or on GitHub, treat it as leaked and rotate it as described below.
Step 4: test as a logged-out visitor and as another user
Open a private window, stay logged out, filter the Network tab for rest/v1, and click through every page to see what Supabase returns. Then create two test accounts, add data as account A, sign in as account B and see whether you can read A's data. It is low-tech, but it is the closest you will get to what a stranger sees. Lovable has built-in checks too: according to its docs, a Quick scan runs automatically on every publish and flags tables without RLS and rules that let everyone through, while the broader Deep scan has to be run manually. Lovable's docs also state that you remain responsible for your app's security and that these tools cannot guarantee it.
Step 5: have an AI review permissions before launch
If you already use Claude Code or Codex, ask it for a permissions review before you go live, and be specific: "List every Supabase table this project uses, explain who can read and write each one under its RLS policies, flag any table a logged-out visitor can read, and check whether a secret or service_role key appears anywhere in the frontend code or environment variables." Then check its answer against the principles in step 2. Crissy Field's report also points out that automated checks are no substitute for a professional security assessment. If your app handles ID documents or payments, have an experienced person review it, and repeat the checks after every significant change.
If your data is exposed, do this first
Order matters: close the door, then change the locks. Enable RLS on the affected tables, add the right policies, and confirm in a private window that the data is no longer readable. If a secret or service_role key was ever exposed in the frontend, on GitHub or anywhere public, follow Supabase's guide to rotating leaked keys: fix the cause first, create a new secret key under Settings, API Keys, replace it everywhere, then delete the old one (this cannot be undone). If the leaked key is a legacy service_role key, deactivate the legacy keys on the same page, move your frontend to a publishable key, and revoke the legacy JWT secret as the docs describe.
Then think about who may have seen the data. If the tables held members' emails, phone numbers, addresses or ID details, the laws where you and your users live may require you to notify them or a regulator, so check with a legal professional. Also check whether data was changed or deleted: a table without RLS may be writable as well as readable.
Environment variables: what can be public and what never can
The rule of thumb: variables bundled into the frontend usually start with VITE_, NEXT_PUBLIC_ or REACT_APP_, and should only hold values that are public anyway, such as your Supabase URL and publishable key. Secret keys, database passwords and AI or payment API keys belong in environment variables read by backend code, or in Supabase Edge Function secrets. Do not push .env to GitHub, even in a private repository; plenty of leaks start in a repo that was supposed to be private.
When you deploy a Lovable project on Vibe Coding Hosting, a .env file you upload or pull in from GitHub is not deployed. Only public variables such as VITE_ and NEXT_PUBLIC_ are passed into the build, and the deployment log lists their names. Other secrets are set as environment variables on the project page, stored encrypted and never shown again after you save them. That prevents the whole .env file from ending up on your site, as long as you have not given a secret a public prefix.
What Vibe Coding Hosting can and cannot help with
To be clear about the boundary: after you move a Lovable project to Vibe Coding Hosting, your database and user login stay in your own Supabase project. You set the RLS policies there, and the platform does not manage or back up your Supabase data. Where the platform helps is with your code and secrets.
First, your own AI can help check things over MCP. Once Claude Code or Codex is connected to the Vibe Coding Hosting MCP endpoint, it can use search_files and read_file to look for hard-coded service_role or sb_secret_ values in your deployed code, and list_env to see which environment variables are set. The tool returns names only, never values, so the AI can spot a secret named with a VITE_ prefix without seeing the secret itself. The platform also hands the AI its deployment rules for Supabase projects, including enabling RLS on every table and never putting service_role in a public variable. There is no remote command execution tool, and an AI with deploy permission can change your code, so give tokens only to tools you trust.
Second, deployment. Connect the GitHub repository Lovable syncs to, and every change you make in Lovable updates your site. A new version goes live only after it passes a health check; if it fails, the previous version stays online, and you can roll back to any of the last 3 successful versions. The steps are in how to deploy a Lovable app to your own domain with GitHub, and Bolt projects work much the same way, as covered in putting a Bolt.new site on your own domain. After moving, add the new address to Site URL and Redirect URLs in Supabase's Authentication settings, or users will be sent back to the old address after logging in.
Which option fits
If your Lovable or Bolt app is built, you have checked its RLS, and you want it on your own domain with billing in Taiwan dollars, support in Chinese, and your own AI able to deploy and review code over MCP, choose Vibe Coding Hosting Basic, from NT$299/mo (NT$3,588 billed yearly), keeping your database and login in Supabase. If you would rather not configure Supabase and permissions yourself, and want an AI on the platform to build an app with accounts and a database from scratch, choose Vibe Coding Hosting Pro, averaging NT$999/mo billed yearly. It includes Roamer AI, new projects use a fixed Laravel and MariaDB stack with the database in the same plan, and Roamer AI does its best with imported code but cannot guarantee results. Compare both on Vibe Coding Hosting plans and pricing; every new purchase can be refunded in full within 30 days of payment. If what you really need is a company site or online store and you would rather not touch code, WP × Roamer AI is a better fit.
FAQ
Q: Is Lovable secure?
It depends on whether your database permissions are set up correctly. Most Lovable apps store data in Supabase, and the browser queries the database directly with a public key, so security depends on the RLS policies on each table. Of the 24,664 sites Crissy Field examined, 7,403 exposed tables containing email addresses, though the report stresses this is not a confirmed leak rate. Working through the five steps above will catch most problems.
Q: I can see my Supabase anon key in the page source. Has it leaked?
No. The anon key, now called the publishable key, is designed for frontend use, and Supabase's docs say it is safe to expose. What you need to worry about is a secret or service_role key in the frontend, or tables without RLS. The first means rotating keys right away; the second means enabling RLS and writing proper policies.
Q: After enabling RLS my app shows no data. What now?
That is expected. Per the Supabase docs, with RLS on and no policies, nothing is readable with the public key. Write policies based on what each table holds: public data readable by everyone, member data readable and writable only by its owner. You can ask your AI to draft policies for each table and review them one by one.
Q: If I move my Lovable app to Vibe Coding Hosting, do I still need to worry about RLS?
Yes. What moves is the frontend; your database and login remain in your own Supabase project, where you set RLS. The platform handles secret storage and deployment: .env is not deployed, environment variables are stored encrypted, and your AI can check over MCP whether any secrets are hard-coded.
Q: Is Lovable's built-in security scan enough?
According to Lovable's docs, a Quick scan runs on every publish and flags tables without RLS and rules that let everyone through, while the broader Deep scan must be run manually. The same docs say these tools cannot guarantee complete security. Run both, then add Supabase's Security Advisor and the hands-on test in step 4.
Sources
- Crissy Field: Lovable: Many Apps Built on the Platform Expose Sensitive Data
- Handelsblatt: report of November 2, 2026
- Supabase: Row Level Security, API keys, Database Advisors, Rotate a leaked or compromised API key
- Lovable: Security
- RoamerHost: Vibe Coding Hosting: supported stacks, MCP permissions and limits