Probably not yet. Apps built with AI tools such as Lovable, Bolt, v0, Replit and Cursor come together remarkably fast, but they are rarely secure by default. The most common problems are database tables that anyone can read, secret API keys that end up in the browser, and logins that do not actually protect anything. The good news: most of these issues can be found and fixed in a few days. This checklist shows what to look at before real users and real data go into your app.
Key takeaways
- Lock down your database. If you use Supabase, turn on row-level security (RLS) for every table, with policies that check the logged-in user.
- Keep secret keys, such as Stripe, OpenAI and the Supabase service role key, out of the front end.
- A green security scan in your AI app builder means “no obvious issues”, not “secure”.
- Before launch, test the app while logged out and as a second user.
Why AI-built apps have security gaps
AI app builders are designed to get something working, and “working” is easy to see while “secure” is not. A table that anyone can read looks exactly like a table that only its owner can read, until someone tries. That is why the same few problems show up again and again.
The numbers back this up. In May 2025, for example, a security researcher found 303 exposed endpoints across 170 Lovable projects, roughly one in ten of the apps he analyzed, because their Supabase tables had no working row-level security (CVE-2025-48757). In 2026, a scan of more than 5,000 vibe-coded apps found that 40% exposed sensitive data. None of this means you should not use AI tools. It means the app they generate needs a review before launch, like any other code.
The 10-point security checklist for vibe-coded apps
1. Row-level security is on for every table
Row-level security (RLS) decides which rows each user can read or change. Without it, anyone who has your app’s public key, which every visitor does, can often read the whole table. Many vibe-coded apps use Supabase as their database. In its dashboard, every table should show RLS as enabled, and the Security Advisor lists the tables that do not. If your app uses Firebase or another backend, check its security rules in the same way.
2. Policies check the user, not just “true”
RLS is only as good as its policies. A policy written as using (true) is switched on but lets everyone in. Policies on personal data should compare the logged-in user, auth.uid(), with the user the row belongs to. Built-in security scans often only check that a policy exists, not that it protects anything.
3. No secret keys in the front end
Every visitor downloads your app’s front-end code, and anyone can read it in the browser’s developer tools. Search the built files for sk_live, sk- and service_role. The Supabase public (anon or publishable) key is meant to be public, as long as RLS protects your data. Secret keys for payments, AI services, email and the Supabase service role key never belong in the browser.
4. Secrets live in environment variables or server functions
Calls to Stripe, OpenAI or your email provider should go through a server-side function, such as a Supabase Edge Function, a serverless function on your host, or your own API, with the keys stored as secrets. If a secret key was ever in the front end, even briefly, rotate it: create a new key and delete the old one.
5. Logins and roles are enforced on the server
Hiding the admin button from regular users is not security. If a user can call the same database query or API directly, they can do what the button does. Check roles in your database policies or server functions, not only in the interface.
6. File storage is private where it should be
Uploaded invoices, ID documents and profile photos often sit in storage buckets. Make sure buckets with private files are not public, and that their access policies are as strict as your tables.
7. Input is validated on the server
Forms that only check input in the browser can be bypassed. Validate what users send on the server or in the database: required fields, lengths, file types and file sizes.
8. Packages are up to date
AI tools install packages freely and rarely update them. Run npm audit to find packages with known vulnerabilities, update them, and turn on automatic alerts in GitHub.
9. Payments are confirmed by the payment provider
Never mark an order as paid because the browser says so. Confirm payments with your provider’s webhooks, such as Stripe’s, and verify the webhook signature on the server.
10. Backups, logs and alerts are in place
Check that your database plan includes backups you can actually restore, and that someone is alerted when the app goes down or starts throwing errors. Without logs, you cannot tell what happened after an incident.
How to test your app’s security in 15 minutes
- Open the app in a private browser window, logged out, and try the addresses of pages that should need a login.
- Create two test accounts. Logged in as one, try to open the other’s records, for example by changing an ID in the address bar.
- Open the browser’s developer tools and search the loaded code for
sk_,secretandservice_role. - If you use Supabase, run the Security Advisor in its dashboard and fix every table it flags. On other backends, review the database security rules.
- Run
npm auditin the project and update what it reports.
If any of these tests shows data that should be private, treat it as urgent.
What to do if your app exposed data
- Close the gap first: turn on RLS and tighten the policies, or take the affected feature offline.
- Rotate every key that was exposed.
- Check your database and API logs to see what was accessed, and when.
- In Canada, a breach of personal information that creates a real risk of significant harm must be reported to the Office of the Privacy Commissioner of Canada under PIPEDA, and the affected people must be told. Keep a record of every breach, even small ones.
Are AI app builders safe to use?
Yes, as tools. Lovable, Bolt, v0, Replit and Cursor are all fast ways to build a working product, and their security features keep improving. But the app they generate is your responsibility, just like code written by a developer. Treat the built-in security scan as a first check, and have the app reviewed before it handles real customers, payments or personal data.
Get a second pair of eyes
Not sure your app passes every check? Our JavaScript developers review apps built with Lovable, Bolt, Cursor, Replit and v0 in a fixed-price launch check, with a written report within three business days. When you are ready to go live, read where to host a vibe-coded app in Canada.
Frequently asked questions
Is the Supabase anon key safe to expose?
Yes, the anon (or publishable) key is designed to be used in the browser. It is only safe when row-level security protects every table, because the key lets anyone send queries to your database. The service role (or secret) key bypasses RLS and must never be in the front end.
Does my app builder’s security scan make my app secure?
It helps, but it is not a guarantee. Several AI app builders, Lovable among them, now include one. Automated scans catch obvious issues, such as a table without RLS, but they often cannot tell whether a policy really limits access, or whether a secret key is hidden somewhere in the code. Use the scan, then test the app yourself or have it reviewed.
How do I check if row-level security is enabled?
In the Supabase dashboard, open the Table Editor: each table shows whether RLS is enabled. The Security Advisor lists tables without it. Then test with two accounts to confirm that each user only sees their own rows.
How much does a security review of a vibe-coded app cost?
It depends on the size of the app and how deep the review goes. A quick audit of a small app costs far less than a full review of a large one. The cost of our launch check is credited if you go ahead with our Launch package within 30 days.