Is Vibe Coding Bad? The Real Risks and How to Avoid Them
Is vibe coding bad? A balanced look at the real risks, from security holes to runaway costs and code nobody can maintain, plus a safety checklist for launch.
By Yotam DahanUpdated 9 min readBuild with AI
On this page
Vibe coding isn't bad in itself, but launching AI-written code that nobody has reviewed becomes risky as soon as customers, money or personal data are involved. For a landing page, a prototype or an internal tool, the risks are small and easy to manage. For anything with logins, payments or stored customer data, you need the safeguards below and usually a human review.
How risky is it? It depends on what you build
| What you're building | Risk | What can go wrong | Minimum safeguards |
|---|---|---|---|
| Personal tool or prototype | Low | It breaks and you lose some time | Version history |
| Landing page or brochure site | Low | A broken form, wrong prices, a privacy gap | Test the form, check every fact, add a privacy page |
| Internal tool with company data | Medium | Wrong numbers drive decisions, or data reaches the wrong people | Test against known results, limit who can open it |
| App with user accounts | High | Strangers reading other users' data | Proven login service, access rules audit, human review |
| Payments, health or financial data | Very high | Fraud, legal liability, lost trust | Hosted checkout, professional security review before launch |
Most first projects sit in the top two rows, which is exactly where vibe coding works well. The five risks below matter more the further down the table you go.
Risk 1: security holes you can't see
Working code and safe code are different things, and the research on AI-written code says so plainly.
of Veracode's tests where AI-written code introduced risky security flaws
AI models in Veracode's test set
of 1,645 scanned Lovable projects had inadequate database access rules
Sources: Veracode's GenAI Code Security Report, October 2025 update and the CVE-2025-48757 disclosure statement.
Veracode also found that larger, newer models were no more secure than smaller 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.
Visitor opens the app
Their browser receives a public database key
Missing access rules
The database doesn't check who is asking
Anyone can query
A stranger can read or edit every row
Nobody notices
The app still works perfectly for normal users
To be fair to Lovable, it now runs an automatic security scan before you publish that checks for gaps in these rules. Its own security documentation says the tools can't guarantee complete security and recommends an extra professional review for apps that handle sensitive data.
- 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.
- 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.
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.Risk 2: the AI does something destructive
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 they don't capture changes made by the commands it runs.
- Choose a mode that asks first. Recent terminal and VS Code versions of Claude Code start in Auto mode, where a background classifier approves actions for you. For sensitive work, press Shift+Tab or use the desktop mode selector to switch to Manual, which asks before editing files or running commands.
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.
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's paid plans have usage limits on a rolling five-hour window plus weekly limits, 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 on your AI tool and your host, and turn on a hard cap where one exists.
- Know your plan's limits. See Claude Code usage limits and Claude Code pricing.
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: code nobody can maintain
Software needs upkeep. In December 2025, the React team disclosed a critical flaw in React Server Components, rated 10.0 out of 10 for severity, that let attackers run code on affected servers.
Apps built on frameworks such as Next.js had to upgrade immediately, and the React team warned against relying on hosting providers' protections instead. 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.
Risk 5: privacy and legal gaps
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.
- Treat AI legal text as a draft. AI can draft a privacy policy or terms, but it can't take responsibility for them.
The fair case for vibe coding
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.
Vibe coding lets owners test ideas cheaply, build internal tools nobody would have funded, and hand developers a working prototype instead of a vague brief. 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.
The vibe coding safety checklist
Before you build
0 of 4 done
While you build
0 of 4 done
Before launch
0 of 5 done
After launch
0 of 3 done
Quick check0 of 2 correct
An AI-built app works perfectly for normal users. Can it still leak data?
Not quite.
Working and secure are different things, and Veracode found newer, larger models were no more secure.
The AI has failed to fix the same bug twice. What's the cheapest next step?
Not quite.
Explanation-first prompts break the debug loops that burn credits and usage.
What to do next
Find your current or planned project in the risk table and run the matching checklist sections before you publish anything. If it sits in the bottom two rows, budget for a developer review now rather than after launch.
To compare tools by their guardrails and pricing, see the best vibe coding tools. The Builders course includes lessons on security basics, accessibility and privacy for sites you build with AI.
Pre-launch security audit prompts
10 prompts that make your AI tool audit its own work for exposed data, leaked keys, weak access rules and costly loops, with what a good answer looks like.
Enter your email and the full section opens right here. You also get a free lesson from the course.
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 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.
Keep reading
What Is Vibe Coding? Meaning, Examples and How to Start
What is vibe coding? A plain-English definition, where the term came from, how it works, what it's good and bad for, the main tools, and how to start safely.
Build with AI · 8 min readBest Vibe Coding Tools in 2026: Prices and Who Each Is For
The best vibe coding tools with prices checked in October 2026: Claude Code, Cursor, Lovable, Bolt, v0, Replit and more, matched to your skills and your goal.
Build with AI · 10 min readClaude Code Usage Limits Explained: How to Use Fewer Tokens
How Claude Code usage works on Pro, Max, Team and API plans: the 5-hour and weekly limits, how to check your usage, why you hit limits and 8 ways to use less.
Claude Code · 9 min read