AI-Generated Code Poses Major Security Risks in Nearly Half of All Development Tasks, Veracode Research Reveals
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
Independent Research Firm Names Mindbreeze a Leader in the Cognitive Search Platforms Evaluation3.10.2025 17:57:00 EEST | Press release
Mindbreeze, a leading global provider of AI-based knowledge management solutions, has been recognized as a Leader in The Forrester Wave™: Cognitive Search Platforms, Q4 2025. Forrester evaluated fourteen cognitive search providers based on their current offering, strategy, and customer feedback. Mindbreeze received recognition for its robust and secure platform, positive customer experiences, and vision for enabling enterprises to transform knowledge into an asset they can act on in real time. Access a complimentary copy of the report from the Mindbreeze website. In its evaluation, Forrester notes that “Mindbreeze is a great fit for enterprises that want a cognitive search platform that is both highly secure and highly flexible.” The report also notes that “Mindbreeze’s superior capabilities include a robust pipeline for ingesting, understanding, and contextually indexing data.” Customers interviewed by Forrester further “report very positive experiences working with the Mindbreeze tea
World Green Economy Summit Hosts a High-Level Ministerial Roundtable3.10.2025 16:22:00 EEST | Press release
HE Saeed Mohammed Al Tayer, Chairman of the World Green Economy Organization (WGEO), delivered the opening address at the high-level roundtable hosted by WGEO during the 11th World Green Economy Summit in Dubai. This press release features multimedia. View the full release here: https://www.businesswire.com/news/home/20251003594739/en/ World Green Economy Summit hosts a high-level ministerial roundtable (Photo: AETOSWire) The session, held under the theme ‘Delivering Climate Ambition by 2030 and Beyond–United Action for Green Transition’, aimed to advance climate ambitions and promote dialogue on aligning policies, finance and innovation with sustainable development. It was attended by HE Dr Amna bint Abdullah Al Dahak, UAE Minister of Climate Change and Environment; HE Dr. Ayman Suleiman, Minister of Environment, Jordan; HE Dorin Junghietu, Minister of Energy, Moldova; HE Dr. Muaviyath Mohamed, Minister of State for Tourism and Environment, Maldives; HE Abubakar Ben Mahmoud Minister o
Esmark Appoints Jack Biegalski CEO of Esmark Steel Group, Alvarez to Lead Esmark International3.10.2025 16:00:00 EEST | Press release
Esmark Steel Group, a wholly owned subsidiary of Esmark, Inc., today announced the appointment of Jack Biegalski as Chief Executive Officer effective October 1. Biegalski succeeds Roberto Alvarez, who has been appointed CEO of Esmark International. This press release features multimedia. View the full release here: https://www.businesswire.com/news/home/20251003267492/en/ Esmark Steel Group announced the appointment of Jack Biegalski as Chief Executive Officer. Biegalski will report to Esmark Inc. founder and Executive Chairman James P. Bouchard and join the executive leadership team. Also reporting to Bouchard are Alvarez, Dave Luptak, CEO of Ohio Coatings Company-Tin Operations, and Randy Stanton, acting President and CFO of Esmark Inc. Biegalski brings nearly four decades of steel industry experience to the Esmark Steel Group. He most recently served as President and Chief Operating Officer, American Heavy Plates. He also served as Director of Sales, ArcelorMittal USA, and has serve
Business Reply and Pusterla 1880: Global Digital Transformation in Luxury Packaging with Oracle Cloud3.10.2025 11:00:00 EEST | Press release
Business Reply, the Reply company specialized in the implementation of enterprise solutions based on Oracle technologies, supported Pusterla 1880 — an international leader in the luxury packaging sector — in a digital transformation project aimed at standardizing and optimizing financial, logistics, and production processes on a global scale. This press release features multimedia. View the full release here: https://www.businesswire.com/news/home/20251003867603/en/ With the support of Business Reply, Pusterla 1880 adopted a fully integrated solution on Oracle Cloud, enabling the harmonization of operational workflows on a global scale. With over 140 years of experience and a continuously expanding presence across Europe, Asia, and the Americas, Pusterla 1880 operates in a sector that demands high standards of customization, quality, and precision. End-to-end supply chain traceability is a strategic element for ensuring full control over the entire production cycle, from the management
Downtown UAQ | Sobha Realty Sells Over 50% of Launch Inventory Within First Week3.10.2025 09:00:00 EEST | Press release
Sobha Realty has announced strong initial sales at its flagship Downtown UAQ | Sobha Realty master development, reinforcing rising investor confidence in Umm Al Quwain as the UAE’s next coastal growth hub. This press release features multimedia. View the full release here: https://www.businesswire.com/news/home/20251002867954/en/ Downtown UAQ | Sobha Realty (Photo: AETOSWire) Within just one week of its launch, the developer confirmed that over 50% of units in the first three residential towers were sold, setting a new benchmark for sales velocity in the northern emirates. The 25-million-square-foot master development, located along Umm Al Quwain’s natural waterfront, is envisioned as the Coastal Skyline of the Future. The project integrates premium residences, commercial hubs, hospitality offerings, and lifestyle amenities to create an exceptional living experience. It is designed to balance modern living with environmental stewardship, with more than half of the total land area dedic
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