Skip to main content
LinkTech Solutions
Custom Software

Vibe Coding Security Risks: Lessons from 5,000 Exposed Apps

June 9, 2026·9 min read·By Nezar Humoud, Founder

Follow us

Security researchers found roughly 5,000 vibe-coded apps exposing user data — exposed API keys, missing access controls, databases readable by anyone with the URL. Every cited source on this topic sells a security scanner. We don't. Here are the 6 risks every AI-built app ships with, and how an engineering team actually fixes each one.

Security researchers reported, in findings covered by Wired and PCMag, roughly 5,000 vibe-coded apps exposing user data— API keys sitting in public frontend code, databases readable by anyone with the URL, login screens that guarded nothing. The internet noticed. Per DataForSEO Content Analysis, spring 2026, web mentions of “vibe coding” grew from about 21,700 a month in July 2025 to about 48,300 a month in April 2026 — more than doubling in nine months — and by April, negative-sentiment mentions outnumbered positive nearly three to one (23,264 negative vs. 7,992 positive). Here's the awkward part: nearly every article ranking for this topic is written by a company selling a security scanner. We don't sell one. We're a Southern California engineering shop that gets hired to fix these apps after the scanner report lands, and this is the field guide we wish our clients had read first: the six risks every AI-built app ships with, and how an engineering team actually closes each one.

Why are vibe-coded apps so often insecure?

AI models optimize for code that works in the demo, not code that survives an attacker — and nobody reads the code before shipping. That single sentence explains almost every headline. A model like Anthropic's Claude Fable 5, or whatever powers Lovable, Bolt, or Replit under the hood, is rewarded for producing something that runs and looks right. “Runs and looks right” and “resists a motivated stranger” are different properties, and only one of them is visible in a demo.

Two mechanisms make it worse. First, models learn from the code that exists, and an enormous share of public code — tutorials, quick-start repos, decade-old Stack Overflow answers — contains insecure patterns: hardcoded keys, string-built SQL queries, auth checks done in the browser. The AI faithfully reproduces what it was trained on. Second, the entire culture of vibe coding is speed. The point is to skip the slow parts, and code review is the slowest part of all. When the person prompting can't read the output and the workflow never pauses for someone who can, insecure code sails straight from generation to a public URL.

The failures are no longer hypothetical, and searchers know it: our DataForSEO pull (June 2026) shows searches for “vibe coding security” running roughly 3× year over year. People aren't asking because they're curious. They're asking because someone's app just made the news — or because their own API bill just tripled overnight.

What are the biggest vibe coding security risks?

Six risks account for nearly every vibe-coded breach we've seen: exposed secrets, missing auth, open databases, unvalidated input, bad dependencies, and prompt-degraded architecture. They show up across every builder and every model, because they're structural — consequences of how the code gets made, not of which tool made it.

1. API keys and secrets in frontend code

An API key embedded in frontend code is readable by anyone who opens their browser's dev tools — no hacking required, just View Source. It happens because the AI takes the shortest path: you ask for a feature that calls a paid API, and the model wires the key directly into the page, where it works instantly in the demo. Attackers run automated scrapers that harvest exposed keys within hours of deployment, then run up your OpenAI, Stripe, or Maps bill or use the key to reach the data behind it. The fix: rotate every key that ever touched the codebase (assume it's already harvested), move all secrets to server-side environment variables, and make every third-party call pass through a backend route the browser never sees inside.

2. Missing or client-side-only authentication

Hiding a page is not protecting it — if the server hands over data to anyone who asks, the login screen is theater. AI builders generate beautiful login flows, but the check often lives only in the browser: the UI hides the dashboard from logged-out users while the API behind it happily answers direct requests. This was the signature flaw in the 5,000-app research — apps that lookedlocked and weren't. The fix is to enforce authentication on the backend for every route and every API endpoint, and to verify it the blunt way: log out, then request your own API endpoints directly. If anything answers, it's open.

3. No database access rules

A database without access rules serves any row to any authenticated user — and sometimes to unauthenticated ones. Modern backends like Supabase and Firebase are secure by design, but their protection (row-level security, security rules) has to be switched on and written correctly, and AI builders frequently skip that step or generate rules so permissive they might as well not exist. The result is a customer table where user A can read user B's records by changing an ID in the request. The fix: enable row-level security on every table, write rules that scope each row to its owner, and test with a second account trying to read the first account's data. If the second account sees anything it shouldn't, the rules failed.

4. Unvalidated user input

Every text box in your app is a door, and unvalidated input is that door left unlocked — injection attacks have topped security lists for twenty years precisely because they keep working. AI-generated code often passes user input straight into database queries, file paths, or rendered HTML, because that's the shortest code that satisfies the prompt. An attacker who types a crafted string where a name should go can read tables, delete records, or plant scripts that run in other users' browsers. The fix: validate and sanitize everything on the server (never trust the frontend's checks), use parameterized queries everywhere, and escape output before rendering it.

5. Hallucinated and outdated dependencies

AI models recommend packages that are outdated, abandoned, or don't exist at all — and attackers have industrialized the response. When a model repeatedly hallucinates the same plausible-sounding package name, attackers register that name and fill it with malware, a technique known as slopsquatting; installs then succeed and the malicious code runs inside your app with full access. Even real packages arrive pinned to whatever version was common in the training data, often several known vulnerabilities ago. The fix: audit the dependency list (run npm auditor the equivalent), verify every package actually exists and is maintained, and update to patched versions before launch — then keep doing it, because new CVEs don't wait for your roadmap.

6. Prompt-degraded architecture

Every additional prompt can quietly weaken security that an earlier prompt added — the AI patches locally without understanding the whole system. Ask for a bug fix and the model may route around the auth middleware; ask for a faster page and it may cache data that was supposed to be private; ask for an export feature and encryption applied three weeks ago silently doesn't cover the new path. No single change looks wrong, which is why this risk is invisible to anyone reviewing prompts instead of code. The fix is periodic whole-system review: an engineer reads the auth flow, the data flow, and the change history end to end — not just the latest diff — and re-verifies that the protections you added in week one still hold in week ten.

How do you secure a vibe-coded app before launch?

Run this order of operations: secrets, authentication, database rules, input validation, dependencies, then a human review of the data flows. The order matters — it's sorted by blast radius, so the failures that cost the most get closed first:

  1. Rotate and relocate every secret. Treat any key that ever appeared in the code as compromised. Rotate them all, move them to server-side environment variables, and search the frontend bundle to confirm nothing leaks.
  2. Verify backend authentication. Log out and hit your API endpoints directly. Every route that returns data must reject the request — hiding buttons in the UI counts for nothing.
  3. Turn on and test database access rules. Enable row-level security, scope rows to their owners, then attack it yourself with a second account.
  4. Validate all input on the server. Parameterized queries, sanitized fields, escaped output. Assume every form will eventually be filled in by someone hostile.
  5. Audit the dependencies. Confirm every package is real, maintained, and patched. Remove anything you can't account for.
  6. Have an engineer read the data flows. One pass by someone who can trace where data enters, where it's stored, and who can reach it. This is the step that catches what the first five can't.

For an internal tool with no sensitive data, steps one through five may genuinely be enough. The moment customer data, payments, or logins are involved, step six stops being optional.

Why isn't a security scanner enough?

Scanners catch known patterns; they can't tell you that the wrong user can see the right data. That distinction — authentication versus authorization — is where scanner coverage ends. A scanner can confirm your login system exists and your secrets aren't in the bundle. It cannot know that in yourbusiness, a contractor should see the jobs assigned to them but not the client's billing history, because that rule lives in your head, not in any vulnerability database.

To be fair to the scanner vendors: their tools are genuinely useful, and we use them. Exposed secrets, vulnerable dependency versions, common injection shapes — automated detection handles those faster than any human. Treat that as the floor. What sits above the floor is everything a scanner is structurally blind to: business-logic flaws (the discount code that stacks forever, the status change that skips approval), authorization gaps, and the cross-prompt design drift from risk six — a system whose individual pieces all pass inspection while the way they're wired together leaks. Those only surface when someone who understands both the code and the business reads how data actually moves through the app. A clean scan report on a vibe-coded app is a good sign, not a green light.

What if the app is already live?

Assume exposure, rotate every secret, and audit before adding a single new feature. If keys were ever in the frontend, treat the data they guarded as read; if auth was ever client-side-only, treat the database as browsed. That sounds harsh, but automated harvesting is fast enough that “probably nobody noticed” is not a plan. Check your provider dashboards for usage you don't recognize — an unexplained API bill is often the first symptom — and freeze feature work until the six risks above are verifiably closed, because every new prompt on an unaudited codebase widens the surface.

The good news: a live vibe-coded app is usually rescuable, and the rescue is cheaper than a rebuild more often than the horror stories suggest. We wrote the full playbook — triage order, refactor-vs-rebuild math, what to expect from an engineering audit — in how to fix a vibe-coded app. If you're still weighing whether AI-first building was the right call at all, our broader verdict is in is vibe coding bad; and if you haven't built yet and are choosing a tool, start with the capability map in can AI build an app.

Want a real security read on your AI-built app?

Tell us what you built and we'll run an engineer-led audit of the parts scanners miss: secrets, authentication, database rules, and how data actually flows through your app. You get the findings in plain English — what's exposed, what's fine, what to fix first — and an honest quote for the fixes, whether or not we're the ones who do them.

Real engineers, not sales reps. Reply within 1 business day.

Prefer to talk? Call (909) 662-4058 — no intake form required.

Prefer to talk it through? Call us directly at (909) 662-4058— no intake form required.

Frequently asked questions

What are the security risks of vibe coding?

The six recurring risks in AI-generated apps are: API keys and secrets embedded in frontend code, missing or client-side-only authentication, absent database access rules (like missing row-level security), unvalidated user input enabling injection attacks, hallucinated or outdated dependencies that attackers can exploit, and architecture that degrades with every additional prompt. None of these announce themselves — the app works fine in a demo while being exploitable in production.

How do I make a vibe-coded app secure?

Start with the highest-blast-radius items: rotate every API key that ever touched the code and move secrets server-side; verify authentication is enforced on the backend, not just hidden in the UI; turn on and test database access rules; validate all user input on the server. Then run a dependency audit and have an engineer review the data flows. Automated scanners catch some of this; they can't tell you whether your business logic gives the wrong user access to the right data.

Are AI app builders secure?

The platforms themselves (Lovable, Replit, Bolt, Base44) are reasonably secure infrastructure — the insecurity is in what gets generated and shipped without review. AI models optimize for code that works in the demo, not code that resists attack, and they inherit insecure patterns from their training data. Platform defaults are improving, but every study of AI-generated code to date finds a meaningful share contains exploitable flaws.

How do I know if my AI-built app has already been exposed?

Check the obvious blast doors first: search your frontend bundle for API keys (open dev tools, view source, search for 'key', 'secret', 'sk-'), test whether your database or API endpoints respond without being logged in, and review provider dashboards for usage you don't recognize — unexpected API charges are often the first symptom. If you find an exposed key, rotate it immediately and assume the data it guarded was read.

Do security scanners fix vibe coding risks?

Scanners catch known patterns — exposed secrets, vulnerable dependency versions, common injection shapes. They don't catch broken business logic, missing authorization (who is allowed to see what), or design flaws spread across multiple AI-generated changes. Treat scanners as the floor, not the fix: useful for triage, not a substitute for an engineer reading how data actually flows through the app.

More insights

Website Development7 Website Changes to Stay Visible Inside Google AI Mode (2026 Playbook)

Every other article on Google AI Mode tells you to use AI tools. This one tells you how to make sure AI Mode shows your business when customers ask. The 7 technical changes — schema, structure, /llms.txt, and the E-E-A-T signals that earn citations in AI answers.

May 25, 2026·10 min read

Business StrategyBest Web Design Agencies in Orange County (2026): Honest Roundup by Specialty

Most “best web design agencies in Orange County” lists are paid placements. This one is editorial — six OC agencies including ours, sorted by what each one is genuinely best at, with the watch-outs nobody else will tell you. Use it to pick the right fit, not the loudest pitch.

May 24, 2026·12 min read

Business StrategyWhy Your Website Isn't Showing Up on Google (or Converting): The 2026 Self-Diagnostic for California Businesses

Google now answers “why isn’t my website showing up” with its own AI Overview — 5 generic reasons you can't act on, and it never mentions the other way your site fails you: it ranks fine and nobody calls. Here's the full 10-point diagnostic for California small businesses, and how to check every item in 60 seconds.

May 16, 2026·11 min read

Website DevelopmentWhy HVAC Companies Need a Website in 2026: The 201K-Search Reality

201,000 people search “HVAC near me” every month in the US — and HVAC contractors pay $20+ per Google Ads click to compete for them. Here's the data on why a real website (not just a logo and a phone number) is the highest-ROI marketing asset an HVAC business can build in 2026.

May 14, 2026·10 min read

Website DevelopmentWhy Coffee Shops Need a Website in 2026: The 7.48M-Search Reality

“Coffee shop near me” gets 7.48 million Google searches every month in the US. If your cafe lives on Instagram alone, you're invisible to most of them. Here's what coffee shop owners are actually losing — and what a website needs to do in 2026.

May 14, 2026·9 min read

Website DevelopmentHow Much Does a Website Cost in 2026? Real Pricing for California Businesses

Most “how much does a website cost” answers are useless because the honest range is $500 to $250,000+. Here’s the breakdown by site type, what actually drives the price, and what small businesses in California really pay in 2026.

May 4, 2026·9 min read

Website DevelopmentWordPress vs. Custom Website: How to Choose in 2026

WordPress powers 43% of the web — but it isn't the right fit for every business. Here's the straight framework for deciding between WordPress and a custom-built site, and the scenarios where picking wrong costs you revenue.

April 17, 2026·8 min read

Business StrategyWhat It Costs a California Small Business to Not Have a Website in 2026

Most California small businesses without a website are losing $15,000–$50,000+ in revenue every year — and they don't even realize it. Here's the real cost of staying invisible online.

April 3, 2026·7 min read

QuickbaseWhat Is Quickbase Development? A Plain-English Guide for Business Leaders

Quickbase is a low-code platform for building custom workflow apps. Here's what 'Quickbase development' actually means, who does it, and whether it's the right fit for your business.

October 15, 2025·6 min read

QuickbaseQuickbase vs. Custom Software: How to Choose for Your Business

Both solve workflow problems — but they're not interchangeable. We break down when Quickbase is the right call and when you need a custom-built solution.

November 5, 2025·8 min read

QuickbaseHow Operations Teams Use Quickbase to Build Internal Tools

Operations teams at mid-market companies are using Quickbase to replace spreadsheets with purpose-built internal tools — project tracking, approval workflows, vendor management, and reporting dashboards. Here's what that looks like in practice.

December 10, 2025·7 min read

Custom SoftwareWhat Is Custom Application Development? Process, Examples & When You Need It

Custom application development means building software around how your business actually works — instead of bending your business around an off-the-shelf product. Here's the plain-English definition, the real build process, examples of what gets built, and an honest test for whether you need it.

June 5, 2026·10 min read

Custom SoftwareHow Much Does Custom Software Cost in 2026? (Real Pricing Breakdown)

The honest answer to "how much does custom software cost" is $15,000 to $150,000+, and any quote tighter than that without scoping is a guess. Here's what actually drives the number, how US, offshore, and low-code pricing really compare, and the 3–5 year math that decides whether custom beats SaaS.

June 5, 2026·9 min read

Custom SoftwareBuild vs Buy: Custom Software vs Off-the-Shelf vs SaaS (2026 Decision Framework)

Build vs buy is one of the few software decisions where getting it wrong is expensive in both directions — over-build and you burn cash; under-build and you cap your own growth. Here's a straight framework for choosing between custom software, off-the-shelf, and SaaS in 2026, with the criteria that actually decide it.

June 5, 2026·9 min read

Custom SoftwareReplace Spreadsheets with Custom Software: Business Process Automation That Pays for Itself

Spreadsheets are where good processes go to quietly break. When the team is emailing versions of the same file, copy-pasting between tabs, and chasing approvals in the comments, the spreadsheet has become software you didn't design. Here's how to know when to replace it, the ROI math, and how business process automation pays for itself.

June 5, 2026·8 min read

Custom SoftwareHow to Choose a Custom Software Development Company (US vs Offshore Outsourcing)

Choosing a custom software development company is mostly a risk-management decision — the code is the easy part; the hard part is making sure the team understands your business and is still there when something breaks. Here's an honest US-vs-offshore comparison, the questions to ask, the red flags, and a vetting checklist before you sign anything.

June 5, 2026·9 min read

Custom SoftwareCan AI Build an App? Where AI App Builders Work — and Where They Break

Yes — AI can build you an app. Tools like Lovable, Bolt, and Replit will turn a paragraph into a working prototype in minutes. Whether that app survives real users, real data, and real attackers is a different question. Here's an engineer's honest map of where AI app builders work and exactly where they break.

June 9, 2026·10 min read

Custom SoftwareIs Vibe Coding Bad? An Engineer's Honest Answer

Vibe coding isn't bad — it's the most accessible way to build software ever created. It becomes dangerous the moment a vibe-coded prototype gets treated like engineered software. Here's an engineer's honest verdict: what vibe coding is, where it genuinely shines, the failure modes that bite businesses, and what to do if you've already shipped one.

June 9, 2026·9 min read

Custom SoftwareAI Built My App — Now What? Getting a Vibe-Coded App Production-Ready

You built an app with AI — Lovable, Replit, Bolt, a long weekend with Claude — and it mostly works. Now it's breaking in ways you can't fix by prompting harder. This is the rescue playbook we use: the 6-step path from AI prototype to production software, the refactor-vs-rebuild decision, and what it honestly costs.

June 9, 2026·9 min read

Custom SoftwareAI Agents for Small Business: What They Actually Do (and When You Need Custom Software)

Interest in AI agents for business is up 400% in a year, and the marketing has outrun the reality. Here's the honest capability map: what agents genuinely automate today (email triage, scheduling, data entry), where they consistently fail (multi-step business logic, your actual systems of record), and when the answer is custom software underneath.

June 9, 2026·9 min read

Custom SoftwareCustom Healthcare Software Development: A Plain-English Guide for Practices and Health Startups

Custom healthcare software development means building software around how your practice actually runs — intake portals, ops dashboards, billing tools, and EHR integrations — instead of bending your workflows to an off-the-shelf product. Here's the plain-English guide: what practices actually commission, what HIPAA really requires of custom software, real 2026 costs, and when you shouldn't build at all.

July 7, 2026·10 min read

Custom SoftwareDental Practice Management Software: An Honest Guide from Engineers Who Don't Sell One

Every page-one result for dental practice management software is a vendor reviewing itself. We don't sell a PMS — we're engineers who build software for dental practices around one. Here's the vendor-neutral map: what the major platforms actually do well, the cloud-vs-server decision that defines 2026, what it all really costs, and the gaps no PMS fills.

July 7, 2026·11 min read

Custom SoftwareCustom CRM Development: When Building Your Own CRM Beats Renting One

Paying $300–$1,500 a month for Salesforce or HubSpot seats your team uses 10% of? Sometimes building your own CRM is the cheaper, saner move — and sometimes it's a $40,000 mistake. Here's an engineer's honest guide to when custom CRM development wins, when it loses, and what it really costs.

July 7, 2026·10 min read

Custom SoftwareLegacy Software Modernization for Small Businesses: Fix, Rebuild, or Leave It Alone

Everything on page 1 about legacy software modernization assumes you run a bank. This is for the business whose operation depends on a Windows app from 2009, an Access database, or a FileMaker system whose developer retired: the real risks of doing nothing, your four options in plain English, and how to switch systems without stopping the business.

July 7, 2026·11 min read

Custom SoftwareCustom Database Software: From Spreadsheets and Access to a System That Runs Your Business

If your business runs on a 40-tab workbook or an Access database from 2012, this is the next question: what does it take to move to custom database software — a real system with your workflows built in? Here's what the conversion involves step by step, what it costs, what happens to your old data, and when a low-code platform like Quickbase is the smarter middle move.

July 7, 2026·10 min read

Ready to build custom software that fits how you actually work?

Schedule a free consultation with our team. No sales pitch — just a straight conversation about your project.