Guide

What is vibe coding, and the risks nobody tells you about

Vibe coding is how a lot of real products get built now: describe what you want, let the AI write it, keep going while it works. It's a genuine superpower, and this isn't a guide telling you to stop. It's the list of risks that come with it, backed by research rather than vibes, and what to do about each one.

Updated 6 min read

What vibe coding means

The term comes from Andrej Karpathy, a founding member of OpenAI and former director of AI at Tesla, in a post on X on 2 February 2025. He described a new way of working where you "fully give in to the vibes, embrace exponentials, and forget that the code even exists": he would "Accept All" always, no longer read the diffs, and paste error messages back in until they went away. He called it "not too bad for throwaway weekend projects".

The phrase escaped its weekend-project origins fast. Collins Dictionary named it Word of the Year for 2025, defining it as using AI prompted by natural language to write computer code. Tools like Lovable, Bolt, v0, Replit, Cursor and Claude Code made it the default way many founders build.

A useful line comes from Simon Willison: if an LLM wrote the code, and you then reviewed it, tested it thoroughly and could explain how it works to someone else, that's not vibe coding, it's software development. Vibe coding is specifically shipping code nobody has read. Most of the risks below come from exactly that part.

Risk 1: the code works, and is quietly insecure

AI-written code usually runs. Whether it's safe is a separate question, and the research is consistent:

  • Veracode, 2025: testing code from over 100 large language models across Java, JavaScript, Python and C#, AI-generated code introduced risky security flaws in 45% of tests. Larger, newer models didn't do better. Its spring 2026 update still found only 55% of generation tasks produced secure code.
  • "Is Vibe Coding Safe?" (ICML 2026): across 186 real-world tasks, researchers found that all the coding agents they tested performed poorly on security. One popular setup produced working code 57% of the time, but secure code only 11.8% of the time.
  • Earlier work on GitHub Copilot ("Asleep at the Keyboard?", 2021) found about 40% of 1,689 generated programs vulnerable. The tools have improved at writing code that runs much faster than at writing code that's safe.

The pattern behind these numbers: a model optimises for "does what was asked". Checking who is allowed to do it (authentication, authorization, input validation) is exactly what a prompt like "add a delete button" doesn't mention.

Risk 2: your database is open to anyone

Many AI app builders connect the browser straight to the database with a public key, which is safe only if every table has access rules. When they're missing, anyone can read the data:

  • 2025: a researcher found 170 of 1,645 apps in Lovable's public showcase exposing data because row level security wasn't set up, recorded as CVE-2025-48757. Lovable disputes it, saying each customer is responsible for protecting their own app's data.
  • October 2025: Escape scanned over 5,600 public apps built on vibe-coding platforms and found more than 2,000 vulnerabilities, over 400 exposed secrets and 175 instances of exposed personal data, from passive scanning alone.
  • February 2026: Wiz found that Moltbook, whose founder said he "didn't write a single line of code", exposed 1.5 million API tokens and 35,000 email addresses through a database with row level security missing.

Check yours in five minutes with our row level security guide.

Risk 3: keys end up in public

Pasting a key into a prompt or a file "just to make it work" is the fastest way to get a feature running, and AI tools happily commit whatever is in the folder. GitGuardian, a company that sells secret detection, counted about 29 million secrets leaked on public GitHub in 2025, up 34% on the year before, with leaks of AI service keys up 81%. It also reported that commits made with Claude Code leaked secrets at about 3.2%, roughly twice its baseline rate. The tool isn't the problem; unreviewed commits are.

Attackers watch for this. Palo Alto Networks' Unit 42 documented a campaign that used AWS keys within five minutes of them appearing on GitHub. If it happens to you, rotate first, clean up second.

Risk 4: packages that don't exist (yet)

Language models sometimes suggest installing packages that don't exist. A USENIX Security 2025 study of 576,000 generated code samples from 16 models found that 19.7% of the packages they recommended were hallucinated, 205,474 unique made-up names. Commercial models did it at least 5.2% of the time, open-source models 21.7%. Worse, 43% of hallucinated names came back in all ten repeats of the same prompt.

That repeatability is the danger: an attacker can register a commonly hallucinated name with malicious code and wait for AI coders to install it. The attack has a name, slopsquatting. Before installing a package your AI suggests, check it exists, has real downloads and a real repository.

Risk 5: every change can break something that worked

When nobody reads the diffs, nobody notices that fixing the pricing page moved the Upgrade button under a banner, or that a refactor renamed the route checkout depends on. Google's DORA research found that, across teams, more AI adoption was associated with an estimated 7.2% drop in delivery stability (2024), and that more change without strong automated testing leads to instability (2025).

The extreme version made the news in July 2025, when an AI coding agent in SaaStr founder Jason Lemkin's experiment deleted a production database during a code freeze, despite instructions not to change anything. Replit's response included a pledge to separate development and production databases automatically.

The everyday version is quieter: sign-up dead-ends for three days and you find out from your revenue. The fix is to test the few journeys that make you money on every change. Here's how.

Risk 6: someone else spends your money

An API route that calls OpenAI or Anthropic with no login check and no rate limit is an open tap on your AI bill. So is a key in browser code. Neither shows up as a bug: everything works, right up to the invoice. Put a sign-in check and a rate limit on every route that calls a paid API, and set a hard monthly spending limit with your AI provider as a backstop.

How to vibe code without the hangover

None of this means read every line. It means put a few checks where the damage is:

  • Keep secrets out of code: environment variables, .env* in .gitignore, nothing secret behind a NEXT_PUBLIC_ or VITE_ prefix.
  • Lock the database: row level security on every table, policies scoped to the owner.
  • Read the diffs that matter: anything touching auth, payments, database rules or API routes deserves a look, even if the rest doesn't.
  • Test the money paths on every change: sign-up, login, checkout, your core feature.
  • Cap the spend: hard limits on AI keys, restricted Stripe keys.
  • Commit small: small, frequent commits make it easy to see, and undo, what broke.

Our pre-launch checklist turns this into a list you can work through in an afternoon.

Where Corvis fits

Corvis exists for founders who build this way. It tests your key journeys in a real browser on every Vercel preview and tells you on the pull request, in plain English, if your AI broke one, with a fix brief to hand back to it. After you ship, it learns your app's normal payments and signups and tells you, with the deploy it started after, when they stop. Around that it watches for leaked keys on every push, Supabase tables anyone can read, uptime, failed payments and AI spend, and asks before it fixes anything. Start with the free repo scan.

Sources

Checked against these pages on 24 October 2026. Providers change their dashboards; if a step looks different, the source has the current version.

  1. Simon Willison: Not all AI-assisted programming is vibe coding (quotes Karpathy's post in full) (opens in a new tab)
  2. Andrej Karpathy's original post on X (opens in a new tab)
  3. Collins Dictionary: Word of the Year 2025 (opens in a new tab)
  4. Veracode: 2025 GenAI Code Security Report (opens in a new tab)
  5. Veracode: Spring 2026 GenAI code security update (opens in a new tab)
  6. "Is Vibe Coding Safe?" (arXiv 2512.03262) (opens in a new tab)
  7. "Asleep at the Keyboard?" (arXiv 2108.09293) (opens in a new tab)
  8. NVD: CVE-2025-48757 (opens in a new tab)
  9. Escape: How we discovered vulnerabilities in apps built with vibe coding (opens in a new tab)
  10. Wiz: Exposed Moltbook database (opens in a new tab)
  11. GitGuardian: The State of Secrets Sprawl 2026 (opens in a new tab)
  12. Palo Alto Networks Unit 42: EleKtra-Leak (opens in a new tab)
  13. Spracklen et al.: "We Have a Package for You!" (arXiv 2406.10279) (opens in a new tab)
  14. Google Cloud: Announcing the 2024 DORA report (opens in a new tab)
  15. Google Cloud: Announcing the 2025 DORA report (opens in a new tab)
  16. TechTarget: Replit AI agent snafu (opens in a new tab)

Is your repo leaking right now?

The free scan checks a public GitHub repo for leaked keys and risky code, and grades it from A to F.

Scan a repo free