Blog
Short security tips for vibe-coded apps. RSS
Keep secrets and tokens out of your page URLs
A token in a web address gets saved in history, logs and shared links. One quick check for apps built with Lovable, Bolt, v0, Replit and Cursor.
Make password-reset links expire and work only once
A reset link that never expires is a spare key left under the mat. One quick test for apps built with Lovable, Bolt, v0, Replit and Cursor.
Add .env to .gitignore before your first commit
A .env file committed once stays in your git history, even if you delete it later.
Turn on GitHub secret scanning so a pasted key gets caught
GitHub can warn you, or block the push, when a key or password ends up in your code.
Set a billing alert so a leak shows up as a bill, not a surprise
Billing and usage alerts on Vercel, Supabase and your AI provider can warn you early if a key leaks or a bug loops.
Use different API keys for testing and for your live app
Keep test and live keys separate so a mistake while building never touches real customers or money.
Use restricted API keys that can only do what your app needs
Give your app a key with the smallest set of permissions, so a leak does less damage.
Remove people who no longer need access to your app
Old collaborators, freelancers and forgotten invites on GitHub, Vercel and Supabase are an easy way into your app.
Test on a separate database, not the one your real users are in
AI tools run commands fast. If they point at your live database, one bad prompt can change or delete real user data.
Return only the fields your screen needs, not the whole database row
AI-built APIs often send back entire records. Anyone can open the browser's network tab and read the extra fields.
Check form input on the server, not just in the form
Form checks in the browser are only for convenience. Anyone can skip them and send your API whatever they like.
Delete the debug and test pages your AI builder left behind
AI builders often add /debug, /test or /admin routes while building. If they ship, strangers can open them.
Don't show user text as raw HTML in your app
If your app displays comments or profiles as raw HTML, a visitor can slip in code that runs in other people's browsers.
Are your preview and staging links open to anyone?
Preview and staging copies of your app often use real keys and real data. Check who can open them.
Don't glue user text into database queries
If your app builds a database query by pasting in what users type, a stranger can make it run their own commands. Here's the quick check.
Check where your login redirect sends people
If your app redirects to any address in the link, attackers can use your trusted domain to send users to a fake site.
Put a limit on login and password-reset attempts
Without a limit, a bot can try thousands of passwords or flood your users with reset emails. Here is the quick check.
Verify webhook signatures, or anyone can fake a payment
A webhook URL is public. Without a signature check, a stranger can send a fake 'payment succeeded' message to your app.
Don't let every website call your API: check your CORS setting
A wildcard CORS setting lets any website talk to your app's API from your visitors' browsers. Here is the quick check.
Check that your live site isn't serving .env or .git files
A misconfigured deploy can make hidden files like .env publicly downloadable. Checking takes a minute.
Require email confirmation so fake signups can't get in
If anyone can sign up with any email, bots and impersonators can too. Turning on email confirmation is a one-switch fix in most auth settings.
Back up your database before you let an AI change it
AI builders can rewrite tables and delete data by mistake. A quick backup before big changes means a bad edit never costs you your users' data.
Turn on two-factor for the accounts that run your app
Your GitHub, Vercel, Supabase and AI builder logins control your whole app. Two-factor login takes a couple of minutes and blocks most account takeovers.
Your app's packages can have known security holes: run npm audit
Lovable, Bolt, v0, Replit and Cursor apps pull in dozens of npm packages, and old versions can have publicly known security bugs. Here's how to check and update them in a few minutes.
Let users upload files? Limit the type and size on the server
Upload boxes in Lovable, Bolt, v0, Replit or Cursor apps often accept any file of any size. Here's how to check type and size on the server so nobody fills your storage or uploads a web page in disguise.
Lock down your Vercel preview deployments before strangers find them
Every push to a Lovable, Bolt, v0, Replit or Cursor app on Vercel can create a public preview URL. Here's how to turn on Deployment Protection so random visitors can't open those builds.
If you pasted an API key into an AI chat, rotate that key
Keys pasted into Cursor, Lovable, Bolt, ChatGPT or Claude can sit in chat history. Here's why you should rotate them for a Lovable, Bolt, v0, Replit or Cursor app.
Building an app just for your team? Turn off open sign-ups
Many vibe-coded apps are meant for a few people, but the login page still lets anyone create an account. Here's how to close sign-ups in Supabase for a Lovable, Bolt, v0, Replit or Cursor app.
Clean out console.log lines that print user data or keys
AI builders often add console.log lines while debugging, and they can end up printing user records, tokens or keys in every visitor's browser. Here's how to find and remove them in a Lovable, Bolt, v0, Replit or Cursor app.
Only let Supabase login links go back to your own site
Supabase sends magic links, sign-up confirmations and password resets with a redirect address. If your allowed list is too loose, those links can send users somewhere else. Here's how to tighten it in a Lovable, Bolt, v0, Replit or Cursor app.
Is your app's GitHub repo public? Check before someone else does
Lovable, Bolt, v0, Replit and Cursor projects often sync to GitHub. If that repo is public, anyone can read your code and any keys you committed. Here's how to check and fix it.
Add a few security headers to your live app
Security headers are short instructions your site sends to the browser. Most Lovable, Bolt, v0, Replit and Cursor apps ship without them. Here are the ones worth adding and how to check.
Supabase new tables now need a GRANT: turn on RLS first
From October 30, 2026, new Supabase tables in the public schema aren't reachable from your app until you grant access. If your Lovable, Bolt, v0, Replit or Cursor app breaks on a new table, here's the safe order to fix it.
Check that your live app isn't shipping source maps
Source maps let anyone read your app's original code, comments and all. Here's how to check whether your Lovable, Bolt, v0, Replit or Cursor app ships them, and how to turn them off.
Before you launch, delete the test accounts you made while building
Vibe-coded apps built with Lovable, Bolt, v0, Replit or Cursor often go live with test logins, demo admins and seed data still inside. Here's how to clean them up.
Show visitors a plain error, not your database's error message
Lovable, Bolt, v0, Replit and Cursor apps often show raw database errors or stack traces to visitors. Here's why that helps attackers and how to fix it.
NEXT_PUBLIC_ and VITE_ mean public: keep secrets out of them
In Lovable, Bolt, v0, Replit and Cursor apps, any environment variable starting with NEXT_PUBLIC_ or VITE_ is copied into the site's JavaScript. Here's how to keep secret keys server-side.
Logged in isn't the same as allowed: check who owns the record
Lovable, Bolt, v0, Replit and Cursor apps often check that a user is logged in but not that the data they ask for is theirs. Here's how to spot and fix it.
Leaked a key? Rotate it, because deleting it isn't enough
If an API key from your Lovable, Bolt, v0, Replit or Cursor app ended up in a public repo or in your site's code, deleting it doesn't make it safe. Here's what to do.
Never let the browser decide the price
Lovable, Bolt, v0, Replit and Cursor apps sometimes send the price from the browser to checkout. Here's why that's risky and how to fix it.
Turning on RLS isn't enough: check what your policies allow
Lovable, Bolt, v0, Replit and Cursor apps often turn on Supabase RLS with a policy that still lets anyone read everything. Here's how to check yours.
Unlock paid features from a Stripe webhook, not the thank-you page
Lovable, Bolt, v0, Replit and Cursor apps often mark users as paid when they land on the success page. Here's how to make payment checks safe.
Put a rate limit and a spending cap on your app's AI calls
Lovable, Bolt, v0, Replit and Cursor apps often call a paid AI API with no limits. Here's how to stop strangers from running up your bill.
Hiding a button doesn't protect your admin page
Lovable, Bolt, v0, Replit and Cursor apps often check admin or paid access only in the browser. Here's how to move that check to the server.
Make your Supabase storage buckets private if they hold user files
A two-minute check for Lovable, Bolt, v0, Replit and Cursor apps: personal files in a public Supabase bucket can be opened by anyone with the link.
Never ship your Supabase service_role key to the browser
One quick check that keeps vibe-coded Lovable, Bolt, v0, Replit and Cursor apps from leaking full database access.