Skip to content
Security

Vibe Coding Security Checklist: What to Fix Before You Launch

A prioritized security checklist for apps built with Lovable, Bolt, Cursor or v0: what to fix before launch, what can wait, and how to verify it yourself.

Vibe Coding Security Checklist: What to Fix Before You Launch

Your app was built with Lovable, Bolt, Cursor or v0, the demo went well, and the launch date is set. The open question is whether it is safe to put in front of real users, real data and real payment details. This vibe coding security checklist gives you a prioritized list: what must be fixed before launch, what can wait until the first month, and what is nice to have, with a plain-language explanation and a way to verify each item yourself.

You don't need a security background. You need your code repository, your hosting and database dashboards, two test accounts and an afternoon.

Why "it works" is not the same as "it's safe"

AI coding tools are very good at making the app do what you asked for. You describe a feature, click through it, and it works. That loop is also why security problems survive until launch.

Security problems show up when someone does something you didn't ask for: calls your API directly, changes an ID in a URL, uploads a file that isn't an image, or sends your chatbot a message designed to make it misbehave. Your happy-path test never covers those cases.

There is a second pattern. When something fails because of a permission rule, the quickest fix is to loosen the rule, and an AI assistant asked to "fix the error" will often do exactly that. The app works again, and a door is now open.

None of this is a criticism of the tools, which let small teams build real software quickly. Our guide to AI coding agents and development platforms shows where they fit. Someone still has to look at the parts the tool was never asked about. This checklist is that look.

Must fix before launch: secrets, login and data access

These items decide whether a stranger can read your data, act as another user or run up your bills. Don't launch until each one is checked.

1. No secret keys in the browser

Anything your frontend loads is public. Open your deployed app, open the browser developer tools and search the loaded JavaScript files and network requests for words like key, secret, token and sk_.

Some keys are meant to be public, for example a Supabase anon or publishable key or a Firebase web config. Keys for payment providers, email services, AI APIs or database admin access are not. They belong on the server, in a backend function or API route.

Watch for environment variables with public prefixes such as VITE_, NEXT_PUBLIC_ or NUXT_PUBLIC_. Those prefixes exist to ship values to the browser. A secret with one of these prefixes is a leaked secret.

2. No secrets in Git history

Deleting a key from the code doesn't remove it from earlier commits. If your repository was ever public, or might become public, scan the full history with a secret scanner. If you find a real secret anywhere, rotate it first and clean up second. Our guide on what to do when an API key has leaked walks through rotation and how to find exposed keys.

3. Every data access is checked on the server

This is the most common serious problem in AI-built apps. The frontend only shows a user their own orders, but the database or API would happily return everyone's orders to anyone who asks directly.

How to verify: create two test accounts, A and B. Create data as A. Log in as B and try to read, change and delete A's data, by changing IDs in URLs and by calling the API from the browser console. If B can see or change anything that belongs to A, you have a finding.

If your app uses Supabase, row level security is where this is decided. Our 30-minute Supabase row level security check covers the exact queries and test steps. Firebase apps need the same test against their security rules.

4. Roles can't be edited by users

If "admin" is a column in a table users can update, or a field in metadata the user controls, anyone can make themselves an admin. As user B, try to update your own role. It should fail. Admin-only pages also need admin checks on the data behind them, not just a hidden menu item.

5. Login and password reset behave correctly

Check that password reset links expire and work only once, and that logging out actually ends the session. If you added social login, confirm that the configured redirect URLs point only to your own domains.

Must fix before launch: input, uploads and AI prompts

The second group covers everything users can send to your app.

6. Validate input on the server

Validation in the browser protects nothing, because anyone can skip it. Every API route or backend function should check type, length and allowed values. Send an empty value, a very long string and a wrong type to each endpoint. You want a clean error, not a crash.

7. File uploads are restricted

If users can upload files, check four things:

  • Allowed file types are checked on the server, not just by the file picker.
  • There is a size limit.
  • Uploaded files are stored where they can't run as code.
  • Private files, such as invoices, ID documents or contracts, are in a private storage bucket, not a public one where anyone with the URL can download them.

To verify, upload a private file as user A and open its URL logged out and as user B. Neither should work.

8. AI features can't be talked into misbehaving

If your app sends user input to a language model, assume some users will try to make it ignore its instructions. That becomes a problem when the model can do things: call tools, query your database, send emails or see other users' data.

Keep the rules for what the AI may do in your code, not only in the prompt. Give the model access only to the data of the current user. Require a human confirmation before actions with consequences, such as sending, deleting or paying. Test it yourself: ask your chatbot to show you another user's data, to reveal its instructions, or to perform an action it shouldn't.

9. Error messages don't leak internals

Trigger a few errors on purpose. Users should see a short, friendly message. Database errors, file paths, stack traces and API responses from third parties belong in your logs, not on the screen.

Fix in the first month: dependencies, logging and rate limits

These items matter, but a careful launch can happen before every one is done. Put them on your calendar for the first weeks.

10. Dependencies are reviewed

AI tools add packages freely, including some that are no longer maintained. Run your package manager's audit command, for example npm audit, remove packages you don't use and commit your lockfile.

Our write-up of the Axios supply chain attack shows how a compromised package can reach apps that never changed their own code.

11. You can see what is happening

Log failed logins, permission errors, server errors and calls to paid APIs, without logging passwords, tokens or sensitive personal data. Add an alert for error spikes. Logs are how you find out what happened and who was affected.

12. Rate limits on sensitive endpoints

Login, password reset, sign-up, contact forms and anything that sends email or calls an AI model should have rate limits per user and per IP address. Without them, a single script can try thousands of passwords, flood your inbox or send messages to arbitrary addresses through your email provider.

13. Backups exist and a restore has been tested

A backup you have never restored is a hope, not a backup. Confirm that your database provider's backups are active and do one test restore to a separate project.

Protecting paid APIs from runaway bills

This category surprises founders more than any other. Your app may call paid services: an AI model, email, SMS, maps or image generation. Each call costs money, and if someone abuses them, the bill arrives at your company.

How bills run away:

  • A leaked API key is used by someone else for their own purposes.
  • A public endpoint that calls an AI model is found and called in a loop.
  • A bug in your own code retries a failing call endlessly.
  • A free-tier user discovers they can use your app as a free gateway to an expensive model.

What to do before launch:

MeasureWhereWhy
Keep paid API keys on the server onlyCode and hosting settingsA key in the browser can be copied and used anywhere
Require login for features that cost moneyAPI routesAnonymous endpoints are the easiest to abuse
Set per-user limits, for example messages per dayYour backendCaps the damage from one account
Set spending limits and budget alerts with each providerProvider dashboardsYour last line of defense if everything else fails
Cap retries and add timeoutsYour backendStops your own bugs from becoming bills
Use separate keys for development and productionProvider dashboardsLets you revoke one without breaking the other

Limit and alert options differ between providers and change over time, so check what yours offers.

The vibe coding security checklist on one page

Must fix before launch

  • No secret keys in the browser bundle or in public environment variables
  • No secrets in Git history, or leaked ones rotated
  • User B cannot read, change or delete user A's data
  • Users cannot change their own role
  • Admin data is protected on the server, not just hidden in the UI
  • Password reset links expire and work once; logout ends the session
  • Server-side validation on every endpoint
  • File uploads limited by type and size; private files in private storage
  • AI features limited to the current user's data; risky actions need confirmation
  • Error messages show no internals
  • Paid API keys on the server only; spending limits set with each provider

Fix in the first month

  • Dependency audit done, unused packages removed, lockfile committed
  • Logging for failed logins, permission errors and paid API calls
  • Rate limits on login, sign-up, reset, forms, email and AI endpoints
  • Backups active and one restore tested

Nice to have

  • Separate development, staging and production environments with separate keys
  • HTTPS everywhere and basic security headers set
  • Two-factor authentication for admin accounts
  • A short written incident plan: who rotates keys, who informs users
  • A repeat of this checklist after every larger feature

How to verify each item yourself

You can do most of the verification with tools you already have. A simple routine:

  1. Use two test accounts. Most access problems only show up when one user tries to reach another user's data.
  2. Use the browser developer tools. The network tab shows every request your app makes. Copy a request, change an ID or remove a filter, and send it again from the console.
  3. Search the built app, not just the source. What reaches the browser is what matters. Search loaded JavaScript for keys and internal URLs.
  4. Read your dashboards. Database, storage and hosting dashboards often warn about open tables, public buckets or missing settings. Read every warning.
  5. Write down what you checked. A short note per item, with date and result, makes the next check faster and gives you something to show customers who ask.

Only test your own app and your own data. If you only have a production environment, read before you write and use test accounts.

Frequently asked questions

Are apps built with Lovable, Bolt, Cursor or v0 less secure than hand-written apps?

Not by nature. The same mistakes happen in hand-written code. The difference is speed: AI tools let you reach real users before anyone experienced has looked at permissions and secrets.

Can I launch if I haven't finished every item?

Finish the "must fix before launch" section first. Those items protect your users' data and your money. The first-month items reduce risk further and can follow shortly after a careful launch.

How long does this take?

For a small app, the pre-launch checks often fit into an afternoon or two. Fixing what you find can take longer, depending on how many tables, roles and integrations the app has.

Does this replace a penetration test?

No. It is a structured self-check that catches the most common problems in AI-built apps. A professional review goes deeper, tests combinations of issues and looks at the code itself.

Can my AI coding tool fix the findings?

Often, yes, especially for policies, validation and moving keys to the server. Describe the finding precisely, then repeat your test. A change that makes errors disappear is not proof of a fix.

When to get a second pair of eyes

Many teams can work through this list and fix most findings themselves. It gets harder when your app handles payments or sensitive data, has teams and roles, or serves customers in Germany, Austria, Switzerland or Thailand where privacy rules such as GDPR and PDPA apply.

That is what our Vibe Code Check is for: a fixed-price security and code review of apps built with Cursor, Lovable, Bolt, v0, Replit or Claude Code. We check secrets and API keys, login and permissions, database access rules, input handling, uploads, AI prompts and dependencies, and we try to reach data that isn't ours, the same way you did with your two test accounts, but across the whole app. The Check covers up to 8 screens with a report in 5 business days. Fixing is always quoted separately, so you decide what happens next.