Skip to content
Decision9 min readPublished Last updated

Is vibe coding bad? Only when someone depends on code nobody has read

No, not as a way to find out whether an idea is worth building. Yes, as a way to run something other people depend on. Vibe coding gets a working app in front of users faster than anything before it, and that's its job. It goes wrong at one specific point: when real customers sign in, money moves, personal data is stored or the app does something that can't be undone, and nobody has read the code that decides who may do what. This article gives a test for which side of that line your app is on, the failures we look for first, and a check a founder can run before launch.

By Updated

The short version

  • Vibe coding is good for prototypes, personal projects, internal throwaways and testing whether anyone wants the thing. A working prototype is a better specification than a document.
  • It's bad when real customers, money, personal data or irreversible actions depend on code nobody has read. The problem is the unread code, whichever tool wrote it.
  • The decision test: if any one of those four is true, the app needs a review before launch. If none is, keep going, with a short minimum.
  • The failures are dull and repeatable: sign-in that doesn't check who may see what, database rules that let any user read any row, secrets in the browser, errors swallowed, no backups and no tests on the money paths.
  • Scale is rarely what breaks first. Access control and lost data are, long before traffic is.
  • Harden the app if someone other than the AI tool can say where each permission is enforced. If no one can, rewrite the permission layer and keep the screens.
01

Is vibe coding bad?

Vibe coding means describing what you want to an AI tool, accepting the code it writes, and judging the result by running it rather than reading it. That's the narrow sense used here. A developer who uses an AI tool and reads every change isn't vibe coding. They're coding with help.

In our view, vibe coding is a good way to learn and a bad way to operate. It's the fastest route yet from an idea to something people can click, and for a prototype nothing else is close. It becomes bad at the point where other people depend on rules no one has decided and code nobody has read. That point usually arrives without anyone noticing, when a demo gets a real sign-up form, and not through a decision anyone made.

Even the vendors put the reading on you. Anthropic's security page for Claude Code says the user is responsible for reviewing proposed code and commands for safety before approving them. The tools write the code, but they don't take responsibility for it.

02

Where is vibe coding good?

  • Validating demand. Putting a clickable version in front of ten prospective customers this week tells you more than a month of specification. If they don't want it, you've lost an afternoon, not a build budget.
  • Prototypes that become the specification. When the idea works, the screens and flows people reacted to are the best brief a developer can be given, even if the code under them is replaced.
  • Personal projects. An app only you use, holding data only you'd miss, can be as rough as you like. You're the only one exposed to its failures, and you know what they are.
  • Internal throwaways. A one-off migration script, a dashboard for a single campaign, a tool for three colleagues behind the company sign-in holding nothing sensitive. Spend the minimum and move on.

In all four, a failure costs the person who built it, and they can see it happen. That's what makes them safe. The quality of the code has little to do with it.

03

When does vibe coding become a problem? A decision test

Answer four questions about the app as it will be used, not as it is today. A yes to any of them means someone other than the builder can be hurt by a failure, and the code needs reading before launch.

QuestionWhy it mattersIf yes
Will people outside your company sign in?Strangers include careless users and a few hostile ones, and they'll try things you didn'tEvery rule about who may see and change what has to be enforced on the server or in the database, and tested
Does money move through it: payments, refunds, prices, credits?A wrong number or a bypassed check is a direct loss, often found by a customer before youPrices and amounts are decided on the server, webhooks are verified, and the money paths have tests
Does it store personal data or data you can't recreate?You may be legally responsible for it, and a leak can't be taken backAccess rules on every table, secrets off the client, and a backup you have restored
Can it do something irreversible: send messages, delete records, move orders, spend on an API?An action that has already happened can't be rolled back with the codeA record of who did what, limits on spend, and a dry run before it acts on its own
Four questions that decide whether a vibe-coded app needs a review before launch

Four noes: carry on, with the minimum in the last section. One yes: get the app read before real users arrive, by you, a developer you trust or a reviewer. The answer doesn't depend on which tool built it.

04

Why do vibe-coded apps fail?

AI doesn't write worse code than people. The trouble is that a tool aiming at 'it works now' is judged by the person who asked for it, on a good day, signed in as themselves. The failures that follow are the ones that don't show up from that seat. These are the ones our vibe coding to production service lists, and the ones we check first.

  1. 01Sign-in that works but doesn't check who may see what. Authentication says who someone is, and authorisation says what they may touch. A button hidden from ordinary users protects nothing if the endpoint behind it answers anyone who asks.
  2. 02Database rules that let any user read any row. Where the browser talks to the database directly, as in many Supabase-backed apps, the access policies are the only barrier between a visitor and the data. A table with no policy, or a policy that's simply true, is open.
  3. 03Secrets in client code. Anything compiled into the code the browser downloads can be read by every visitor. A payment, email or model key there can be used by anyone who looks, and a key ever pasted into a chat, a screenshot or a commit should be treated as burned.
  4. 04No error handling. Errors caught and ignored mean a failed payment or a lost sign-up tells no one. A crash is better than silence, because at least someone notices.
  5. 05No backups, or none that have been restored. Often the only copy of the code lives in the tool that generated it, and the only copy of the data in one database nobody has tried to recover.
  6. 06No tests on the money and permission paths. Charging the wrong amount, a refund that doesn't reverse, one customer reading another's records. A test the tool wrote to match its own code passes whether or not the code is right.

Two habits make these worse. Permissions written as prompts, where asking the builder to 'make sure users only see their own records' produces a screen filter and no rule. And changes made in a chat that no one reviews as a change, where one prompt can alter code, tables and policies together. Our Lovable, Base44 and Replit pages, at /platforms/lovable, /platforms/base44 and /platforms/replit, go through how each tool's design changes which of these bites first.

05

Is vibe coding secure?

The process itself is neither secure nor insecure. The resulting app is one or the other, and you can only tell by testing it. An app that looks finished and works for its builder tells you nothing about whether a second user can read the first user's data. That question has to be asked directly, signed in as the wrong person.

The security risks of vibe coding are mostly the six failures above, plus one structural one. In the common pattern where the browser talks to a hosted Postgres such as Supabase using a public key, the public key is meant to be public. The row-level security policies are what keep the data private, and the privileged service key, which bypasses them, must never reach the browser. Supabase's own documentation is the authority on the details and it changes, so confirm them for your project. Our article at /insights/vibe-coding-to-production explains how to read and test those policies.

None of this is unique to AI-built code. A hand-written app with the same gaps fails the same way. The difference is that, in a vibe-coded app, no one has read the code, so nobody knows which gaps are there.

06

Is a vibe-coded app production ready, and will it scale?

Not by default. Production ready means it survives strangers, mistakes, a bad deploy and its builder being on holiday. A prototype has only been asked to work. It can get there, often by hardening rather than rewriting, but it hasn't yet.

Scale is rarely the first thing to break. Most business apps never see the traffic that would trouble a managed database, and the failures above hit with ten users as easily as with ten thousand. When scale does bite, it's usually in one of three forms:

  • State kept in memory or on the server's disk, which disappears on restart and isn't shared when a deployment runs more than one instance. Our Replit page at /platforms/replit covers this.
  • Usage-based bills that grow with abuse as well as use. An unauthenticated route that calls a model is a public line of credit, and builder credits get spent by live features instead of building.
  • A data model shaped by a hundred conversational edits, where the same fact sits in several tables. It works until the first report or migration, and then everything is slow to change.

If scale matters to you, fix the data model and the state first. Neither needs more servers.

07

A security check to run before launch

A founder can run most of this in an afternoon without reading code. It doesn't replace a review. It tells you whether you need one urgently.

  1. 01Two accounts. Sign in as two different users. In the browser's developer tools, copy a request that fetches one user's record and replay it while signed in as the other. If the data comes back, stop and fix that first.
  2. 02Signed out. Replay the same request with no one signed in. It should fail.
  3. 03Your own role. Find where the app stores whether you're an administrator. If an ordinary user can edit that field on their own profile, anyone can make themselves an admin.
  4. 04The browser's code. Open the JavaScript the app sends to visitors and search it for the names of your payment, email and model providers. A secret key found there has to move to the server and be rotated.
  5. 05Each table. List the tables that hold user data and ask who may read, insert, update and delete each one, and where that's enforced. 'In the screens' isn't an answer.
  6. 06A restore. Restore last night's backup into a scratch copy and check the data is there. If you can't, you don't have a backup.
  7. 07A way back. Know how to return to yesterday's version of the app, and do it once while nothing is broken.
  8. 08Spend. Put a spend cap and an alert on every paid API the app calls, at the provider, wherever one is offered.
  9. 09Who hears about errors. Break something on purpose in a test copy and see who finds out. If no one does, real failures will be silent too.

The full ten-area checklist, with the evidence that shows each area is done, is at /insights/vibe-coding-to-production.

08

Harden it, rewrite part, or leave it alone

One question decides most of it: can someone other than the AI tool explain where each permission is enforced? If yes, harden: fix the policies, move the secrets, add tests on the money paths, restore a backup. If the answer is 'somewhere in the screens, probably', rewrite the permission layer, and usually the data layer with it, and keep the prototype's screens as the specification. That's the reverse of a classic rewrite, which throws away what users reacted to.

Leave it if the decision test came back four noes: an internal tool for a few colleagues, non-sensitive data, behind your company sign-in. It still needs the minimum: sign-in in front of it, secrets off the client, a backup you have restored and the code in an account you own. Rebuilding a small tool that works and is cheap to run doesn't improve it.

A disclosure: we're paid to review and harden apps like these, through our vibe coding to production service (/services/vibe-coding-to-production) and our vibe code security review (/solutions/vibe-code-security-review), so we gain if this persuades you to commission one. Our published evidence is narrow. The closest case study is the materials marketplace at /work/materials-marketplace, whose first version was generated on an AI app builder. We audited what the export contained, then moved it onto its own database, with row-level security as the authorisation layer, SQL tests for the rules that matter and CI. That was one migration, not a body of reviews, and we've no published client work on Lovable, Base44 or Replit. Judge the advice by the method, which is all on the pages linked above.

FAQs

Building software by describing what you want to an AI coding tool and accepting the code it produces, usually judging it by running it instead of reading it. It's a fast way to a prototype. The code needs a proper review before real users depend on it.

Sources

Statements about what a platform does are checked against the vendor’s own documentation as of 2026-11-23. Vendors change things, so check the current page before you rely on a limit or a price.

Drafted with AI assistance (Claude). Published under Saveez Irfan’s name, who is accountable for it. Editorial policy

Start here

Tell us about the process that keeps costing you.

Fifteen minutes is usually enough for us to tell you whether this is an automation, an integration or something that should be built, and whether we're the right people to do it.

Book a 15-minute callsaveez@skofi.tech

What happens on the call

  • 15 minutes, no deck
  • We map the process on the call
  • A written scope, or a straight no