AI-Generated Code Poses Major Security Risks in Nearly Half of All Development Tasks, Veracode Research Reveals
30.7.2025 14:50:00 EEST | 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
About Business Wire
For more than 50 years, Business Wire has been the global leader in press release distribution and regulatory disclosure.
www.businesswire.com

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
Ant Group’s AI Health App Afu Upgrades with AI Video Consultations and Enhanced Health Management Features to Make Everyday Care More Accessible and Convenient23.11.2026 11:18:00 EET | Press release
Ant Group’s AI health app Afu (also known as AQ) has launched a major upgrade, introducing real-time video consultations that allow users to discuss everyday health concerns with AI through video calls, alongside enhanced AI health management services for weight loss, blood sugar control and parenting. This press release features multimedia. View the full release here: https://www.businesswire.com/news/home/20261122320607/en/ A user is having an AI video consultation with Afu, Ant Group’s AI health app, about an everyday health concern. As of September 2026, Afu had reached 150 million users, handling nearly 20 million health inquiries per day. Powered by Ant Group’s LingSante medical and health AI model family, including LingSante-3.1*, a medical large model that consistently ranks among the leading models in the open-source healthcare AI landscape, the upgraded app can visually assess symptoms, help users better describe their health concerns and provide personalized guidance. It als
Agon raises $70 million in Series A round to build Europe's defence AI lab23.11.2026 10:00:00 EET | Press release
Agon, the European defence AI company, has raised $70 million in its Series A round, to develop the infrastructure to train, validate and orchestrate autonomous defence systems. This press release features multimedia. View the full release here: https://www.businesswire.com/news/home/20261123311259/en/ Tristam Constant, Agon Co-Founder and CEO The raise values the company at $450 million and is one of the largest European defence technology Series A rounds of 2026. It takes the total capital raised by Agon to $100 million, following its $30 million seed round earlier this year. The round was led by Northzone, alongside other existing investors, including Lakestar, XYZ, Lux Capital, Global Founders Capital, Speedinvest, alongside new investment from the UK Sovereign AI Fund and NSSIF. This is the first time the two UK Government-backed strategic investment funds have invested together. The UK Sovereign AI Fund is Britain's sovereign venture fund dedicated to scaling British AI companies
Ant Group’s AI App Afu Open Sources Medical and Health AI Model Family23.11.2026 09:10:00 EET | Press release
Ant Group’s AI health app Afu today announced the launch of LingSante, a comprehensive medical and health AI model family, marking a significant step in applying advanced artificial intelligence to healthcare services. Built on the Ant Ling foundational model and applied at scale on the Afu app—which now serves 150 million users and handles nearly 20 million health consultations daily—the new models introduce specialized capabilities ranging from personal health management to complex clinical reasoning. This press release features multimedia. View the full release here: https://www.businesswire.com/news/home/20261122564652/en/ The LingSante family spans a wide spectrum of capabilities, from multimodal understanding and complex medical reasoning to disease risk prediction, safety guardrails, and agentic interaction. At its core are two open-sourced models designed for distinct scenarios: LingSante-3.1-air-VL: A lightweight, native multimodal model tailored for personal users and smaller
Bureau Veritas Acquires Topo Solutions to Enhance Its AI-Powered Supply Chain Intelligence Offering23.11.2026 08:30:00 EET | Press release
Bureau Veritas, a global leader in Testing, Inspection, and Certification services (TIC), announces the acquisition of Topo Solutions, an AI-enabled, digital end-to-end supply chain management platform. Consistent with the LEAP | 28 strategic objectives, this acquisition enables Bureau Veritas to bring a new generation of data-driven services and digital solutions to consumer goods companies and retailers around the world. Headquartered in Hong Kong, Topo Solutions connects brands and retailers with their suppliers, factories and service providers across multiple markets worldwide by providing insight into their end-to-end supply chain in a single platform. Topo Solutions’ offering covers the entire product lifecycle, from sourcing and product development to production, quality, compliance, sustainability and shipping. In 2025, the company generated c. €3 million in revenue. Through cloud-based collaboration, AI-powered workflow automation and advanced analytics, Topo Solutions enables
L&T Technology Services Launches SDVault.ai™ to Bring Engineering Intelligence to the Software-Defined Vehicle V-Cycle23.11.2026 08:30:00 EET | Press release
L&T Technology Services (BSE: 540115, NSE: LTTS), a global leader in Engineering Intelligence Solutions & ER&D Consulting Services, today announced the launch of SDVault.ai™, an AI-powered engineering and assurance toolchain that helps automotive OEMs and Tier-1 suppliers accelerate the development, integration and validation of Software-Defined Vehicles (SDVs). SDVault.ai™ is part of LTTS’ EI for Engineering suite and is built on EIOne, the company’s Engineering Intelligence platform. SDVault.ai™ brings Engineering Intelligence across 12 interconnected engineering domains, spanning requirements, system and E/E architecture, functional safety, cybersecurity, process assurance, software and code intelligence, verification, embedded debugging, virtual ECU validation, trace and network analysis, root-cause intelligence and regression and release assurance. With more than 250 domain-aware AI agents, SDVault.ai™ combines AI with deterministic, rule-based engineering automation, particularly
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