45% of AI-generated code ships with a vulnerability — and developer trust in it just hit a new low

Veracode's 2026 testing found 45% of AI-generated code contains a security vulnerability, while separate developer survey data puts trust in AI-written code at just 29% — down from 40% the year before. Adoption is up; confidence is down.

Two numbers from 2026’s security and developer-survey data don’t fit together comfortably, which is exactly why they’re worth reading side by side. Veracode’s testing across 80 coding tasks and 100+ LLMs found that 45% of AI-generated code contains a security vulnerability. Separately, developer trust in AI-generated code’s accuracy has dropped to 29%, down from 40% the year before, with the share who actively distrust AI output rising sharply. Sonar’s developer survey data puts AI-generated or AI-assisted code at 42% of everything being written.

Adoption and confidence are moving in opposite directions

That combination — more AI-written code shipping, less trust in it — isn’t a contradiction, it’s the honest state of the industry. Teams have adopted these tools because the productivity case is real: faster first drafts, less boilerplate, quicker iteration. But the same teams increasingly know, from direct experience, that AI output needs checking rather than trusting by default. Most developers now report refusing to merge AI-generated code without manual review — which is the correct response to a 45% vulnerability rate, not an overreaction to it.

Why this is the actual argument for process, not for avoiding AI tools

The wrong conclusion here is “don’t use AI coding tools.” The right one is “don’t use them without a review discipline built around them” — automated test gates, a second model or a human reviewing before merge, and someone accountable for what actually ships. Teams doing that get the speed benefit without inheriting the vulnerability rate. Teams that don’t are running exactly the risk this data describes.

So what

If you’re commissioning software, “do you use AI coding tools” is no longer the useful question — every serious development team does. The useful question is what review process sits between an AI agent’s output and production. Ask for specifics: test coverage requirements, who reviews AI-authored code, whether a second model or a human checks security-sensitive changes. That answer tells you more about the quality of what you’ll receive than the tool name ever will. More on how we build review discipline into AI-assisted delivery on the AI-assisted development page.

← All research

More research.

GitHub's Copilot metrics now count OpenCode and Claude Code traffic: who really uses which AI coding tool

On 23 October 2026 GitHub added a per-tool breakdown to the Copilot usage metrics API, so tools such as OpenCode and Claude Code are counted even without editor telemetry. It shows how mixed the AI coding tool stack inside software teams has become.

Read ›

GitHub Copilot retires Claude Opus 5 and GPT-5.6 Terra on 16 November: the model-churn bill for buyers

GitHub has announced that Claude Opus 4.8, Claude Opus 5 and GPT-5.6 Terra leave every Copilot experience on 16 November 2026. For anyone commissioning AI-assisted development, model retirement is now a monthly event to plan around.

Read ›

GitHub Copilot now benchmarks how 'agent-first' your developers are against your industry

On 22 October 2026 GitHub added opt-in industry comparisons to its Copilot impact dashboard, ranking firms by share of agent-first developers and by the merge rate of agentic pull requests. Here is how to read the numbers when you are buying software.

Read ›

Apple's new bait-and-switch rule 2.5.19: what it means for AI-built and fast-shipped apps

On 16 October 2026 Apple updated its App Review Guidelines: apps that change after approval can be removed from the App Store and the Developer Program, and AI-generated intimate imagery is now explicitly covered. Here is what founders commissioning an iOS app should check.

Read ›

GitHub Copilot agentic autofix is generally available: AI now fixes security alerts, and bills for it

GitHub made agentic autofix for code scanning alerts generally available on 15 October 2026. Copilot can now fix up to 25 security alerts in one pull request, using AI credits your supplier or your team pays for.

Read ›

GitHub AI Scan for pull requests goes GA: AI security checks for PHP, Terraform and Dockerfiles

GitHub's AI Scan for pull requests became generally available on 15 October 2026, checking languages the standard scanner misses. Findings are advisory and cannot block a merge, which matters when you buy software.

Read ›

Start a project

Building with AI? Let's talk.

Tell us what you are building. We'll give you an honest view of the right approach.

Start a projectSee our work