Bolt: Supabase RLS turned off
Row Level Security (RLS) is the rule that says “each user can only see their own rows.” If it is off on a table, anyone holding your public key, which every visitor has, can read the whole table.
Free scan: check my app Just your web address. Results in seconds. No signup, no card.
Why it matters for your Bolt app
Bolt.new apps often connect to Supabase, and the code runs in the browser unless you ask for a server function.
Customer names, emails, orders or messages can be downloaded by a stranger in one request. This is exactly the problem reported in CVE-2025-48757, where a researcher found 170 of 1,645 Lovable-built apps exposing data.
How to check in five minutes
- Open your Supabase dashboard and go to Table Editor.
- Look for any table marked “RLS disabled” or “Unrestricted”.
- For each table, check there is a policy that limits rows to the signed-in user (for example user_id = auth.uid()).
What PeekLok’s scan checks
If your app uses Supabase and its public anon key is in your page code, PeekLok’s scan tries to read each table with that key and tells you which ones return data. It can’t see your policies, so a table that returns nothing may still be too open to signed-in users. The optional two-user test checks that for one table.
Fix prompt to paste into the Bolt chat
Turn on Row Level Security for every table in my Supabase database. For each table that holds user data, add policies so a signed-in user can only select, insert, update and delete rows where user_id equals auth.uid(). Do not use “true” as a policy. List every table and policy you changed. (This is a Bolt app using Supabase. Keep secrets in environment variables in your Supabase or hosting dashboard.)
After the AI makes changes, test again with two accounts. AI fixes can look right and still miss a table or route.
Make it a habit: every time you or the chat adds a new table, check that RLS is on for it and that its policies only let each user reach their own rows. New tables are the easiest ones to miss when you build fast.
Sources
- CVE-2025-48757 statement by Matt Palmer (170 of 1,645 Lovable apps exposed data)
- NIST NVD entry for CVE-2025-48757
- Supabase docs: Row Level Security
Related
- Does Supabase RLS apply to views? A check for Lovable and Bolt apps
- Can strangers sign up to my app if I hid the sign-up page? A Supabase check for Lovable and Bolt apps
- Bolt: Exposed anon or service role key
- Bolt: Open database tables
- Bolt: API keys in front-end code
- Bolt: Missing auth on endpoints
- Bolt: Missing security headers
- Bolt: One customer can see another’s data
Same issue in other builders:
All Bolt security guides · Supabase RLS turned off explained
Get a free scan
PeekLok checks your live app for secret keys in the page code, a Supabase service or anon key showing, Supabase tables anyone can read with the public key, and five browser security headers. If your app uses Supabase login, you can add two test logins and it checks whether one user can see the other’s data. Only scan apps you own. First scan free. Weekly re-checks will be $12 US a month once payments open.
