Vibe Coding
Vibe Coding Security Risks: What the Research Shows
Codesprint Consulting
By,Codesprint Consulting
  • 28 November 2026

Vibe coding security risks are no longer a theoretical concern about some future wave of AI-written software. They are measured, counted and published. A systematic study released this year collected 9,041 open-source applications built with popular AI agents, including Claude Code and Lovable, then audited 200 publicly deployed applications and found 1,186 vulnerabilities. The headline finding is blunt: insecurity is the norm rather than the exception, with 91.0% of the audited applications containing at least one vulnerability. For founders shipping AI-built products, the question is no longer whether vibe coding introduces risk, but how much of it you are carrying. Source: Understanding the (In)Security of Vibe-Coded Applications

Insecurity is the norm, not the exception

The same study puts hard numbers on where vibe-coded applications break. Of the 1,186 vulnerabilities identified, 65.77% were rated Critical or High severity, and they concentrate in three familiar categories: broken access control, injection and authentication failures. These are not exotic failure modes. They are the same classes that top every web security list, produced at machine speed by tools that were never asked to think about them. Source: Understanding the (In)Security of Vibe-Coded Applications

More useful than the raw counts is the paper's explanation of why this happens. The researchers trace the vulnerabilities to eight recurring failure modes, rooted in three systematic limitations of AI agents: memory defects, objective defects and knowledge defects. An agent forgets a constraint you stated earlier in the session, optimizes for a visible goal like making the feature work while ignoring the invisible goal of keeping it safe, or simply lacks the security knowledge a senior developer would apply automatically. The study also found that improved agent harnesses and prompting strategies reduce the incidence of vulnerabilities but do not eliminate the underlying risk, which means better prompts alone are not a security strategy. Source: Understanding the (In)Security of Vibe-Coded Applications

The risks differ in kind, not just in number

IBM's Think analysis of vibe coding security risks opens with adoption context: as of late 2025, industry research it cites indicates AI-generated code represents 22% of all merged code, and on GitHub an estimated 46% of written code was generated by Copilot. The same piece cites an analysis of real-world codebases by AppSec platform Apiiro finding that AI-assisted teams shipped code four times faster while shipping ten times as many security flaws, and a December 2025 study of open-source repositories that found AI-generated code introduced security vulnerabilities in 45% of development tasks, with AI-assisted pull requests producing 2.74 times more security issues than human-only ones. Source: IBM Think: Vibe Coding Security Risks Aren't Like Ordinary Security Risks

The secret-handling picture is worse. IBM's article cites GitGuardian's 2026 secret sprawl report, which found that Claude Code-assisted commits exposed secrets more than twice as often as human-only commits, and that hardcoded secrets in public GitHub commits rose 34% year over year in 2025, the largest single-year jump on record. Exposed credentials linger: almost 70% of credentials validated as legitimate in 2022 remained valid through January 2025, and 64% were still exposed and unrevoked as of January 2026. One cited incident had Football Australia's AWS access keys sitting in website source code for over 700 days. Source: IBM Think: Vibe Coding Security Risks Aren't Like Ordinary Security Risks

Review practices have not kept pace with output. Citing Cursor's Developer Habits Report from spring 2026, IBM notes that the average pull request grew roughly 250% in lines of code year over year, and mega PRs of at least 1,000 changed lines grew from 8% of all PRs in January 2025 to 13.9% by May 2026. Larger, sprawling changes are harder to review, so more risk lands in each merge. And a study of 500,000 code samples presented at the 36th IEEE International Symposium on Software Reliability Engineering concluded that AI-generated code differs from human-written code not only in how many vulnerabilities it contains but in their nature and distribution, so review frameworks built around human error modes miss AI-shaped mistakes. Source: IBM Think: Vibe Coding Security Risks Aren't Like Ordinary Security Risks

Attack types with no human-coded equivalent

Some vibe coding security risks have no analogue in traditional development. The Canadian Centre for Cyber Security's guidance on managing security risks in vibe coding (ITSM.60.043) describes slopsquatting: AI tools hallucinate plausible package names, attackers register those names on public registries, and developers who trust the AI's suggestion install malicious code. Unlike typosquatting, which exploits human error, slopsquatting exploits errors the AI makes predictably. The Cyber Centre's mitigations include prohibiting AI agents from installing packages autonomously, requiring an allow list or human review gate, pinning dependency versions and verifying package hashes, and using a software bill of materials. Source: Canadian Centre for Cyber Security: Managing security risks in vibe coding (ITSM.60.043)

IBM's piece documents a second novel attack, the rules file backdoor: attackers hide malicious instructions inside the configuration files used to customize AI coding agents, using Unicode characters that are nearly invisible in review. Every later coding session that references the infected file generates compromised code that still looks clean. IBM also recounts the Shai-Hulud worm that compromised the world's largest JavaScript registry in late 2025, noting that almost 60% of the compromised machines were CI/CD runners rather than personal workstations, a reminder that the infrastructure around AI coding is part of the attack surface. Source: IBM Think: Vibe Coding Security Risks Aren't Like Ordinary Security Risks

Prompt injection rounds out the new threat classes. The Cyber Centre explains that because vibe coding uses natural language as the programming interface, an attacker can craft input that looks like a developer's prompt and override the established system or extract sensitive data. Its recommended controls include defining sensitive topics with separate input and output testing, human approval for high-risk requests, regular patching, and running the agent and its tools in a sandboxed environment with restricted access to systems and data. Source: Canadian Centre for Cyber Security: Managing security risks in vibe coding (ITSM.60.043)

The threat landscape is bigger than the code

A research paper published in November 2026, submitted to ACM Computing Surveys, argues that the security conversation has been too narrow. As vibe coding agents evolve into autonomous systems that execute commands, manage dependencies, access cloud resources and interact with other agents, the risks extend beyond incorrect code to actions with direct consequences. The authors build a reference architecture with six levels of agent autonomy and a threat model on five trust boundaries spanning developers, AI models, tools, cloud infrastructure and the wider software ecosystem, producing a taxonomy of twenty-one threats across nine classes. Source: Threat Landscape of Vibe Coding and the Road to Secure Autonomy

Two conclusions deserve a founder's attention. First, risks increase with an agent's operational authority: the more the tool can do on its own, the larger the blast radius when it does the wrong thing. Second, most proposed defences rely on the model's own judgement and address isolated threats, which leaves the door open to the failure modes in the first study. The eleven open research challenges the authors identify, including enforceable limits on agent authority and shared security benchmarks, are a polite way of saying the tooling for safe vibe coding is still being invented. Source: Threat Landscape of Vibe Coding and the Road to Secure Autonomy

What a national cyber agency advises

Canada's Cyber Centre frames the decision with unusual clarity. It describes a risk spectrum: a prototype that touches no sensitive data carries less risk than a tool that handles secrets, personal information or critical infrastructure, and oversight should scale with that risk. It also names sycophancy, the tendency of AI models to agree with the user, as a genuine security risk, because an agent that reinforces your expectations can cause you to overlook unsafe output. Source: Canadian Centre for Cyber Security: Managing security risks in vibe coding (ITSM.60.043)

On supply chains, the guidance recommends reviewing each AI vendor's security policies and data-handling terms, running a trust-tier analysis to assign access levels, and tracking dependencies with a software bill of materials. It warns that code provenance is murky: models trained on open-source software, outdated practices and intentionally malicious code can reproduce those patterns, so generated code should never be assumed secure. For the classic web vulnerabilities that dominate the audit numbers, it recommends the standard disciplines: validating and sanitizing untrusted input, content security policies, and prepared statements that keep user input separate from database commands. Source: Canadian Centre for Cyber Security: Managing security risks in vibe coding (ITSM.60.043)

IBM's recommendations land in the same place from the industry side: treat AI-generated code as untrusted input, make static analysis a mandatory gate for every AI contribution, scrutinize and whitelist third-party rules files instead of permitting them by default, cap pull request size so reviews stay effective, and use AI-powered detection for AI-specific credentials like LLM API keys and vector database tokens. Source: IBM Think: Vibe Coding Security Risks Aren't Like Ordinary Security Risks

Our read: what founders should do before launch

This section is our assessment, not a claim from the sources above. None of the research says to stop vibe coding. It says the productivity gains are real and the risk profile is different, so the safety net has to be different too. The pattern across all four sources is that vibe coding security risks concentrate in the same places: access control and authentication that was never specified, secrets that leak into code and stay there, dependencies nobody verified, and changes shipped in batches too large to review. Every one of those is catchable before launch with a structured review.

If you are a non-technical founder, the practical translation is this: vibe code the prototype, then pay for expertise at the gate. Our vibe coding for founders service exists for exactly that handoff. Two earlier guides pair well with this one: how to audit vibe-coded apps before launch walks through the review process, and our vibe coding security checklist turns the controls above into a pre-launch list.

FAQ

No, but the measured base rate is high: in the largest audit of real-world vibe-coded applications to date, 91.0% of the 200 publicly deployed apps examined had at least one vulnerability. Treat security review as a required step, not an optional one.

Slopsquatting is a supply chain attack that exploits AI-hallucinated package names. Attackers register fictitious dependency names that AI coding tools commonly suggest, then wait for developers to install them. Defences include blocking autonomous package installation, pinning versions, verifying hashes and keeping a software bill of materials.

They help but do not solve the problem. The 9,041-app study found that improved agent harnesses and prompting strategies reduce vulnerability incidence without eliminating the underlying risks, because the root causes are systematic limitations in how agents remember, prioritize and know.

Canada's Cyber Centre frames it as a risk spectrum: a prototype with no sensitive data is lower risk, while anything touching secrets, personal information or critical systems is higher risk and needs matching oversight. Its guidance says to avoid vibe coding when sensitive information is present or a security flaw would have serious consequences.

Start with the categories the research shows failing most: access control, injection paths, authentication and exposed secrets. Add dependency verification, static analysis on all AI-generated code, and a review of anything the agent installed or configured. Our audit guide and security checklist cover the process in detail.

Tag:
  • vibe coding security risks
  • vibe coding
  • application security
  • ai generated code
  • supply chain security

Have a project in mind? Let's talk.

Drop Us a Line

Connect with Codesprint Consulting

Ready to take the first step towards unlocking opportunities, realizing goals, and embracing innovation? We're here and eager to connect.

Your Success Starts Here!