Beyond The Vibe, home

BlogProductionAdvent of Prod · Day 2

Can other users see my users' data?

Why apps from AI builders leak data without a login, the check you can run on your own app in ten minutes, and what my invoicing app does instead.

Florian van der Galiën

In autumn 2026 a German consultancy published an analysis of 159,041 projects built with one AI app builder. 34,545 of them used Supabase as their database. 24,664 of those sent database records to the browser as soon as the page loaded, with no login.

Some of that data is meant to be public. With further read-only requests, though, the researchers found email addresses in the tables of 7,403 of those sites. The report calls that an indicator, since an address can be a public contact or test data. The cases it describes include a forum with more than 200,000 readable chat messages and a service provider with over 1,000 records of identity details such as passport numbers.

So yes, other users can see your users’ data, unless a rule in the database or a check in your code stops them. The flaw has a name you can search for: missing or wrong row-level security.

Why a stranger can reach your tables

In the apps that study looked at, the browser talks to the database directly. To do that, the page carries a database key that anyone can read. Supabase’s documentation says of it: “Anyone can read it, so it only reaches what Row Level Security allows.”

Two things then stand between a visitor and a table. The role behind the key needs a grant for the operation, such as reading or changing. Row-level security (RLS) adds rules per row, called policies: who may read it and who may change it. With RLS on and no policy written yet, the key reaches nothing. With RLS off, the grants decide alone: “A table in an exposed schema without RLS is readable and writable by any role with a grant on it.”

Two ways an app reaches its database. Left: the browser uses a public key; with row-level security on, a policy decides per row, and with it off the role’s grants decide alone. Right: the browser talks to the app’s server and its code decides.

The record for CVE-2025-48757, published in May 2025, describes this for one builder: according to it, unauthenticated attackers could “read or write to arbitrary database tables of generated sites”. The entry notes that the supplier disputes it.

A rule that exists can still be wrong

The rules are code, and an AI writes them like any other code. In February 2026 The Register reported on an app that exposed 18,697 user records because an access check was written the wrong way round. The researcher’s summary: “The guard blocks the people it should allow and allows the people it should block.”

What catches this is a test that behaves like a user. At my day job, one project has a test that reads every database migration file as text and fails when a migration gives rights to anonymous users. A review there went through 99 access rules, with tests that act as a signed-in device inside a transaction that is rolled back. One finding was a database function that ran with its owner’s rights and that anonymous users could call to write data.

What my own app does instead

Kontura, my invoicing app, is built the other way round. Its database has no port open to the outside, and every request goes through server code. That code then has to check, on every route, whose data it hands out.

One of its tests is called a key never reaches another organization. It creates two organisations, takes the API key of the first and sends seven requests against the second one’s invoices and customers: read, change, delete, duplicate and more. Each has to come back as 404 not_found. The organisation is taken from the key and never from the request.

The database is a second line behind that. The role the app connects with may read and write rows and cannot change or drop tables. On its protected tables, among them the archive of issued invoices, it cannot update or delete either. I checked that on the production database on 28 October 2026.

Check your own app

Create two throwaway accounts in your app. As the first, create a record with made-up data and copy its address from the browser. Sign in as the second and open that address, then sign out and open it again. Both must be refused. That tests reading on one page only.

On Supabase, open the Security Advisor in the dashboard and look for rls_disabled_in_public: a table with row-level security off. Or run this in the SQL editor, where every line should say true:

select tablename, rowsecurity
from pg_tables
where schemaname = 'public';

true means row-level security is on, and a wrong policy can still leave the table open. This prompt has your agent read the policies:

Inspect how this app decides who may read and change which data. Read code,
migrations and configuration only: do not change anything, run scripts, send
requests to live services or use production credentials. Report file names
and line numbers. Never show the value of a key, token or connection
string, not in quoted code or search output either.

1. List every table, view and function with user data. Can the browser
   reach it directly, or only through server code?
2. For tables the browser can reach: which operations are granted to
   signed-out and signed-in users, is row-level security on, and what does
   each policy allow?
3. For views and functions: who may use them, and do they run with their
   owner's rights?
4. For server routes: where does the user or organisation ID come from? Flag
   every place that takes it from the request instead of the session.

Mark what you saw and what you inferred. Then propose tests, for a test
database, that sign in as user A and try to read and change user B's data.

This post is part of the checklist in Is my vibe-coded app production-ready?