Business Wire

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

Share

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

Allegro DVT Plays a Pivotal Role in Groundbreaking CHASSIS Automotive Base Die Development30.6.2026 14:15:00 CEST | Press Release

Allegro DVT announced its contribution to the European CHASSIS program's implementation of the Automotive Base Die chiplet. The 5nm chiplet is set to revolutionize the automotive semiconductor landscape, laying the foundation for the open and standardized chiplet ecosystem that will enable the next generation of software-defined vehicles. The Automotive Base Die acts as the central communication and integration hub for automotive System-on-Chip (SoC) infrastructure, which is designed to enable seamless integration of third-party chiplets via the Universal Chiplet Interconnect Express (UCIe) standard. The Automotive Base Die is funded within the Chips JU program CHASSIS by leading European entities BMW, imec, and Bosch, which aims to enable unprecedented flexibility and innovation in the automotive industry. Allegro DVT’s expertise has been instrumental in the development of this foundational technology. Specifically, Allegro DVT has provided its Encoding and Decoding Semiconductor Vide

SLB Awarded Seven-Year Contract Under Kuwait Oil Company's Ahmadi Innovation Valley Initiative30.6.2026 14:06:00 CEST | Press Release

Global energy technology company SLB (NYSE: SLB) has been awarded a seven-year contract by Kuwait Oil Company (KOC) under the Ahmadi Innovation Valley (AIV) initiative. The agreement will support applied research, technology deployment and digital innovation programs aligned with Kuwait's long-term energy objectives. Under the agreement, SLB will work with KOC to evaluate, test and deploy advanced technologies across a range of operational and strategic priorities, including artificial intelligence (AI), industrial internet of things (IIoT) applications, production optimization, reservoir technologies, water management and energy transition initiatives. Ahmadi Innovation Valley is KOC's flagship innovation initiative that brings together industry, academia and technology providers to address strategic upstream technical challenges. "Ahmadi Innovation Valley represents an important step in advancing technology leadership across Kuwait's energy sector," said Ahmad Jaber Al-Eidan, chief e

IFF Launches SENSORA™, an Innovative Pro-Fragrance Technology Platform30.6.2026 14:00:00 CEST | Press Release

IFF (NYSE: IFF) — a global leader in flavors, fragrances, food ingredients and health and biosciences — today announced the launch of SENSORA™, its advanced patent-pending pro-fragrance technology designed to transform how scent is experienced across home, fabric and personal care applications. Developed to meet the rising demand for a longer-lasting and more sophisticated scent experience, SENSORA™ delivers an evolving olfactive profile with sustained release, extending enjoyment well beyond first use. This press release features multimedia. View the full release here: https://www.businesswire.com/news/home/20260629247253/en/ SENSORA™, IFF’s light-activated pro-fragrance experience enhancer “With SENSORA™, we are advancing fragrance performance into a new territory — one where scent continues to reveal itself in real life, long after the first moment of use,” said Ana Paula Mendonça, president of IFF Scent. “By combining pro-fragrance science with our deep expertise in fragrance desig

Xylem Announces Segment Leadership Appointments30.6.2026 13:30:00 CEST | Press Release

Xylem Inc. (NYSE: XYL), a leading global water solutions company, today announced two executive leadership appointments, effective July 1, both reporting to President and Chief Executive Officer Matthew Pine. This press release features multimedia. View the full release here: https://www.businesswire.com/news/home/20260630087773/en/ Meredith Emmerich has been appointed EVP and President, Measurement and Control Solutions at Xylem. Meredith Emmerich has been appointed EVP and President, Measurement and Control Solutions. Most recently, she served as EVP and President, Applied Water at Xylem. Emmerich joined Xylem in 2024 from Carrier Global Corporation (NYSE: CARR), where she was Vice President of Global Enterprise Solutions and held several senior leadership roles, including leading the Americas Commercial HVAC business and the Global Residential, Light Commercial, and VRF HVAC portfolio. Emmerich succeeds Mike McGann, who will serve as senior advisor to ensure a smooth and orderly tra

Strike Europe Secures Full MiCA Authorization, Unlocking Bitcoin Services Across All 27 EU Member States30.6.2026 13:29:00 CEST | Press Release

Strike, a leading Bitcoin financial services company, today announced that its European entity, Zap (Strike) Europe Limited, has been authorized as a crypto-asset service provider by the Malta Financial Services Authority (MFSA) under the EU's Markets in Crypto-Assets Regulation (MiCA) and the Malta Markets in Crypto Assets Act (Cap. 647, laws of Malta) to provide crypto-asset services. The license enables millions of Europeans across all 27 EU member states to access Strike's suite of Bitcoin financial services under a single regulatory framework, replacing the patchwork of national regimes that previously governed the market. Strike has served eligible European customers since April 2024. The MFSA authorization makes that presence permanent and EU-wide, and positions the company among a small group of firms to complete the MiCA process to date. "Europe deserves a Bitcoin-only company focused on doing one thing well, not a multi-asset platform where Bitcoin is an afterthought," said J

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
World GlobeA line styled icon from Orion Icon Library.HiddenA line styled icon from Orion Icon Library.Eye