AI Coding Tools Produce Vulnerable Code 45% of the Time, Security Rates Stagnant
A March 2026 Veracode report tested over 150 large language models across 80 coding tasks in four programming languages, finding that 45% of AI-generated code contained known security vulnerabilities. Despite advances in model capabilities over two years, the security pass rate has remained stubbornly flat at around 55%. The weaknesses are unevenly distributed: models performed well on widely-taught flaws like SQL injection but failed badly on lesser-known issues like log injection, suggesting the problem stems from training data rather than model size. A Stanford study further found that developers using AI assistants wrote less secure code than those without, yet were more confident their code was safe — a dangerous combination that undermines human code review. Security researchers warn the risk extends beyond generated code, as AI agents also process and act on sensitive inputs like environment variables and credentials during development workflows.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in