Vibe-coded app security 10-point check: Lovable, Bolt, Supabase, Stripe and Vercel cards around a shield, covering RLS, secret keys, sign-in, storage and webhooks

Is Your Vibe-Coded App Secure? 10-Point Check (2026)

Your app works. You can sign up, click around and even take a payment. That is exactly when most people stop. But “it works” and “it’s safe for real users” are two different tests, and the second one is the one that matters once strangers start typing their email into your sign-up form.

This is the vibe coded app security checklist I’d run before sharing a Lovable, Bolt, v0 or Cursor app with anyone. Ten checks, in order of how much damage they prevent, each with what to look at, where to look and how to fix it. None of them need a security background. If a check fails and you want the deep fix, I link to the full guide for it, starting with Supabase RLS, which is where most of the real damage happens.

Quick answer: turn on row level security for every table and make sure each policy only lets users reach their own rows, keep secret keys out of the browser and out of Git, enforce sign-in on the server, lock down storage, verify Stripe webhooks, protect previews, then run Lovable’s or Bolt’s scan plus the Supabase Security Advisor.

#CheckWhere to lookRisk if it fails
1RLS on every tableSupabase Security AdvisorAnyone can read, edit or delete the table
2Policies only allow own rowsDatabase, PoliciesUsers see each other’s data
3No secret keys in the frontendBuilt JS files, env var namesFull database or Stripe access
4No secrets in Git.gitignore, GitHub secret scanningLeaked keys stay in history
5Sign-in enforced on the serverEdge functions, API routesAnyone can call protected actions
6Sign-in settings ready for productionSupabase Authentication settingsBroken logins, weak passwords, spam sign-ups
7Storage buckets privateStorage policiesPrivate files public or listable
8Stripe verified on the serverWebhook handler, pricesFree upgrades, fake payments
9Server functions and previews lockedVercel and function settingsOpen endpoints and preview URLs
10Scanners run and findings fixedLovable, Bolt, SupabaseKnown issues ship to users

Want it checked and fixed for you? Launch Mango makes your app yours and safe for real users. Own and Secure is $199 one-off: your Lovable, Bolt, v0 or Cursor app moved onto your own GitHub, Supabase and Vercel accounts, plus sign-in and redirects checked and fixed, Supabase RLS and database permissions locked down, exposed API keys removed from the frontend, live Stripe payments and webhooks, a security report and your custom domain included. Only need to get off the builder? Own Your App is $79 one-off. Money back if it isn’t live on your accounts. Not sure how exposed yours is? Run the free 2-minute app check.

Why Are Vibe-Coded Apps Often Insecure?

Vibe-coded apps are often insecure because the builder optimizes for a working demo, not for strangers poking at it. The frontend runs in the browser where anyone can read it, the database is reachable with a public key, and access rules are easy to get almost right. Most leaks are access control mistakes, not clever hacks.

Why vibe-coded apps are insecure: frontend code runs in the browser, the database is reachable with a public key, and weak access rules leak data

Lovable’s own security best practices put it plainly: all frontend code runs in the user’s browser and “can be inspected, modified, or bypassed”, so the frontend should never make security decisions. That is the core problem. A tool like Lovable or Bolt writes a React app that talks straight to Supabase. Hiding a button for non-admins looks secure in the demo, but anyone can open the browser console and call the database directly.

It’s also why the OWASP Top 10:2025, the standard list of web app risks, still ranks broken access control as number one, with security misconfiguration second. In a vibe-coded app, that usually means one of three things:

  • A table with no row level security, so the public key can read and write everything in it.
  • A policy that lets everyone through, like using (true), that the builder added to make an error go away.
  • A secret key in the wrong place, like a Supabase secret key or Stripe secret key bundled into the browser code.

The good news: these are boring, checkable mistakes. You don’t need to think like a hacker. You need a list and an hour.

Check 1: Is Row Level Security On for Every Table?

Row level security must be on for every table in your public schema. Supabase’s Security Advisor flags any table without it as an ERROR called RLS Disabled in Public, because anyone with your project URL can read, edit and delete all data in that table. This is the single most important check on the list.

Check 1 of the vibe-coded app security check: row level security enabled on every Supabase table, with the RLS Disabled in Public error flagged by the Security Advisor

Your Supabase project URL and publishable key are inside your app’s JavaScript, and that’s fine by design. Supabase’s API keys docs describe the publishable key as “taped to the front door”: it only reaches what row level security allows. Without RLS, it reaches everything. The Security Advisor rule 0013_rls_disabled_in_public spells it out: anyone with your project URL can create, read, update and delete rows in that table.

To check, open your Supabase dashboard, go to Advisors, then Security Advisor, and look for errors. Or run this in the SQL editor:

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

Any row showing false needs RLS turned on. In Lovable, policies live under More, Database, Manage, Policies. In a Bolt database, open the database icon, then Security. Turning RLS on with no policies blocks all access through the API, which is safe but will break your app until you add the right policies. My Supabase RLS guide has copy-paste policies for owner-only, public read, form submissions, teams and admins, plus how to fix the RLS Disabled in Public warning step by step.

Check 2: Do Your RLS Policies Actually Limit Access?

RLS being on is not enough. Each policy must limit rows to the right user, usually with auth.uid() matching a user_id column, and inserts and updates need a with check clause. Watch for policies using true, policies that trust user_metadata, and views that skip RLS. Then test with a second account.

Check 2: Supabase RLS policies that limit access with auth.uid(), with check on inserts and updates, and red flags like using true, user_metadata and security definer views

This is where most Lovable security issues and Bolt ones really sit. The table has RLS on, the scanner is quiet, but a policy lets everyone through. Supabase’s advisor list has a rule for each of these traps:

Red flagAdvisor ruleWhy it’s dangerous
using (true) on private data0024 permissive RLS policyRLS is on but does nothing
Policy reads user_metadata0015 (ERROR)Users can edit their own metadata and bypass the rule
View in the public schema0010 security definer viewViews skip RLS by default and hand out every row
RLS on, no policies0008 RLS enabled no policySafe but blocks your app, often “fixed” with true
Sensitive columns exposed0023 (ERROR)Emails, tokens or personal data readable by anyone

A good owner-only policy, per Supabase’s row level security docs, uses (select auth.uid()) = user_id in using, and the same in with check for inserts and updates, so a user can’t create or move a row into someone else’s name. Admin checks should read a role from your own table, not from anything the user can edit.

Then test like an outsider. Sign up a second account and try to load the first account’s records. Or call the API with only the publishable key, which is what any stranger has:

curl "https://YOUR-PROJECT.supabase.co/rest/v1/profiles?select=*" \
  -H "apikey: sb_publishable_YOUR_KEY"
# Expected: [] or only public rows. Getting other users' data = fix the policy.

If you’re on Supabase directly, this is the closest thing to a free Supabase RLS scanner: the Security Advisor in the dashboard, or supabase db advisors from the CLI. It’s deterministic, so it catches the patterns above but can’t know your intent. My RLS guide covers testing policies with pgTAP too.

Check 3: Are Any Secret Keys Exposed in the Frontend?

Only publishable keys belong in the browser. A Supabase secret or service_role key bypasses every RLS policy, and a Stripe secret key can move money, so either one in your frontend is a full breach. Search your built JavaScript and env var names for sb_secret, service_role, sk_live and similar, and move anything found to server code.

Check 3: no secret keys in the frontend, Supabase publishable key safe in the browser, Supabase secret key and Stripe secret key server only

Supabase’s key docs are blunt: a secret key “bypasses every Row Level Security policy you have. Never put one in a browser, a shipped application, or source control.” The newer sb_secret_ keys even return 401 when called from a browser, but the legacy service_role key (a long string starting with eyJ) has no such guard. Supabase is deprecating anon and service_role by the end of 2026, so moving to publishable and secret keys is a good idea anyway.

KeyStarts withBrowser OK?
Supabase publishablesb_publishable_Yes, RLS protects you
Supabase legacy anonJWT (eyJ)Yes, same as publishable
Supabase secretsb_secret_No, server only
Supabase legacy service_roleJWT (eyJ)No, server only
Stripe publishablepk_live_Yes
Stripe secret or restrictedsk_live_ or rk_live_No, server only

How keys leak in a vibe-coded app: someone pastes a key into the chat and it lands in a component, or an env var gets a VITE_ or NEXT_PUBLIC_ prefix so the build ships it to every visitor. To check, open your live site, open DevTools, go to Sources, and search the JS files for sb_secret, service_role, sk_live and secret. Lovable’s security overview says it detects API keys pasted into chat and steers them into Secrets, which helps, but older code and Bolt or Cursor projects still need the manual look. If you find one, move the call into an edge function and rotate the key. My Vite env variables guide explains which prefixes reach the browser.

Check 4: Are Your Secrets Out of Your Git Repo?

Your .env file with real keys should never be committed. Check that .env is in .gitignore, search your repo and its history for key prefixes, and use GitHub secret scanning where your plan has it. If a secret was ever committed, deleting the file is not enough: fix the leak, rotate the key, then retire the old one.

Check 4: secrets out of the Git repo, .env in .gitignore, GitHub secret scanning and push protection, rotate any key that was committed

Once you sync your app to GitHub, which you should for ownership (see my migrate off Lovable guide), the repo becomes another place a key can leak. Git keeps history, so a key removed in a later commit is still readable in the old one. Supabase’s key rotation guide says to fix the root cause first, then create a new key, replace it everywhere, and retire the compromised one.

  1. Open .gitignore and confirm .env and .env.local are listed.
  2. On GitHub, search the repo for sk_live, sb_secret, service_role and whsec_.
  3. Per GitHub, secret scanning runs automatically for free on public repositories. For private repos it needs GitHub Secret Protection on an organization plan, so on a personal private repo do the search yourself.
  4. Keep the repo private unless you have a reason not to.
  5. Store real values in Vercel environment variables, Supabase edge function secrets, or the builder’s Secrets panel.

Publishable keys in the repo are fine. Everything that can write data, move money or send email is not.

Check 5: Is Sign-In Enforced on the Server, Not Just Hidden in the UI?

Hiding a page or button for signed-out users is not security. Every edge function, server function and API route has to verify the user’s session itself, and admin actions need a role check on the server. If your app decides who is an admin in browser code, anyone can flip that check in a few seconds.

Check 5: sign-in enforced on the server, edge functions verify the session with auth.getUser and check roles, never trust a browser-side isAdmin flag

Lovable’s best practices page shows the wrong and right versions side by side. Wrong: reading a token from localStorage and showing the admin panel if it exists. Right: calling supabase.auth.getUser() on the server and returning 401 if there is no user. The same page notes that a function running on the server is still callable by anyone, so running server-side alone doesn’t make it private.

// Inside an edge function or API route
const { data: { user } } = await supabase.auth.getUser();
if (!user) return new Response("Unauthorized", { status: 401 });
// Then check the role from your own table, not from user_metadata
const { data: profile } = await supabase
  .from("profiles").select("role").eq("id", user.id).single();
if (profile?.role !== "admin") return new Response("Forbidden", { status: 403 });

Remember the service role caveat: server code that uses the secret key skips RLS entirely, so that code must check permissions itself. A quick way to test is to sign out, open DevTools, and replay a request from the Network tab. If it still works, the server isn’t checking.

Check 6: Are Your Sign-In Settings Ready for Production?

Production sign-in needs the right redirect URLs, a sensible minimum password length, leaked password protection, your own SMTP for auth emails and some abuse protection. Supabase’s default email limit is low, redirect URLs often still point at localhost, and leaked password protection needs the Pro plan. Also protect your own Supabase account with MFA.

Check 6: Supabase sign-in settings for production, exact redirect URLs, password length, leaked password protection, custom SMTP, CAPTCHA and MFA

Supabase’s production checklist covers most of this. The items I’d check in Authentication settings:

SettingWhat to setSource
Site URL and redirect URLsYour real domain, no leftover localhostSupabase redirect URLs
Minimum password lengthAt least 8 charactersSupabase password security
Leaked password protectionOn (Pro plan and above)Supabase password security
Auth emailsYour own SMTP, the default allows only 2 emails per hourSupabase production checklist
Abuse protectionCAPTCHA on sign-up, sign-in and password resetSupabase CAPTCHA
Your own accountMFA on your Supabase and GitHub loginsSupabase production checklist

Redirects are the one that breaks launches. If Google sign-in sends users back to localhost after deploy, my OAuth redirect to localhost fix walks through the Site URL, redirect allow list and Google Cloud settings. Supabase recommends wildcards for preview URLs and the exact URL for production. Bolt’s database security page notes its Prevent Leaked Passwords setting is on by default for Bolt databases, but not available if your database sits on a free Supabase plan.

Check 7: Are Your Storage Buckets Private?

Files in Supabase Storage follow the same rules as tables. Anything private, like invoices, ID photos or user uploads, belongs in a private bucket with policies limiting each user to their own folder. Public buckets are readable by anyone with the URL, and a broad select policy can also let people list every file.

Check 7: Supabase storage buckets private, per-user folder policies on storage.objects, public buckets readable by URL and listable with broad select policies

Supabase’s storage access control docs say Storage doesn’t allow any uploads without RLS policies on storage.objects, which is a safe default. The trouble starts when a builder makes a bucket public to get images showing, then reuses it for private uploads. The advisor rule 0025_public_bucket_allows_listing warns that a broad select policy on a public bucket lets clients enumerate its files, which public URLs don’t even need.

  1. Open Storage in Supabase and note which buckets are public.
  2. Keep public buckets for things like product images and avatars only.
  3. Put user uploads in a private bucket, with a policy that checks the folder name matches auth.uid().
  4. Serve private files with signed URLs that expire.
  5. Check upload size and file type in server code, not only in the form.

Check 8: Are Stripe Payments Verified on the Server?

Paid features must unlock from a verified Stripe webhook, never from the success page or a price sent by the browser. Verify every webhook with the Stripe-Signature header, the raw request body and your endpoint’s whsec_ secret, keep the default 5-minute tolerance, handle duplicate events, and set prices on the server.

Check 8: Stripe payments verified on the server, webhook signature check with whsec secret and raw body, fulfill from the webhook not the success page, prices set on the server

Stripe’s fulfillment guide says you can’t rely on the checkout landing page alone, because customers don’t always reach it. And if your app unlocks Pro when someone visits /success, anyone can visit /success. The webhook is the source of truth, and Stripe’s signature docs say to verify it with the raw body, the Stripe-Signature header and your endpoint secret.

Payment checkPass looks like
Webhook signatureconstructEvent with the raw body and the endpoint’s whsec_ secret
Replay protectionDefault 5-minute tolerance, never 0, which disables the check
DuplicatesProcessed event IDs logged and skipped
FulfillmentPlan unlocks from the webhook, not the success URL
PricesPrice IDs chosen on the server, never an amount from the browser
KeysRestricted key with only the permissions you need, secret keys server only
Live modeLive keys and a live webhook endpoint pointing at your real domain

Stripe’s API keys page recommends restricted keys for most uses and says only publishable keys are safe outside your backend. The webhooks docs add that endpoints might get the same event more than once, so log the event IDs you’ve processed. If your webhook is failing rather than insecure, my Stripe webhook not working guide covers 400s, 401s and signature errors one by one.

Check 9: Are Your Server Functions and Preview Deployments Locked Down?

Every edge function and API route is a public URL unless it checks the caller, so look for ones anyone can trigger to send email, upload files or call paid APIs. On Vercel, mark keys as Secret so they’re write-only, keep Deployment Protection on for previews, and redeploy after changing env vars.

Check 9: server functions and preview deployments locked down, Vercel Deployment Protection Standard Protection, Secret env vars write-only, open endpoints checked

Lovable’s Deep scan has a category just for this, “unauthenticated and abusable endpoints”: functions and routes anyone can trigger, upload to, or use to send messages. An open “send email” function is a free spam relay on your domain. An open function that calls a paid API runs up your bill. Each one needs a session check, and ideally a rate limit.

  • Secret env vars: Vercel’s environment variable types split Config values, readable after saving, from Secret values, which are write-only. Use Secret for API keys and tokens.
  • Redeploy after changes: per Vercel’s env var docs, changes only apply to new deployments, so a rotated key isn’t live until you redeploy.
  • Preview URLs: Deployment Protection with Standard Protection, available on all plans, protects every deployment except your production domains. Preview builds often point at test data or have debug settings on.
  • Old deployments: remove builder-hosted copies you no longer use, like an old lovable.app or Bolt site still pointing at your production database.

Check 10: Have You Run Lovable, Bolt and Supabase Security Scans?

Run every scanner you have and fix what it finds before launch. Lovable runs a Quick scan on every publish plus a Deep scan on demand, Bolt has a security audit on paid plans and a database check on all plans, and Supabase’s Security Advisor works on any project. None of them guarantee security.

Check 10: run the Lovable Quick and Deep scan, Bolt security audit and database check, and the Supabase Security Advisor, then fix findings before launch
ScannerWhat it checksWhen it runsPlan
Lovable Quick scanRLS, rules that let everyone through, leaked-password setting, critical npm vulnerabilitiesEvery publish, or on demandBuilt in
Lovable Deep scanApp code: access control, open endpoints, injection, leaked secrets, payments, auth, exposed dataOn demand, before you publishBuilt in, scheduled scans on Enterprise only
Bolt security auditCode and database: data access, public info, sign-in, misuse, input, keysPublish menu, up to 30 a day (resets at midnight UTC)Paid plans, no tokens used
Bolt database checkMissing RLS, always-true policies, leaked password settingDatabase, Security tabAll plans
Supabase Security AdvisorRLS off, permissive policies, exposed views, sensitive columns, public bucketsDashboard, CLI or APIAny Supabase project

Two honest caveats. First, Lovable’s own docs say the scans “cannot guarantee complete security” and suggest a professional review for apps handling sensitive data. Second, Lovable’s Quick scan auto-fix only handles eligible Critical database and dependency findings, not Deep scan findings, and both Lovable’s and Bolt’s fixes are changes to your code you should read before you trust them. Bolt also notes you can roll back if a fix changed something you didn’t want.

If you’ve moved off the builder, or built in Cursor or v0, the builder scans don’t follow you. That’s where the Supabase Security Advisor and checks 1 to 9 do the work. If you’re still choosing a builder, my Lovable vs Bolt comparison covers more than security.

Vibe-Coded App Security FAQ

Vibe-coded app security FAQ: are vibe-coded apps secure, is the Supabase publishable key safe, does the Lovable scan catch everything, Supabase RLS scanner, leaked service role key

Are vibe-coded apps secure?

They can be, but not by default. Lovable and Bolt now set up basic RLS and run security scans, which removes the worst mistakes. The usual gaps are policies that let everyone through, secret keys in the frontend, missing server-side checks and unverified Stripe webhooks. Run a 10-point check before real users arrive.

Is it safe to expose my Supabase publishable or anon key?

Yes. Supabase designed the publishable key, and the legacy anon key, to be visible in browser code. It only reaches what your row level security policies allow, so it is safe only if RLS is on for every table with tight policies. Secret and service_role keys must never be exposed.

Does the Lovable security scan catch everything?

No. Lovable’s own documentation says its scans help find common issues but cannot guarantee complete security. The Quick scan covers database rules, dependencies and MCP exposure. The Deep scan reviews your app code and goes further, but business logic, your intent and anything outside Lovable still need a human look.

Is there a free Supabase RLS scanner?

Yes. The Security Advisor in the Supabase dashboard is free on every project and flags tables without RLS, always-true policies, policies that use user_metadata, exposed views and public buckets that allow listing. You can also run it from the CLI with supabase db advisors. It can’t tell whether a policy matches your intent.

What should I do if my service_role key leaked?

Act fast. Find and fix how it leaked first, so the new key doesn’t leak the same way. Then create a new secret key, replace the old one everywhere it’s used, redeploy, and disable the leaked key. Check your database for unexpected changes, since that key bypasses every RLS policy.

How often should I run a security check?

Run the full check before launch, then again after any big change to sign-in, payments, database tables or storage. Builder scans are quick, so running them before every publish costs little. A quick monthly look at the Supabase Security Advisor catches new tables added without RLS.

Should You Secure It Yourself or Have It Done for You?

Secure it yourself if your app is small, has no paying users yet and you’re happy reading SQL policies. Have it done for you if real users, personal data or payments are involved, because one loose policy or exposed key costs far more than a fixed-price check. Either way, the accounts should be in your name.

Launch Mango Own and Secure $199 locks down Supabase RLS, sign-in and redirects, exposed API keys and live Stripe webhooks on your own GitHub, Supabase and Vercel accounts, with a security report

If you want to do it yourself, this list plus my checklist to launch your vibe-coded app covers everything in order. Not sure whether to do it yourself or skip it? My DIY vs done-for-you breakdown weighs both, and the best app launch services roundup compares the options.

Securing apps like this is what we do at Launch Mango. Own and Secure ($199 one-off) is everything in Own Your App plus sign-in and redirects checked and fixed, Supabase RLS and database permissions locked down, exposed API keys removed from the frontend, live Stripe payments and webhooks, a security report and your custom domain included. It all ends up on your own GitHub, Supabase and Vercel accounts, so you own the code, the database and the hosting. If you only need to get off the builder, Own Your App ($79 one-off) moves the code, database and env vars onto your accounts with a plain-English handover report, usually in 1 to 2 days. Either way, your money back if it isn’t live on your accounts.

Not sure how exposed your app is? Run the free 2-minute app check. It flags lock-in and security risks and tells you which plan fits.

Your app, on your accounts, safe for real users.

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *