The post as a short film · 32 seconds
Read what the film says

“Vibe coding,” untangled You describe it. AI writes it. It runs first time.

45% of AI-generated code samples failed security tests and introduced OWASP Top 10 vulnerabilities.

Security failure rate by language: Java 72%, C# 45%, JavaScript 43%, Python 38%.

66% of developers name “AI solutions that are almost right, but not quite” as a frustration, the most-selected one. Only 33% trust the accuracy of AI tools; 46% distrust it.

The fast part is real. Security didn’t improve as models got better at writing code.

Vibe coding is writing software by describing it. You type "build me a login page that saves the user's email", the model produces the code, and it runs first time. For prototypes and internal tools this is a real gain in speed. The question is what the code is like underneath.

45%

of AI-generated code samples failed security tests and introduced OWASP Top 10 vulnerabilities.

Veracode · 2025 GenAI Code Security Report · July 2025

What the study measured

Veracode gave more than 100 language models 80 code-completion tasks in four languages. Each task could be completed securely or insecurely, and the output was checked for a known class of weakness. In 45% of cases the model chose the insecure way.

security-scan · owasp top 10

Security failure rate by language

Java72%
C#45%
JavaScript43%
Python38%
More than 100 models, 80 code-completion tasks, each built so that a specific weakness could occur. The rates describe those tasks, not all AI-written code.Veracode · July 2025

Two findings matter more than the headline. Certain weaknesses were missed almost every time: the models failed to defend against cross-site scripting in 86% of relevant cases and against log injection in 88%, according to Veracode's press release. And security did not improve as models got better at writing code. In Veracode's words, models "are getting better at coding accurately but are not improving at security".

Why it happens

A prompt such as "save the user's email" says nothing about validating input, escaping output or who may read the record. A model fills that gap with the most common pattern in its training data, and the most common pattern in public code is not the secure one. The code runs, so nothing signals a problem.

66%

of developers name “AI solutions that are almost right, but not quite” as a frustration, the most-selected one. Only 33% trust the accuracy of AI tools; 46% distrust it.

Stack Overflow Developer Survey 2025

Developers have noticed. "Almost right, but not quite" is the precise description of code that passes a quick look and fails a careful one.

What to keep and what to add

The speed is worth keeping. What has to be added is the part the model does not do for itself:

  • An automated security scan on every generated change, against the OWASP Top 10 categories.
  • A person reading it, line by line, who knows what the code is supposed to protect.
  • A test on real data, because generated code is usually only tried on the tidy example in the prompt.

We run these as three gates on every AI-generated function, described in our three-gate review.

A question worth askingWould the AI-generated code in your product pass a real security review today? If nobody has checked, the honest answer is that nobody knows.
Research brief Secure Fine-Tuning and Red-Teaming Read

Questions

What is vibe coding?

Vibe coding is building software by describing what you want in plain language and letting an AI model write the code, usually accepting the result if it runs.

Is AI-generated code secure?

Not reliably. In Veracode's July 2025 study of more than 100 models across 80 tasks, 45% of code samples introduced OWASP Top 10 vulnerabilities, with Java the worst at a 72% failure rate. Security performance did not improve with newer or larger models.

Sources

  1. Veracode, "We Asked 100+ AI Models to Write Code. Here's How Many Failed Security Tests", 30 July 2025 (45% overall; Java 72%, C# 45%, JavaScript 43%, Python 38%). Source
  2. Veracode, press release on the 2025 GenAI Code Security Report, 30 July 2025 (80 tasks, more than 100 models; CWE-80 86%, CWE-117 88%). Source
  3. Stack Overflow, 2025 Developer Survey, AI section (66% frustration; 33% trust, 46% distrust). Source
  4. OWASP Top 10 project. Source

First published as a Synexian Untangling AI post on 8 November 2026. Figures are quoted from the sources above; follow the links for their methods and limits.