AI-Generated Code Poses Major Security Risks in Nearly Half of All Development Tasks, Veracode Research Reveals
30.7.2025 13:50:00 CEST | Business Wire | Press Release
Veracode, a global leader in application risk management, today unveiled its 2025 GenAI Code Security Report, revealing critical security flaws in AI-generated code. The study analyzed 80 curated coding tasks across more than 100 large language models (LLMs), revealing that while AI produces functional code, it introduces security vulnerabilities in 45 percent of cases.
This press release features multimedia. View the full release here: https://www.businesswire.com/news/home/20250730694951/en/
Security and Syntax Pass Rates vs LLM Release from the Veracode 2025 GenAI Code Security Report
The research demonstrates a troubling pattern: when given a choice between a secure and insecure method to write code, GenAI models chose the insecure option 45 percent of the time. Perhaps more concerning, Veracode's research also uncovered a critical trend: despite advances in LLMs’ ability to generate syntactically correct code, security performance has not kept up, remaining unchanged over time.
“The rise of vibe coding, where developers rely on AI to generate code, typically without explicitly defining security requirements, represents a fundamental shift in how software is built,” said Jens Wessling, Chief Technology Officer at Veracode. “The main concern with this trend is that they do not need to specify security constraints to get the code they want, effectively leaving secure coding decisions to LLMs. Our research reveals GenAI models make the wrong choices nearly half the time, and it’s not improving.”
AI is enabling attackers to identify and exploit security vulnerabilities quicker and more effectively. Tools powered by AI can scan systems at scale, identify weaknesses, and even generate exploit code with minimal human input. This lowers the barrier to entry for less-skilled attackers and increases the speed and sophistication of attacks, posing a significant threat to traditional security defenses. Not only are vulnerabilities increasing, but the ability to exploit them is becoming easier.
LLMs Introduce Dangerous Levels of Common Security Vulnerabilities
To evaluate the security properties of LLM-generated code, Veracode designed a set of 80 code completion tasks with known potential for security vulnerabilities according to the MITRE Common Weakness Enumeration (CWE) system, a standard classification of software weaknesses that can turn into vulnerabilities. The tasks prompted more than 100 LLMs to auto-complete a block of code in a secure or insecure manner, which the research team then analyzed using Veracode Static Analysis. In 45 percent of all test cases, LLMs introduced vulnerabilities classified within the OWASP (Open Web Application Security Project) Top 10—the most critical web application security risks.
Veracode found Java to be the riskiest language for AI code generation, with a security failure rate over 70 percent. Other major languages, like Python, C#, and JavaScript, still presented significant risk, with failure rates between 38 percent and 45 percent. The research also revealed LLMs failed to secure code against cross-site scripting (CWE-80) and log injection (CWE-117) in 86 percent and 88 percent of cases, respectively.
“Despite the advances in AI-assisted development, it is clear security hasn’t kept pace,” Wessling said. “Our research shows models are getting better at coding accurately but are not improving at security. We also found larger models do not perform significantly better than smaller models, suggesting this is a systemic issue rather than an LLM scaling problem.”
Managing Application Risks in the AI Era
While GenAI development practices like vibe coding accelerate productivity, they also amplify risks. Veracode emphasizes that organizations need a comprehensive risk management program that prevents vulnerabilities before they reach production—by integrating code quality checks and automated fixes directly into the development workflow.
As organizations increasingly leverage AI-powered development, Veracode recommends taking the following proactive measures to ensure security:
- Integrate AI-powered tools like Veracode Fix into developer workflows to remediate security risks in real time.
- Leverage Static Analysis to detect flaws early and automatically, preventing vulnerable code from advancing through development pipelines.
- Embed security in agentic workflows to automate policy compliance and ensure AI agents enforce secure coding standards.
- Use Software Composition Analysis(SCA) to ensure AI-generated code does not introduce vulnerabilities from third-party dependencies and open-source components.
- Adopt bespoke AI-driven remediation guidance to empower developers with precise fix instructions and train them to use the recommendations effectively.
- Deploy a Package Firewall to automatically detect and block malicious packages, vulnerabilities, and policy violations.
“AI coding assistants and agentic workflows represent the future of software development, and they will continue to evolve at a rapid pace,” Wessling concluded. “The challenge facing every organization is ensuring security evolves alongside these new capabilities. Security cannot be an afterthought if we want to prevent the accumulation of massive security debt.”
The complete 2025 GenAI Code Security Report is available to download on the Veracode website.
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. Veracode is a multi-award-winning company offering capabilities to secure the entire software development life cycle, including Veracode Fix, Static Analysis, Dynamic Analysis, Software Composition Analysis, Container Security, Application Security Posture Management, Malicious Package Detection, and Penetration Testing.
Learn more at www.veracode.com, on the Veracode blog, and on LinkedIn and X.
Copyright © 2025 Veracode, Inc. All rights reserved. Veracode is a registered trademark of Veracode, Inc. in the United States and may be registered in certain other jurisdictions. All other product names, brands or logos belong to their respective holders. All other trademarks cited herein are property of their respective owners.
View source version on businesswire.com: https://www.businesswire.com/news/home/20250730694951/en/
Contacts
Press and Media:
Katy Gwilliam
Head of Global Communications, Veracode
kgwilliam@veracode.com
(c) 2024 Business Wire, Inc., All rights reserved.
Business Wire, a Berkshire Hathaway company, is the global leader in multiplatform press release distribution.
Subscribe to releases from Business Wire
Subscribe to all the latest releases from Business Wire by registering your e-mail address below. You can unsubscribe at any time.
Latest releases from Business Wire
Filippo Fagnani from Quanta System Receives the EAU Award for Significant Contribution to Endourology at ICE 202610.10.2026 18:09:00 CEST | Press Release
Filippo Fagnani, Marketing & Scientific Director of Quanta System’s Surgical Division, has been honoured with the Award for Significant Contribution to Endourology at ICE26, the International Conference on Endourology organised by the EAU Endourology Section. This press release features multimedia. View the full release here: https://www.businesswire.com/news/home/20261010101303/en/ Filippo Fagnani receiving the prize with Olivier Traxer and Professor Bhaskar Somani. The recognition celebrates more than two decades of professional commitment to laser technology and a career built around a clear ambition: to translate the needs of urologists into increasingly precise, flexible and useful technologies, with the ultimate goal of supporting patient safety and better surgical outcomes. “I have always believed that technology should make the surgeon’s work more precise, more flexible and, most importantly, safer for the patient. My goal has never been to develop technology for its own sake,
Emdoor Information Marks 18 Years of Rugged Computing Excellence with Vertically Integrated Capabilities10.10.2026 12:30:00 CEST | Press Release
As industrial automation, smart manufacturing, and field operations increasingly depend on mission-critical mobile computing, global demand for reliable rugged tablets, rugged laptops, and rugged handhelds continues to accelerate. Emdoor Information, a publicly listed company on China’s A-share main board since 2023 and an 18-year veteran in rugged computing, has established itself as a rugged computing solutions provider for industrial customers worldwide. Founded in 2008, the company delivers sustained growth, world-class manufacturing, resilient supply chains, full-stack R&D, and comprehensive lifecycle services. Its rugged computing products and industrial customers now span North America, Latin America, Europe, and Asia-Pacific, serving sectors such as public utilities, intelligent manufacturing, warehouse management, transportation, energy industry. This press release features multimedia. View the full release here: https://www.businesswire.com/news/home/20261010564561/en/ Rugged
Vertex to Present New Data on ALYFTREK ® at the North American Cystic Fibrosis Conference9.10.2026 19:15:00 CEST | Press Release
Vertex Pharmaceuticals Incorporated (Nasdaq: VRTX) today announced new interim data from the ALYFTREK® (vanzacaftor/tezacaftor/deutivacaftor) 2 to 5 years old open-label extension study, highlighting recovery of exocrine pancreatic function in some children in that age group, allowing those children to discontinue pancreatic enzyme replacement therapy (PERT). Pancreatic exocrine insufficiency in children with cystic fibrosis (CF) was previously believed to be irreversible. These data were presented at the North American Cystic Fibrosis Conference (NACFC). “The data presented at NACFC underscore the safety and efficacy of our CF medicines in the real world and in clinical trials in younger age groups. The data from the Phase 3 open-label study in 2 to 5 year olds evaluating exocrine pancreatic function represent a profound shift in how we understand the benefits of treating cystic fibrosis in its earliest stages,” said Carmen Bozic, M.D., Executive Vice President, Global Medicines Devel
Verdant Rock Receives A (low) Financial Strength Rating from Morningstar DBRS, Adding a Second International Investment-Grade Assessment9.10.2026 16:00:00 CEST | Press Release
Verdant Rock Limited, a Bermuda Monetary Authority-regulated Class 3B insurance company, has received an A (low) Financial Strength Rating from Morningstar DBRS. The rating reflects Verdant Rock’s financial strength and its capacity to meet policyholder obligations as an investment-grade financial guarantor for Emerging Markets credit. Morningstar DBRS is a global credit rating agency with coverage across North America, Europe, Asia, and Latin America. Its assessment of Verdant Rock reflects the company’s strong projected earnings ability, robust risk profile, sound liquidity, and good capitalization. Morningstar DBRS also assigned an A (low) Issuer Rating to Verdant Rock. The rating follows Verdant Rock’s BBB+ Long-Term Insurer Financial Strength Rating with a Stable Outlook from Fitch Ratings, assigned on 12 June 2026. Verdant Rock now holds Financial Strength Ratings from both Fitch Ratings and Morningstar DBRS, providing counterparties with dual-agency confirmation of the company’s
Tecnotree Named a Visionary in the Inaugural 2026 Gartner® Magic Quadrant™ for CSP AI-Enabled Marketing and Sales Solutions9.10.2026 15:17:00 CEST | Press Release
Tecnotree, a global digital platform and services leader for AI, 5G, and cloud-native technologies, today announced that Gartner has positioned it as a Visionary in the first-ever Magic Quadrant for AI-Enabled CSP Marketing and Sales Solutions. This press release features multimedia. View the full release here: https://www.businesswire.com/news/home/20261009905430/en/ Tecnotree Named a Visionary in the Inaugural 2026 Gartner® Magic Quadrant™ for CSP AI-Enabled Marketing and Sales Solutions A new category for a new operating model. CSPs are fighting saturated markets, rising acquisition costs, and accelerating churn. They are responding with AI-driven automation across the full revenue cycle, from segmentation and campaigns to lead management, CPQ, and renewals, increasingly executed by autonomous agents. According to us, Gartner creation of this Magic Quadrant confirms the shift has moved from pilot to boardroom priority. According to Gartner, Visionaries "understands where the market
In our pressroom you can read all our latest releases, find our press contacts, images, documents and other relevant information about us.
Visit our pressroom