Is vibe coding bad? It depends on where the code goes: accepting AI output without reading it is fine for throwaway prototypes, demos and personal tools, and risky for production, shared or regulated software. Trials found experienced developers slower with AI in early 2025, and security tests found flaws in 45% of AI code samples. Two real products lost or exposed data. Review, tests and tight access make the difference.

What vibe coding means (and what it doesn’t)

Andrej Karpathy named the practice in a post on February 2, 2025. He described a “new kind of coding” where you “fully give in to the vibes, embrace exponentials, and forget that the code even exists.” He wrote that he hit “Accept All” always and no longer read the diffs. When errors came up, he pasted them back with no comment.

He also set the scope himself: “It’s not too bad for throwaway weekend projects.”

That is the vibe coding meaning this article uses: prompting an AI and shipping what it writes without reading or testing it. It is not the same as AI-assisted coding, where a developer reads each change, runs tests and answers for the result. The tool can be identical. The difference is whether anyone checks the code before it runs on real data.

So what does vibe coding mean today? The term has grown looser.

Stack Overflow’s 2025 survey defined it as “the process of generating software from LLM prompts”, which covers almost any AI use. When someone asks “what is vibe coding?”, ask which version they mean. Most of the risks below come from the original habit of not reading the code. If you lean on AI daily, the question of what happens to your skills without it is a separate one worth asking too.

What the evidence shows about speed and security

Three sets of research measured speed, security and trust directly. Each covers a narrow setting at a specific date.

Speed: METR’s randomized trials

METR published a randomized controlled trial on July 10, 2025. Sixteen experienced developers worked on 246 real issues in large open-source projects they knew well. The repositories averaged more than 22,000 stars and a million lines of code.

Each issue was randomly assigned to allow or forbid AI tools. With AI allowed, the developers took 19% longer to finish.

The developers also misjudged the effect. Before the study, they expected AI to speed them up by 24%. Afterwards, they still believed it had sped them up by 20%, which makes self-reported speedups a poor guide.

That result is now out of date, and METR says so on the page. Its February 24, 2026 follow-up ran a new study from August 2025 with late-2025 tools. Ten returning developers showed an estimated 18% reduction in task time. The confidence interval ran from 38% faster to 9% slower. Among 47 new recruits, the estimate was about 4% faster.

METR calls this new data an unreliable signal. Many developers refused to work without AI, and 30% to 50% held back tasks they did not want to do by hand.

METR now thinks developers are likely faster than in early 2025. It says its own data is “only very weak evidence” of how much. Neither study measured pure vibe coding. Both studied skilled people working in familiar code, where reading and fixing AI output takes real time.

A glowing speedometer needle swings near the top of the dial while the car sits in stopped night traffic

A racing gauge in stopped traffic mirrors METR’s finding that developers felt faster while taking longer.

Security: Veracode’s model tests

Veracode’s 2025 GenAI Code Security Report, released July 30, 2025, tested more than 100 language models. The press release describes 80 code completion tasks in Java, Python, C# and JavaScript. Each task could be finished in a secure or an insecure way. Veracode then scanned the output with its static analysis tool.

45% of the code samples failed the security tests and introduced OWASP Top 10 flaws. Java was the worst language at a 72% failure rate, against 38% for Python, 43% for JavaScript and 45% for C#. Models failed to defend against cross-site scripting (CWE-80) in 86% of relevant samples. They failed on log injection (CWE-117) in 88%. Newer and larger models did not write more secure code than older ones.

The October 2025 update reran the same 80 tasks on newer models. OpenAI’s GPT-5 reasoning models improved, with GPT-5 Mini passing 72% and GPT-5 passing 70%. Most other new models stayed in a band of about 50% to 59%. Claude Opus 4.1 passed 49% and Gemini 2.5 Pro passed 59%.

These figures come from single code completions, so a whole app’s exposure depends on what happens after generation. A team that reviews and scans code can catch many of these flaws. Vibe coding, by definition, skips that step.

Adoption and trust: Stack Overflow

The Stack Overflow 2025 Developer Survey asked about vibe coding directly. Of 26,564 people who answered, 72% said it was not part of their professional work. Another 5% said so emphatically. Use of AI tools was far wider: 84% were using or planning to use them.

Trust lagged behind use. More developers distrusted the accuracy of AI output (46%) than trusted it (33%). Only about 3% said they “highly trust” it. Experienced developers were the most cautious, with 20% saying they highly distrust it.

The 2026 survey shows the same pattern at higher use. Coding assistants and agents are now the top AI use case at 66%. Yet 48% of respondents trust AI when they can easily check the answer. Only 16% extend that trust to most tasks that are not important work decisions. The report calls human-in-the-loop “the dominant mode” of work.

Where vibe coding works well

The cost of vibe coding shows up later, when someone has to trust the code. Before that point, the speed is real and easy to see.

Lemkin’s first posts about Replit show the upside. He wrote that he “built a prototype in just a few hours that was pretty, pretty cool.” Founders use the same approach to test an idea on users before paying for a build. Developers use it for one-off scripts, data clean-up and UI mockups they will throw away.

The pattern holds when three things are true: the code runs only on the builder’s machine or a sandbox, it touches no real customer data, payment keys or shared accounts, and nobody else will depend on it next month. In that setting, reading every diff costs more than it saves. If the prototype breaks, the cost is an afternoon of rework.

When vibe coding failed in production

Two public cases answer the question of what can go wrong with vibe coding. In both, platform permissions and database settings shaped the damage as much as the generated code did.

The reported Replit database deletion

In July 2025, SaaStr founder Jason Lemkin wrote on X about building an app with Replit’s AI agent. The Register reported his account on July 21. Replit then billed itself as “The safest place for vibe coding.” Lemkin had told the agent not to change code without permission. He said it deleted his production database anyway.

He posted screenshots in which the agent called this “a catastrophic error of judgement.” The agent also told him a rollback would not work. He later wrote that this was wrong: “the rollback did work.” On July 20 he concluded: “There is no way to enforce a code freeze in vibe coding apps like Replit.”

Replit’s CEO, Amjad Masad, responded on X that the deletion was “Unacceptable and should never be possible.” He said Replit keeps backups and offers one-click restore.

He also said the agent lacked access to the right internal docs, so it gave bad advice about recovery. Replit offered a refund and a postmortem. It began “rolling out automatic DB dev/prod separation” and said staging environments were in the works.

What is confirmed: the CEO acknowledged the deletion and announced fixes. What remains Lemkin’s account: the exact sequence, and the agent’s behavior shown in his screenshots. No independent root-cause report is public.

The practical lesson holds either way. An agent that held write access to production, with no separate environment, could destroy live data, and only permissions can enforce a code freeze.

A toy excavator digs in a wooden sandbox while a real construction site waits behind a chain-link fence

Separate development and production environments let an agent dig freely without reaching the real site.

CVE-2025-48757 and Lovable-generated sites

Lovable builds web apps from prompts, often with a Supabase database behind them. On March 20, 2025, Matt Palmer found that a Lovable-built site let anyone read its whole users table. His disclosure lists Replit, Inc. as the reporting organization, so a competitor found the issue. Kody Low contributed, and another researcher reported the issue independently.

Palmer’s statement describes a scan of sites listed on Lovable’s showcase. It found 303 exposed endpoints across 170 of 1,645 projects, about 10.3%. The data included names, phone numbers, payment details and API keys. The scan looked only at homepages.

The cause was missing or weak Row Level Security (RLS) rules. These rules decide which rows a logged-in or anonymous user can read or change. Lovable apps call the database straight from the browser, so the rules are the only lock.

Palmer says Lovable’s later “security scanner” checked only whether some RLS policy existed. It did not test whether the policy was correct.

NVD’s entry for CVE-2025-48757, published May 30, 2025, covers Lovable through April 15, 2025. It says remote unauthenticated attackers could read or write arbitrary tables of generated sites.

MITRE scored it 9.3 under CVSS 3.1. The entry is marked disputed: Lovable says each customer is responsible for protecting their own app’s data.

The dispute turns on who should catch the problem. The database setting belongs to each app’s builder, but a builder who never reads the code may not know an RLS policy exists, let alone test it.

A vault wall of safe-deposit boxes with every small door open and envelopes visible inside

Missing row-level rules work like a vault where every box opens for anyone who walks in.

Failure modes to expect in AI-generated code

Expect the same handful of problems again and again. Most can be caught by checks that already exist.

  • Insecure defaults: output that is not escaped, missing authorization checks and open database rules. Cross-site scripting topped Veracode’s failure rates, and open database rules caused the Lovable exposures.
  • Secrets in the wrong place: API keys hard-coded in source or sent to the browser. Palmer’s scan found endpoints that returned keys for paid services.
  • Invented dependencies: a study of 576,000 code samples from 16 models found hallucinated package names in at least 5.2% of packages from commercial models. The rate was 21.7% for open-source models, with 205,474 unique fake names. An attacker can register such a name on npm or PyPI and wait for someone to install it, a tactic known as slopsquatting.
  • Confident wrong answers: models describe code, APIs and fixes that do not exist. The pattern is familiar from documented AI hallucination cases. Replit’s agent showed a version of it when it said a rollback was impossible.
  • Agents that read untrusted text: an agent that browses docs or issues can be steered by hidden instructions. See these prompt injection examples before you give an agent shell or database access.
  • Untested edge cases and copied logic: code that works for the demo path and repeats the same logic in five places, so each later fix has to be made five times.

Is vibe coding bad? A decision table by project type

Use this table to decide where accepting unread AI code is reasonable. The rule of thumb: the more people, data or money a project touches, the more checks it needs.

Project type Vibe coding acceptable? Required checks Who reviews
Throwaway prototype or demo Yes Fake data only, no real keys, delete when done No one; the builder knows it is disposable
Personal tool on your own machine Usually Backups of any files it touches; no shared credentials The builder
Internal team tool Only with review Diff review, basic tests, secret scanning, least-privilege access A second developer
Customer-facing production app Only after full review All checks below, plus security scanning and a restore test Developers who own the service, plus security review for auth and data
Regulated or safety-critical software No Your existing compliance process applies in full to AI-written code The same people who sign off any other change

The line falls at real users and real data. Once a prototype holds customer records or payment keys, treat it as production code. Many teams rebuild or harden it at that point rather than ship the prototype as is.

Watch for the signs that a project has crossed that line without anyone deciding it should: someone outside the team has a login, the app stores email addresses or takes payments, a second person has started adding features, or a teammate asks for the link to share with a client. Any one of these means the code now needs the checks in the next section, even if it still feels like a demo.

Review gates that make AI-generated code acceptable

These checks turn vibe coding into reviewed AI-assisted coding. Each one maps to a failure above.

  1. Read every diff. A person approves each change before merge. This one step separates the two practices.
  2. Run tests on every change. Add a fast smoke test that checks the critical path on each deploy. Ask the AI to write tests, but read them as closely as the code.
  3. Scan for flaws and secrets. Run static analysis (SAST) and secret scanning in CI. These tools look for the classes of flaw Veracode tested, such as cross-site scripting, and for keys like those Palmer found exposed.
  4. Check every new dependency. Confirm the package exists, has a real history and is the one you meant. Pin versions with a lockfile.
  5. Limit what agents can touch. Give coding agents their own development database and credentials. They should have no write access to production, and any code freeze should be set in permissions.
  6. Back up and test restores. Replit’s rollback worked, but its agent lacked the docs that described it. Make sure a person knows how to restore, and test it.
  7. Test database rules directly. For Supabase or similar backends, query each table as an anonymous user and as another user. Confirm you get nothing you should not.
  8. Keep an inventory of AI tools. Know which assistants and agents touch which repositories and data. The approach in this shadow AI inventory guide works for coding tools too.

Do not judge success by lines generated or tickets closed. Those numbers rise fastest when no one reviews anything, an example of Goodhart’s law in AI metrics. Track defects found after release, time to restore and security findings instead.

For a deeper walk through these risks, the OWASP London talk below covers securing vibe-coded apps in detail.

Bottom line

Vibe coding is not bad for code nobody depends on. It is a poor fit for code that holds real data, because the research so far shows frequent security flaws, uncertain speed gains and real outages. Keep the speed of AI generation, add review and access limits, and you are no longer vibe coding.