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 AI usage API now returns per-model token counts, so Copilot spend can finally be traced to models

GitHub's AI credit usage REST API now returns six raw token counts per model for enterprises, organisations and individuals, giving Copilot cost tracking a real audit trail.

Read ›

Claude Code 2.1.335: add remote MCP servers from the terminal, a new Interrupt hook, and a harness audit for older models

Claude Code 2.1.335 adds a one-line command to register remote MCP servers as claude.ai connectors, an Interrupt hook event and a /claude-api harness-audit command for agent code written for older models.

Read ›

GitHub Copilot model controls shift: Claude Opus 4.8 (fast) retired, targeted model rules end 12 January 2027

GitHub retired Claude Opus 4.8 (fast) in Copilot on 30 November and is closing the targeted organisation model rules preview, with migration on 12 January 2027.

Read ›

Claude Code 2.1.334: REVIEW.md now works at folder level, plus a model search box and a visible auto-compact setting

Claude Code 2.1.334 extends REVIEW.md so AI code reviews follow rules held in folders, adds a search box for long model lists and shows the auto-compact window in settings.

Read ›

GitHub Copilot for JetBrains adds scheduled automations in preview and drops support for IDE 2025.2

GitHub Copilot for JetBrains can now run automated tasks on a schedule (preview), adds Microsoft Foundry and Azure OpenAI models to its agent, and no longer supports JetBrains IDEs 2025.2.

Read ›

Claude Code 2.1.333: REVIEW.md shapes AI code reviews, and you can stop one workflow agent

Claude Code 2.1.333 lets teams write their code review rules in a REVIEW.md file, lets one running agent in a workflow be stopped without halting the rest, and changes how permission lists are passed in scripts.

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