Skip to content

Is Vibe Coding Bad? 5 Real Risks and a Security Checklist

AI-written code passed security tests only 56% of the time on average in Veracode's July 2026 report, and in our logged test one audit prompt caught an open database table, a leaked payment key and a fake admin button in all three runs. Apps with logins, payments or customer data need the checklist below and a human review.

By Yotam DahanUpdated 15 min readBuild with AI

Is vibe coding bad? Our logged Claude Code security audit of a vibe-coded booking app, run 1 on November 6, 2026, ranks 3 critical, 2 high, 1 medium and 2 low findings
Run 1 of our three logged runs with Claude Opus 5.5, November 6, 2026: the one-screen summary, shown as saved. All three runs put the same three problems on top.

Vibe coding is not bad in itself. For a landing page, a prototype or an internal tool the vibe coding risks are small, and a short checklist covers them. It turns risky when an app stores logins, payments or customer data and nobody reviews the code, because AI-built apps often work perfectly while leaving that data open to strangers.

Is vibe coding safe? It depends on what you build

Find your project in the table: the risk depends on what the app stores, not on the tool that built it.

What you're buildingRiskWhat can go wrongMinimum safeguards
Personal tool or prototypeLowIt breaks and you lose some timeVersion history
Landing page or brochure siteLowA broken form, wrong prices, a privacy gapTest the form, check every fact, add a privacy page
Internal tool with company dataMediumWrong numbers drive decisions, or data reaches the wrong peopleTest against known results, limit who can open it
App with user accountsHighStrangers reading other users' dataProven login service, access rules audit, human review
Payments, health or financial dataVery highFraud, legal liability, lost trustHosted checkout, professional security review before launch

Most first projects sit in the top two rows, which is exactly where vibe coding works well. If yours does, that is the kind of site the Builders course (early access, open for pre-order) teaches you to build. Three of its lessons map onto the checklist below: "Git: how to go back when something breaks" in module 1, "Security basics" in module 6, and "Connecting lead capture and payments" for the landing page. That last one does not move you out of the payments row: let the payment provider's own checkout page handle the card, keep the secret key on the server, and get the review in the table before real money flows. The course does not cover apps with their own user logins. The five vibe coding problems below matter more the further down the table you go.

Risk 1: vibe coding security holes you can't see

Working code and safe code are different things, and the research on vibe coding security risks says so plainly.

Security findings on AI-built code
56%

average security pass rate for AI-written code in Veracode's 2026 tests

11.8%

of one agent's solutions were secure, though 57% worked

170

of 1,645 scanned Lovable projects had inadequate database access rules

Sources: Veracode's 2026 GenAI Code Security Report, the SusVibes study at ICML 2026 and the CVE-2025-48757 disclosure statement.

In the SusVibes study, SWE-Agent with Claude 4 Sonnet produced working solutions 57% of the time but secure ones only 11.8% of the time, and adding security hints to the request didn't fix it. Veracode also found coding-specialized models no safer than general ones.

The Lovable finding came from researchers who scanned projects in March 2025 and published the issue that May as CVE-2025-48757, a public ID for a known vulnerability. Those apps worked. The problem was row level security (RLS), the rules inside a database that decide which rows each visitor may see or change.

How a working app leaks data
  1. Visitor opens the app

    Their browser receives a public database key

  2. Missing access rules

    The database doesn't check who is asking

  3. Anyone can query

    A stranger can read or edit every row

  4. Nobody notices

    The app still works perfectly for normal users

Lovable and Bolt can both connect to Supabase, a popular database service. Supabase's own Security Advisor rates a table without these rules as an ERROR called Table publicly accessible, because anyone with your project URL can then read, edit and delete everything in it.

  • Use proven services for logins and payments instead of letting the AI invent its own.
  • Keep secret keys out of browser code. An API key is a password that lets software use a paid service, so store it in your host's environment variables.
  • Check every new package. Code-writing models sometimes name add-on packages that don't exist: in a USENIX Security 2025 study of 576,000 code samples, commercial models did so at least 5.2% of the time. Attackers can publish malware under those names, so ask the AI to confirm each new package is real and widely used before it installs anything.
  • Make the AI attack its own app with the prompt below, then fix what it finds.
  • Get a human review for anything in the bottom two rows of the table.
Security self-audit
Audit this project for security problems before launch. Check:
1. Every database table: can a logged-out visitor read, add or change rows?
2. Any API keys or passwords visible in browser code or committed files.
3. Forms: what happens with very long, empty or malicious input?
4. Pages or endpoints that work without logging in but shouldn't.
Explain each finding in plain English, rank them by severity, and
don't change any code until I approve the fixes.

We tested this exact prompt on a four-file demo booking site for a nail salon, built with the mistakes vibe-coded apps typically ship with: a Supabase table with row level security off, a Stripe secret key in browser code, a "Delete all bookings" button unlocked by adding ?admin=1 to the address, and customer text written straight into the page. On November 6, 2026 we ran it three times in Claude Code with Claude Opus 5.5, allowed to read files but not to change them, and logged every answer.

RunTimeCriticalHighMediumLowFiles changed
149.3 s3212None
248.7 s3212None
349.1 s3212None

All three runs put the same three vibe coding security issues on top: the open table, the Stripe key and the fake admin button. Each said the public Supabase key is fine once access rules are on, named what it could not check (the live Supabase dashboard and the Git history) and waited for approval. Run 2 led with the Stripe key and runs 1 and 3 with the open table, so treat every critical and high finding as a launch blocker, not just the first line.

The images below are renders of run 1's saved answer, word for word, not screenshots of a live session. One limit to keep in mind: the flaws were planted and obvious, in a four-file app, so a clean audit of your real app does not prove it is safe.

Logged Claude Code run 1 of the vibe coding security self-audit prompt: the prompt, then the first critical finding, a Supabase bookings table anyone can read, add, change or delete because row level security is off
Run 1 with Claude Opus 5.5, read-only, November 6, 2026. The gray box is our label; the rest is the answer as saved.

Further down, the same answer spells out what a logged-out stranger can do to the bookings table, the exact gap behind CVE-2025-48757, before it moves on to the Stripe key and the ?admin=1 button:

Run 1 continued: with RLS disabled, a logged-out visitor can read, add, edit and delete every booking; then a live Stripe secret key in app.js line 4 and a Delete all bookings button unlocked by ?admin=1
The same answer, continued. With row level security off, anyone could read every customer's name and phone number, or delete all bookings, without using the app at all.

End with a follow-up such as "Give me a one-screen summary I can paste into my launch checklist: one line per finding, severity first" to get the ranked list shown at the top of this page, then approve the fixes one at a time and re-run the audit.

Is Lovable safe?

Safer than it was. Lovable now runs a Quick scan every time you publish, and it checks for exactly these gaps: database access rules, packages with known vulnerabilities and MCP servers your app exposes without a login. The Quick scan doesn't judge your app's own logic; a Deep scan, which you start yourself from the Security view, also reviews logic, payments and leaked secrets. Lovable's security documentation still says the tools can't guarantee complete security and suggests a professional review for apps that handle sensitive data.

Risk 2: the AI does something destructive

One of the best-known vibe coding disasters: in July 2025, SaaStr founder Jason Lemkin reported that Replit's AI agent deleted his production database, the live data his project depended on, despite instructions not to change anything without permission, as The Register reported. The agent had access to live data, and nothing technical stopped it.

  • Separate test and live data. Build against a copy, and connect the real database only at launch.
  • Keep version history you control. Commit to Git after every working step. Claude Code's checkpoints can rewind its own file edits, but not changes made by the commands it runs.
  • Choose a mode that asks first. From version 2.1.283, Claude Code starts terminal and VS Code sessions in Auto mode: reads and file edits inside your project run without asking, and a separate classifier model reviews riskier actions such as commands (permission modes, checked November 8, 2026). For sensitive work, press Shift+Tab once in the terminal (in VS Code and the desktop app, use the mode menu under the prompt box) to switch to Manual, which asks before editing files, running commands or reaching the network.

Risk 3: costs that creep up

Most vibe coding tools charge by usage, so the meter runs while you iterate. The expensive moment is the debug loop: the AI fails to fix a bug, you ask again, and every attempt costs.

Where vibe coding costs hide

Credits

Browser builders such as Lovable charge credits for building, and top-ups cost extra once the monthly allowance runs out.

Tokens

Bolt bills in tokens, the chunks of text the AI reads and writes, so long sessions on big projects use more.

Plan limits

Claude Pro and Max have a five-hour session limit plus a weekly limit, shared between chat and Claude Code.

Hosting

Paid hosting plans often add usage-based charges once traffic or compute passes the included amount.

  • Plan before you build. A clear plan means fewer expensive rebuilds.
  • Stop after two failed fixes. Use the prompt below instead of asking a third time.
  • Set budget alerts that act. Vercel's Spend Management docs say a budget doesn't stop usage on its own: on a team or project budget, turn on Pause production deployments, and set the amount a little below your real limit, because Vercel checks spend every few minutes (checked November 18, 2026).
  • Know your plan's limits. See Claude Code usage limits.
Break the debug loop
Stop changing code. Explain in plain English what you think is causing
this problem, what you've tried so far, and why it didn't work. Then
give me two different ways to fix it, with the risks of each, and wait
for me to choose.

Risk 4: vibe coding technical debt nobody can maintain

Software needs upkeep, and code nobody understands piles up as technical debt: every change gets slower and riskier. In December 2025, the React team disclosed a flaw in React Server Components (CVE-2025-55182) that let attackers run code on affected servers, rated 10.0, the maximum on the standard severity scale.

Apps built on frameworks such as Next.js had to upgrade at once, and the React team warned against relying on hosting providers' temporary protections. A vibe-coded app with nobody watching for advisories like that one simply stays exposed.

  • Choose the simplest stack. Apps without a server weren't affected by that flaw at all, so follow the plain HTML approach in build a website with AI whenever it fits.
  • Write things down. Ask the AI for a README and a CLAUDE.md file that explain how the project works and how to change it.
  • Book a monthly check. Ask your AI tool to look for outdated or vulnerable dependencies and update them one at a time.
  • Avoid lock-in. Make sure you can export the code or sync it to GitHub; Claude Code vs Lovable compares what you own with each.

Even a simple page creates obligations once it collects names, emails or phone numbers. Privacy laws where your customers live may require a privacy notice, consent for marketing and limits on how you use the data.

  • Collect only what you need. A name and a phone number may be enough for a booking.
  • Say what you collect. Publish a short privacy page that explains what the form gathers and where it goes.
  • Check your tracking. Analytics and ad pixels may need a consent banner, depending on where your visitors are.
  • Know your breach deadline. If your customers are in the EU, the GDPR asks you to tell the data protection authority without undue delay and, where feasible, within 72 hours of finding a breach that puts people at risk (Article 33, checked November 8, 2026). Other countries set their own deadlines, so look yours up before launch, not during an incident.
  • Treat AI legal text as a draft. AI can draft a privacy policy or terms, but it can't take responsibility for them.

Is vibe coding bad for a small business? Pros and cons

For many small businesses, the alternative to a vibe-coded tool isn't a carefully engineered app. It's nothing, or a template site they dislike and can't change. Here are the vibe coding pros and cons side by side:

ProsCons
Test an idea cheaply before you hire anyoneCode that works can still be insecure
Build internal tools nobody would have fundedDebug loops burn credits and plan usage
Hand a developer a working prototype instead of a vague briefSomeone has to keep it patched
Change your own site without waiting for anyoneYou are responsible for the data it collects

Once you review and test what the AI builds, you're no longer purely vibe coding, as the vibe coding definition guide explains. When I build for clients with AI, the tool is never what makes the result safe. The boring checks around it do, and that is what the checklist below is for.

Warning signs and what to do

What you seeWhat it meansWhat to do
Table publicly accessible in Supabase's Security AdvisorA table has no row level securityTurn on RLS and add access rules before anyone else uses the app
Lovable's scan reports issues when you open PublishThe Quick scan found a database or dependency gapFix each finding, then run a Deep scan from the Security view
npm audit lists a critical vulnerabilityA package you depend on has a known flawAsk the AI to update that package alone, test, then redeploy
An API key shows up in browser code or on GitHubAnyone who finds it can use your paid accountRevoke it and create a new one at the provider, then store the new one in environment variables. Deleting it from the file isn't enough, because Git history keeps old versions
A bug you fixed comes back after the next changeNobody understands the code well enoughAsk for an explanation first, and commit after every working fix
Usage or the hosting bill jumps overnightSomething runs in a loop or is being abusedPause the project, find the trigger and add a limit

The vibe coding security checklist

Before you build

0 of 4 done

While you build

0 of 4 done

Before launch

0 of 6 done

After launch

0 of 3 done

Quick check0 of 3 correct

An AI-built app works perfectly for normal users. Can it still leak data?

The AI has failed to fix the same bug twice. What's the cheapest next step?

Claude Code ran a command that deleted a file. How do you get it back?

What to do next

Find your project's row in the risk table, paste the security self-audit prompt into your AI tool before you publish, and fix every critical and high finding. If the project sits in the bottom two rows, book a developer review now rather than after launch. The 10 follow-up audit prompts below go past the four in-page checks: login and password reset, file uploads, payment webhooks, a restore test from backup, other users' data and the buttons that cost money each time they run. Each comes with what a good answer looks like, including a real one from our logged run. To compare tools by their guardrails, see the best vibe coding tools; to build your own site with Git rollback and security basics from day one, see the Builders course.

Pre-launch security audit prompts

10 prompts that make your AI tool audit logins, uploads, payment webhooks, backups, other users' data and costly buttons, with a real good answer from our logged run.

Enter your email and the full section opens right here.

No spam. One click to unsubscribe. We use your email to send you this bonus, new guides and news about our courses.

Frequently asked questions

Will vibe coding replace developers?

Not for work where reliability matters. It lets non-developers build small things they would never have hired anyone for, and it speeds developers up, but someone still has to understand, secure and maintain software that customers depend on.

Is vibe coding bad for beginners or for learning to code?

It can be, if you accept everything without reading it. If you ask the AI to explain each change and make small edits yourself now and then, it works like a patient tutor that shows you real, working examples.

Who is responsible if a vibe-coded site leaks customer data?

In general, your business is. Privacy rules put the duty on whoever collects and stores the data, however the code was written, which is why anything that stores personal information deserves a proper review.

Why does AI-generated code have security flaws?

Models learn from vast amounts of public code, good and bad, and they are tuned to produce code that works. Security is a separate goal, so you usually have to ask for it explicitly and then check the result.

How do I find a developer to review my vibe-coded app?

Look for a freelance developer who knows your stack, for example Next.js with Supabase, and ask for a fixed-price security and code review. Share the code through GitHub along with a list of what the app does, so they can focus on logins, data access and payments.

Is vibe coding bad for the environment?

Every AI request runs on data-center hardware that uses electricity, and an agent session sends many requests, so long debug loops cost energy as well as money. Planning first, keeping requests small and stopping after two failed fixes cuts both.

Keep reading