Veracode has released its 2026 GenAI Code Security Report, revealing that despite rapid advances in AI coding capabilities, security has stalled. Across four testing snapshots and more than 100 models tracked, the average security pass rate sits at 56%—virtually unchanged since last year's report. AI now generates roughly half of all committed code, but the security gap isn't narrowing.
Average security pass rate across 100+ models is 56%, unchanged from last year.
OpenAI's GPT-5.5 leads at 68%, while six models cluster between 50-53%.
Coding-specialized models averaged 51% pass rate vs. 52% for general-purpose models—no security advantage.
Model size has no impact on security: large (53%), medium (51%), small (51%).
Reasoning models maintain a security edge (56%) over non-reasoning models (51%).
Java remains the riskiest language at 30% pass rate, but shows a consistent upward trend.
Veracode, the global leader in application risk management, today released its 2026 GenAI Code Security Report which reveals that, despite rapid advances in AI coding capabilities, security has stalled. Across four testing snapshots and more than 100 models tracked since the program began, the average security pass rate sits at 56 percent — virtually unchanged since last year's report. Each model was evaluated on code-generation tasks spanning multiple programming languages and vulnerability categories, under standardized conditions with no security-specific prompting. AI now generates roughly half of all committed code, but the security gap isn't narrowing.
"We're seeing a rapid increase in the adoption of AI-powered tools to write code and build software. But the root problem remains: models may be almost syntactically perfect, but they're still failing on nearly half of all tasks where security is needed," said Chris Wysopal, Co-founder and Chief Security Evangelist at Veracode. "That number should be a red flag for any organization."
OpenAI's GPT-5.5 leads this year's report at 68 percent, while six of the 11 models cluster between 50 percent and 53 percent. Alibaba's Qwen3.7-max comes last at 50 percent, generating vulnerable code every other output in this test. The best model available today still fails nearly one in three security tasks. Notably, previous editions of the report were dominated by Western AI models. That's no longer the case, with Kimi-K2.6 and MiMo-V2.5 outperforming several Western models.
Two widely held assumptions don't survive the data. First, models built specifically for writing software code are no more secure than general-purpose AI. Coding-specialized models averaged a 51 percent security pass rate, compared with 52 percent for general-purpose models. The tests were run against the raw models and not agents or production environments with additional tooling, guardrails, or human review in the loop. This means developers who opt for coding-optimized tools on the assumption they'll minimize security risk are actually shipping vulnerable code at the same rate as everyone else.
Second, model size has no impact on security performance. Large models (more than 100 billion parameters) average 53 percent, medium models average 51 percent, and small models average 51 percent. The one architectural factor that does help: reasoning models maintain a consistent security edge over non-reasoning models, at 56 percent versus 51 percent. This suggests extended reasoning functions as a form of internal code review.
Security pass rates by language range from Python at 63 percent down to Java at only 30 percent. Java remains the riskiest language for AI code generation by a significant margin. Despite sub-optimal performance, it is the only language with a clear, consistent upward trend over the past year.
"I've been vocal about making advanced AI models, like Claude Fable and Mythos, available to developers and defenders alike — and I stand by that position," Wysopal closed. "The right answer is not restricting access; it's transparent, evidence-based safety. What this research makes clear is that AI-generated code needs to be treated like any unreviewed code: scan it, fix it, and never ship it blind. Until LLMs reason about security the way they reason about syntax, guardrails in the development workflow aren't optional."
Veracode recommends organizations take the following steps to address the security gap in AI-generated code:
Integrate AI-powered tools like Veracode Fix into developer workflows to remediate security risks in real time.
Embed security in agentic workflows to enforce secure coding standards automatically.
Use Software Composition Analysis (SCA) to detect vulnerabilities from third-party and open-source dependencies in AI-generated code.
Deploy Package Firewall to block vulnerable, malicious or non-compliant packages before they reach the development environment.
About Veracode
Veracode is a global leader in Application Risk Management for the AI era. Powered by trillions of lines of code scans and a proprietary AI-assisted remediation engine, the Veracode platform is trusted by organizations worldwide to build and maintain secure software from code creation to cloud deployment. Thousands of the world's leading development and security teams use Veracode every second of every day to get accurate, actionable visibility of exploitable risk, achieve real-time vulnerability remediation, and reduce their security debt at scale.