A November 2026 security report found that some public Lovable projects using Supabase exposed database records without a login because their database access rules allowed it. This does not mean every Lovable app is unsafe, or that every public record is a breach. It means that if your app stores customer, employee, payment, health, or private business data, you must review its Supabase Row Level Security policies before you launch or share it.

Key takeaways

  • Crissy Field analyzed 159,041 Lovable projects and found 34,545 that used Supabase.
  • Of the projects examined more closely, 24,664 returned Supabase records when the site loaded without a login.
  • Email addresses appeared in 10,560 tables across 7,403 sites, but the researchers say this is not a confirmed data-leak rate.
  • Supabase Row Level Security, or RLS, is the database feature that decides which rows a visitor or signed-in user can read or change.
  • A publishable Supabase key can appear in browser code when RLS is correctly configured. A secret key must never appear there.

What the Lovable report found

The Crissy Field report examined Lovable projects found in Common Crawl data from December 2025 through September 2026. The researchers focused on projects connected to Supabase because the integration was practical to analyze at scale. They did not assess Lovable’s newer database features.

The report identified 159,041 Lovable projects, of which 34,545 used Supabase. It found 24,664 sites that sent Supabase records on initial page load without requiring a sign-in. That number alone does not prove a problem. A public product catalog, event schedule, blog posts, and public job listings are all valid examples of data that an application may intentionally return to anonymous visitors.

The concern came from further read-only checks. The researchers found tables containing email addresses in 10,560 tables across 7,403 of those 24,664 sites. The report is careful about the limit of that result: an email address can be public contact information or test data, and private records may not contain an email address at all. So the 30% figure is not a confirmed rate of privacy leaks.

Still, the examples described in the report are serious. They included profiles, chat messages, ticket and food-sale records, addresses, internal email summaries, contracts, invoices, photo albums, WhatsApp communications, and identity-document details. Handelsblatt reported on the investigation on November 3, 2026, after reviewing the issue and confronting Lovable. Its report described sensitive information available on large numbers of sites built with the AI service.

This is primarily an access-control problem in individual applications. A database can be online, reachable through an API, and connected to a polished login page while still returning data to people who should not see it. The login screen is not the security boundary. The database rules are.

Why AI-built apps can make this mistake easier to ship

Lovable and similar tools make it possible to create a working application from a short description. That is useful for prototypes, internal tools, landing pages, and early product work. But a generated app can move from “demo” to “collecting real customer information” very quickly.

Security work often appears after the happy path works. You ask an AI builder for sign-up, profiles, orders, a dashboard, and a database. It creates screens and tables. You test with your own account, see your data, and the app feels finished. But the important question is different: what happens when a visitor has no account, or when User B tries to access User A’s records?

This is not unique to Lovable. Axios reported in May 2026 that security researchers had found publicly accessible assets across apps created with Lovable, Base44, Replit, and Netlify, including some with sensitive corporate data. The recurring lesson is simple: fast app generation reduces the work needed to build software, but it does not remove the need to define and test who can access data. Axios’s coverage placed the issue in that wider AI-generated application security problem.

Think of an AI builder as a fast junior development team that can write a lot of code in minutes. It can help you get started. You still need to review the permissions, secrets, data flow, and business rules before real users trust you with their information.

How Supabase Row Level Security protects data

Supabase exposes a Data API so a browser or mobile application can work with your database. This is why a Supabase publishable key can be present in client-side code. The key identifies the project. It is not supposed to be the thing that keeps private data private.

The protection comes from PostgreSQL Row Level Security. RLS evaluates each database request and decides which rows the current caller may read, add, update, or delete. Supabase documents that tables in an exposed schema need RLS and appropriately narrow policies. A table without RLS can be readable or writable by roles that have the required database grants. See the Supabase RLS documentation for the platform’s current guidance.

For a personal dashboard, the usual rule is: a signed-in user may access only rows where the row’s user_id equals that user’s authenticated ID. You need separate policies for reading, creating, editing, and deleting because those are separate actions.

LayerWhat it doesWhat it does not prove
Login pageLets a user sign in.That database records are isolated by user.
Supabase publishable keyLets browser code call the Supabase API.That a caller has permission to read private rows.
RLS policyAllows or denies access to rows in the database.That your business rule is correct unless you test it.
Secret keyGives server-side code elevated access for approved tasks.Safe use in a browser. It must remain server-side.

RLS is a strong control because it runs at the database layer. A user can change the browser UI, inspect network requests, or call an API directly. They still should not receive a row that the database policy denies.

A beginner-safe RLS example for a personal orders table

Suppose you are building an order tracker. Each customer should see only their own orders. Start by storing the owner in every row. In Supabase, the authenticated user ID is available through auth.uid().

The following PostgreSQL creates a basic table, enables RLS, and adds policies for signed-in users. Run SQL only in a project you own and understand. Adapt the table and column names to your application.

SQL
create table public.orders (
  id bigint generated by default as identity primary key,
  user_id uuid not null references auth.users(id),
  item_name text not null,
  created_at timestamptz not null default now()
);

alter table public.orders enable row level security;

create policy "Users can read their own orders"
on public.orders
for select
to authenticated
using ((select auth.uid()) = user_id);

create policy "Users can create their own orders"
on public.orders
for insert
to authenticated
with check ((select auth.uid()) = user_id);

create policy "Users can update their own orders"
on public.orders
for update
to authenticated
using ((select auth.uid()) = user_id)
with check ((select auth.uid()) = user_id);

create policy "Users can delete their own orders"
on public.orders
for delete
to authenticated
using ((select auth.uid()) = user_id);

The select policy limits reads. The insert policy prevents a signed-in customer from creating an order that claims another customer as its owner. The update policy checks both the existing row and the new version of the row. The delete policy limits deletion to a user’s own rows.

Do not copy this policy into every table without thinking. A team project needs a membership table. An administrator may need a separate, carefully designed path. A public product catalog may intentionally allow anonymous reads but should not allow anonymous changes. Database security is business logic written as rules.

A dangerous policy to avoid

A policy such as using (true) means every row matches. That can be correct for a table of public articles. It is usually wrong for profiles, orders, support tickets, invoices, messages, and uploaded files.

SQL
-- Do not use this for private customer data.
create policy "Everyone can read orders"
on public.orders
for select
to anon
using (true);

Also avoid treating “signed in” as the full permission check. A policy that lets every authenticated user read every row is still too broad for most customer-facing tables. Authentication tells you who the user is. Authorization decides what that specific user may do.

What to check in a Lovable app before sharing it

Start with the data, not the pages. Make a list of every table, storage bucket, API endpoint, third-party integration, and form that handles data. Mark anything containing personal data, payment-related information, private messages, documents, account records, employee information, or confidential business information.

  1. Open your Supabase project and inspect every table in an exposed schema. Confirm that RLS is enabled for every table that should not be broadly public.
  2. Read each policy in plain English. Write down who can select, insert, update, and delete rows. If you cannot explain the rule, do not ship it yet.
  3. Create two normal test accounts. Add private data under Account A, then sign in as Account B. Confirm that B cannot view, edit, delete, or guess A’s records.
  4. Test anonymous access in a private browser window. A visitor with no account should receive only data you deliberately made public.
  5. Review file storage separately. A private database table does not automatically make an uploaded file private. Check bucket settings and storage policies.
  6. Look for secrets in your app’s client-side settings, source repository, and generated browser bundle. Rotate any secret that may have been exposed.
  7. Run the Supabase Security Advisor, then investigate each finding instead of blindly suppressing it.

Supabase’s current Advisors documentation says its Security Advisor can flag issues including RLS disabled in public schemas, permissive policies, sensitive columns exposed through the Data API, and public storage bucket settings. It is a useful first pass, not a replacement for an access-control test with real user roles. Read the Advisors documentation before relying on its findings.

Keep publishable keys and secret keys separate

Supabase now uses publishable and secret API keys, while older projects may still show legacy anon and service_role keys. The names changed, but the basic rule remains: browser code can use a publishable key, and private server-side code can use a secret key.

Supabase states that a secret key bypasses RLS and must never be placed in a browser, mobile app, public repository, or client-side environment variable. If an AI tool, tutorial, or generated code tells you to put a secret key in frontend code so that something “just works,” stop and change the design. Put that privileged operation in backend code, an Edge Function, or a server endpoint that performs its own authorization checks.

The Supabase data-security guide explains that publishable keys are designed to work with RLS, while secret and service-role keys bypass those rules. This distinction matters more than the word “key.” One is expected to be visible to application users. The other is a master credential.

When you need a security review

You can handle basic checks yourself when your project is small, the data is low risk, and you understand every policy. But get experienced help before launch when the app handles identity documents, health information, financial records, payment flows, employment information, children’s data, contracts, confidential company information, or a large user base.

Ask the reviewer to focus on authorization testing, Supabase RLS policies, storage access, backend functions, secrets, user roles, account separation, audit logging, and third-party APIs. Give them a clear list of intended access rules. “Customers see their own invoices, support staff see assigned tickets, and finance admins see all invoices” is a reviewable specification. “Make it secure” is not.

Finally, repeat the review after major changes. A new admin dashboard, export feature, file upload, AI summary workflow, or integration can create a new path to the same private data. The Crissy Field findings are a reminder that an app can look complete while a simple permission mistake remains hidden underneath.

Frequently asked questions

Does the report mean every Lovable app leaks data?

No. The report did not claim that every Lovable project leaks data. It found that many analyzed projects returned database records without login and that some contained sensitive information. The researchers also said the email-address figure is not a confirmed data-leak rate and their Common Crawl sample does not represent every Lovable application.

What is Supabase Row Level Security?

Row Level Security is a PostgreSQL feature that applies permission rules to individual rows. In a customer table, it can enforce that a signed-in person reads and changes only rows that belong to that person.

Is it safe to expose a Supabase publishable key in a web app?

Yes, when it is a publishable key and your RLS policies and database grants are correctly configured. It is not safe to expose a Supabase secret key or legacy service-role key because those credentials bypass RLS.

How can I test whether users can see each other’s data?

Create two ordinary test accounts. Add private records with the first account, sign in with the second account, and verify that the second account cannot read, edit, or delete the first account’s records. Repeat the test while signed out in a private browser window.

Do automated security checks replace a human review?

No. Automated checks can find common problems such as RLS being disabled or policies that are too broad. They cannot reliably decide whether your business rules correctly separate customers, employees, administrators, and outside users.

Based on reporting by Crissy Field, Handelsblatt, Axios and Supabase.