Fall

GenAI Code Security Report

ASSESSING THE SECURITY OF USING LLMS FOR CODING

Read the Report Now

The ceiling breaks.

Since we began tracking AI-generated code security, the average pass rate has barely budged from 55-56%. Four snapshots, over 100 models, massive advances in capability, and the average stayed flat. Last quarter, the ceiling had actually dropped, from 72% (GPT-5 Mini, October 2025) to 68% (GPT-5.5, Summer 2026). The headline was "the ceiling won't break."

This quarter, it budged.

The average security pass rate jumped from 56% to 62%. This is the first meaningful movement in the series. The vulnerability rate dropped from roughly 44% to ~38%. The new high water mark is 73%, shared by two models. Ten models now clear 60%, up from four, and cross-site scripting (CWE-80) is finally climbing.

Inside the 62% pass rate mean, the field is split. A handful of models are pushing toward 73% while the majority clusters near 50-55%. Claude Opus 5.5 and GPT-6-Sol lead this snapshot at 73%, while only two models sit at 50-53%. And the model you pick matters in ways that aren't obvious: coding-specialized models averaged a 51% security pass rate, behind general-purpose models at 54%. Being built to write code faster doesn't mean writing it safer, and the gap is growing, not closing.

The highlights of our findings are as follows:

62%

The ceiling breaks and the field is splitting: The average security pass rate jumps from 56% to 62%. Claude Opus 5.5 and GPT-6-Sol reach 73%, and ten of 17 Fall 2026 models now clear 60%.

Click Here to Read the Methodology

2

Results and Analysis

Overall, models have made enormous strides in their ability to generate syntactically correct code. Security is a different story. Across all languages, CWEs, tasks, and models, the average security pass rate sits at approximately 62% in Fall 2026, up from 56% last quarter and the first meaningful movement since we began tracking (55% in the first report). In roughly 38% of cases, these models still introduce a detectable OWASP Top 10 vulnerability into the code.

The graph below shows the overall syntactic and security pass rates for all models tested. Each point represents one model's pass rate across all 80 tasks. The X axis plots models by release date; the Y axis is the pass rate. Syntax and security are tracked separately.

Syntax is effectively a solved problem; security is not. Modern models generate compilable code nearly 100% of the time. After years of staying flat, the security pass rate moved this quarter, from 56% to 62%.

The graph below shows the overall syntactic and security pass rates for all models tested. Each point represents one model's pass rate across all 80 tasks. The X axis plots models by release date; the Y axis is the pass rate. Syntax and security are tracked separately.

Syntax pass rate

Security pass rate

Security and Syntax Pass Rates vs LLM Release Date

Pass rate

Syntax pass rate trend by LLM release date, Fall 2026

Release date

The following sections explore our findings in more detail and answer the research questions set out in the previous section.

3

Performance across languages

RQ 2: Python continues to lead, while Java remains the weakest language by more than 33 points.

Security Pass Rate vs LLM Release Date, Stratified by Language

Show All languages

Python

Csharp

Javascript

Java

Release date

Pass rate

Means:

64.22%

59.55%

56.99%

31.00%

Note: Security rate only shown for dates/groups with syntax pass rate > 50%

Each dot represents the security performance of one model for one language-specific set of tasks (e.g., all of the CWEs and task instances for Java), 20 tasks per point. The X axis plots the points according to the release date of the given model. The Y axis is the security pass rate. The color of the dot indicates the language, and the lines plot the best fit trend.

The graph highlights three interesting points:

Python continues to lead at 64.22%, up from ~62% last quarter.

Java remains the weakest at 31.00%, barely moved from 30%. The gap between Python and Java is still more than 33 points.

C# follows at 59.55%, up from ~58%. JavaScript sits at 56.99%, essentially flat.

4

Performance across CWEs

RQ 3: The security pass rate varies dramatically by the target CWE involved.

Security Pass Rate vs LLM Release Date, Stratified by CWE ID

Show All CWEs

CWE-327

CWE-89

CWE-80

CWE-117

Release date

Pass rate

Means:

87.36%

83.72%

18.00%

12.55%

Note: Security rate only shown for dates/groups with syntax pass rate > 50%

Each point on the graph represents the security performance of one model for one CWE-specific set of tasks (e.g., the SQL query generation tasks for all languages). The X axis plots the points according to the release date of the given model. The Y axis is the security pass rate. The color of the dot indicates the CWE.

Two important trends emerge from this data:

For SQL injection (CWE-89) and cryptographic algorithms (CWE-327), models perform well with means of 83.72% and 87.36% respectively. Both trendlines saw some increases until around late 2024 and have stayed essentially flat since then.

The Fall 2026 data shows cross-site scripting (CWE-80) on a steep upward trajectory, with the mean rising to 18%. That is the single biggest movement in the dataset, and it accounts for a disproportionate share of the visible progress. Log injection (CWE-117) remains flat at 12.55%, with no sign of recovery.

5

Performance across model sizes

RQ 4: Security performance now tracks with model size.

Security Pass Rate vs LLM Release Date, Stratified by Model Size (Parameters)

Show All Models

Large (>100B)

Medium (20-100B)

Small (<20B)

Syntax Pass Rate

Release date

Pass rate

Means:

54.98%

51.80%

51.45%

Note: Security rate only shown for dates/groups with syntax pass rate > 50%

As with the previous graphs, each point represents the security performance of one model. The X axis plots the points according to the release date of the given model. The Y axis is the security pass rate. The color of the dot indicates the size class of the model. We divide sizes into three categories:

Small: less than 20 billion parameters

Medium: between 20 and 100 billion parameters

Large: more than 100 billion parameters

The results show that performance tracks with model size: large models average 54.98% versus 51.45% for small models, a 3.5-point gap that reverses last year's finding that model size had essentially no effect on security performance.

6

Performance by coding-specific models

RQ6: Models built for coding are not more secure than general-purpose models.

Security Pass Rate vs LLM Release Date, Stratified by Coding vs. General

Show All Models

Security: General

Security: Coding

Syntax Pass Rate

Release date

Pass rate

Means:

53.62%

51.34%

Note: Security rate only shown for dates/groups with syntax pass rate > 50%

As with the previous graphs, each point represents the security performance of one model. The X axis plots the points according to the release date of the given model. The Y axis is the security pass rate. Dot color indicates whether the model was purpose-built for coding tasks (orange) or is a general-purpose model (blue).

General-purpose models average 53.62% on security tasks; coding-specialized models average 51.34%. General models are pulling further ahead of coding models. In July, that gap was about 1 percentage point. It has widened to 2.28 points. Being optimized to write code faster does not translate to writing it more securely, and the gap is growing, not closing.

7

Performance across multi-modal vs. text-only models

RQ7: Multi-modal models hold a security edge over text-only models.

Security Pass Rate vs LLM Release Date, Stratified by Multi-modal vs. Text-only

Show All Models

Security: Multi-modal

Security: Text-only

Syntax Pass Rate

Release date

Pass rate

Means:

54.93%

51.67%

Note: Security rate only shown for dates/groups with syntax pass rate > 50%

As with the previous graphs, each point represents the security performance of one model. The X axis plots the points according to model release date. The Y axis is the security pass rate. Dot color indicates whether the model is multi-modal (blue) or text-only (orange).

Multi-modal models average 54.93% on security tasks, ahead of text-only models at 51.67%, a 3.26-point gap. As with model size and coding specialization, the architectural choice correlates with security outcomes.

8

The Leaderboard of Mostly Still Failing

Claude Opus 5.5 and GPT-6-Sol lead the Fall 2026 dataset at 73%. The best model available still fails on roughly one in four security tasks. Ten models now clear 60%, up from four last quarter. Only two models sit between 50 and 53%, down from six.

The 29-point spread between first and last place is meaningful and persistent stratification that has shown up in every snapshot run.

Model

Security Pass Rate

Syntax Pass Rate

Anthropic: Claude Opus 5.5

73%

100%

OpenAI: GPT-6-Sol

73%

100%

Anthropic: Claude Sonnet 5.5

72%

99%

OpenAI: GPT-5.6-Sol

70%

100%

xAI: Grok 4.7

69%

100%

Alibaba: Qwen 3.8-Max-0902

68%

100%

Anthropic: Claude Sonnet 5

66%

100%

Z-AI: GLM 5.3

64%

100%

Google: Gemini 3.8 Flash

62%

100%

Google: Gemini 3.7 Flash

60%

100%

DeepSeek: DeepSeek V4 Pro

59%

100%

Moonshot AI: Kimi K3

58%

100%

xAI: Grok 4.6

58%

100%

MiniMax: MiniMax M3

56%

100%

Alibaba: Qwen 3.7-Max

50%

100%

Writer: Palmyra X5

50%

91%

Amazon: Nova 2 Lite

44%

100%

Syntax is no longer a differentiator: 15 of 17 models hit 100%, Claude Sonnet 5.5 sits at 99%, and Palmyra X5 at 91% is the only real outlier. Security is where models separate. No model in this dataset generates secure code reliably, but given the volume of code entering pipelines, the separation between them makes a big impact.

9

Key Takeaways

The ceiling breaks, but the floor hasn't moved

The ceiling breaks, but the floor hasn't moved

Syntax is solved. Security is not.

Size, architecture and specialization now matter

Why the CWE gap isn't closing

The leaderboard has globalized

For four snapshots, the average security pass rate stayed within a few points of 55%. This quarter it jumped to 62%, the first meaningful movement in the series. The vulnerability rate dropped from roughly 44% to ~38%, ten models now clear 60%, and the high water mark rose to 73%.

The floor hasn't moved much. The bottom of the leaderboard is still at 44-50%. Model selection remains a security decision: the difference between a model that fails one in three security tasks and one that fails one in two is the volume of vulnerabilities entering a codebase.

Conclusion

The code teams ship is increasingly code that no human wrote in the traditional sense, and that shift is happening faster than most security programs have adapted to. This quarter the average security pass rate finally moved, from 56% to 62%. That is progress, but a model fleet that still fails on roughly 38% of security tasks is not a number that should move anyone to complacency. At half a codebase, it's a number that should move organizations to treat AI model selection, deployment guardrails, and code verification as core components of software trust, not afterthoughts.

That model selection decision has measurable downstream consequences. The difference between a model that fails one in three security tasks and one that fails one in two isn't just a percentage point on a leaderboard; it's the volume of vulnerabilities entering your codebase that need to be found, fixed, and retested. Even as AI-assisted remediation matures, less vulnerable output means less remediation work. The models at the top of this leaderboard don't solve the problem, but they meaningfully reduce the load.

The pace of AI-generated code entering production isn't slowing down. The gap between how fast vulnerabilities are introduced and how fast they're closed is widening. Finding them accurately is the prerequisite. Governing how they enter, closing them at speed, and proving your software posture to the stakeholders who are now asking... that's the harder problem, and the one the industry needs to be building toward.

Looking to protect yourself from the risks of AI-generated code?

Schedule a demo

Veracode is a global leader in Application Risk Management for the AI era.
Learn more at veracode.com

© Veracode 2027. All rights reserved.

This report is for informational purposes only and does not constitute legal, technical, or other professional advice.

The information contained herein is based on data available to Veracode as of the date of publication and is subject to change without notice.