Vibe coding security checklist: 12 checks before real users
Twelve security checks for apps built with Lovable, Bolt, v0, Cursor or Replit, each with a quick way to verify it before real users arrive.
Updated
Short answer: before real users arrive, make sure each user can only reach their own data, no secret key ships to the browser, server code checks who is calling, and nobody can run up your bills. The twelve checks below cover that, each with a quick way to verify it.
These checks apply whether you built with Lovable, Bolt, v0, Cursor or Replit. The names differ: Supabase calls database access rules Row Level Security, Firebase calls them Security Rules. The idea is the same.
1. Every table has access rules switched on
If your app reads the database from the browser, the database itself must decide who sees what. How to check: in Supabase, open Advisors → Security Advisor and look for tables with RLS disabled. In Firebase, read your Firestore and Storage rules for anything that allows all reads or writes.
2. No rule says "allow everyone"
AI tools sometimes make an error go away by writing a rule that allows every request. How to check: search your policies for using (true), or Firebase rules for allow read, write: if true.
3. Users can only reach their own records
This is the test that matters most. How to check: create two accounts. Add data as user A. Log in as user B and try to open A's pages, including by changing ids in the URL. Then log out and try again.
4. No secret keys in the browser
Anything in front-end code ships to every visitor. In Vite apps that includes variables starting with VITE_. In Next.js apps it includes those starting with NEXT_PUBLIC_. How to check: open your live app, press F12, and search the loaded JavaScript for sk_, sk-, service_role and secret.
5. Leaked keys are rotated, not just deleted
Removing a key from the code does not remove it from old builds or Git history. How to check: for every key that was ever in the code, confirm you created a new one and revoked the old one in the provider's dashboard.
6. Server code checks who is calling
API routes, Edge Functions and server actions must check the logged-in user and that they own the record they are touching. Hiding a button in the UI is not a check. How to check: call one of your endpoints with no login, or with user B's login and user A's record id. It should refuse.
7. Users cannot make themselves admin
If a role or admin flag sits in a table users can update, any user can promote themselves. How to check: find where roles are stored and confirm users have no write access to that column or table.
8. Uploaded files are private
Files in a public bucket can be opened by anyone with the link. How to check: upload a file, copy its URL, and open it in a private browser window while logged out. Personal files should not load.
9. Login settings fit a live app
How to check: redirect URLs list only your real domains, email confirmation is on if you need real addresses, and old test accounts with weak passwords are gone.
10. Anything that costs money is behind login and limits
An open endpoint that calls OpenAI or sends SMS is an invitation to run up your bill. How to check: every paid call requires a logged-in user, and you have a per-user limit and a spending cap set in the provider's dashboard where it offers one.
11. The server decides prices and permissions
Never trust a price, a discount or a role sent from the browser. Anyone can edit the request. How to check: find your checkout code and confirm the amount is looked up on the server, not passed in from the page.
12. Your packages are real and up to date
AI assistants sometimes suggest packages that are misspelled or do not exist, and attackers can register those names. How to check: read through package.json for names you do not recognise, and run npm audit.
What this checklist does not cover
It is a baseline, not a penetration test, and it does not cover legal requirements like GDPR or HIPAA. It also assumes you would notice if something went wrong. Set up error alerts and test that you can restore a database backup before you need to.
Building on Lovable? Read is Lovable secure? for the Supabase-specific details.