Written by Gowtham Raj, Director at TartLabs, who leads custom software development engagements where AI coding tools are now part of everyday delivery.
The Short Answer
Not by default. In Veracode's July 2026 report, AI models produced secure code in only 56% of test cases, while their code compiled and passed syntax checks almost every time. Code that runs is not code that is safe. The data does not say AI code is worse than human code, because none of these studies ran a matched human baseline. It says the model will not catch security problems for you, so the review process has to.
Key Takeaways
- Security pass rate is 56%, and syntax is near 100% (Veracode GenAI Code Security Report, 28 July 2026, tested on raw models with no guardrails).
- The 2025 edition found 45% of test cases introduced a vulnerability, and that larger models did not perform significantly better than smaller ones.
- IOActive's April 2026 whitepaper found 31.6% of AI-generated samples fully exploitable across 27 tools and 730 prompts. Security-aware wrappers and system prompts improved results by up to 25 percentage points.
- Georgia Tech's Vibe Security Radar had linked 74 CVEs to AI coding tools by March 2026, up from 6 in January. The researcher estimates the true count is 5 to 10 times higher.
- What works: treat AI output as untrusted input, scan every change automatically, and keep a human reviewer on authentication, authorization and data handling. The controls are our view, not a standard.
What the Data Says
Four sources, four methods. They agree on direction, so read them side by side rather than adding them up.
| Source | Finding | What it measures |
|---|---|---|
| Veracode, July 2026 | 56% average security pass rate; GPT-5.5 highest at 68%, Qwen3.7-max lowest at 50% | Raw models on standardized security tasks, no agents or guardrails |
| Veracode, July 2025 | 45% of cases introduced a vulnerability; Java failed over 70% of the time | 80 curated tasks across 100+ LLMs |
| IOActive, April 2026 | 59% average security performance; 31.6% of samples fully exploitable | 27 tools, 730 prompts, nearly 20,000 samples |
| Georgia Tech SSLab via Infosecurity Magazine, 26 March 2026 |




