Business Wire

AI-Generated Code Poses Major Security Risks in Nearly Half of All Development Tasks, Veracode Research Reveals

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

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

SES Delivers Solid H1 2025 Results & Completes Intelsat Acquisition31.7.2025 08:30:00 EEST | Press release

SES S.A. completed Intelsat acquisition on 17 July 2025 and announces financial results for the six months ended 30 June 2025. H1 2025 solid performance – reiterating FY25 outlook Revenue of €978 million (-0.2% yoy(1)) and Adjusted EBITDA(2) of €521 million (-0.7% yoy(1)) Networks (+10.3% yoy(1)) supported by +17.1% yoy(1) growth in Government and +9.5% yoy(1) growth in Mobility; Media (-12.1% yoy(1)) in-line with expectations with important new long-term renewals signed €690 million of new business and contract renewals signed in H1 2025 – with a total gross contract backlog of €4.2 billion Adjusted FCF of €193 million (+32.0% yoy) and Net Leverage at 1.1 times(3) (including cash & cash equivalents of €4.3 billion(4)) O3b mPOWER satellites 7&8 in service since May; 9&10 successfully launched 22 July – boosting O3b mPOWER network capacity and resilience SES and Luxembourg Government to develop and launch new defence satellite for GovSat FY 2025 financial outlook(5) well on track, reite

AB InBev Reports Second Quarter 2025 Results31.7.2025 08:02:00 EEST | Press release

Anheuser-Busch InBev (Brussel:ABI) (BMV:ANB) (JSE:ANH) (NYSE:BUD): This press release features multimedia. View the full release here: https://www.businesswire.com/news/home/20250730542419/en/ AB InBev's three strategic pillars. Regulated information1 “Beer is a passion point for consumers. The resilience of the beer category and the continued momentum of our megabrands delivered another quarter of profitable growth. EBITDA increased by 6.5% and the ongoing optimization of our business drove Underlying EPS growth of 8.7%. While the operating environment remains dynamic, the consistent execution of our strategy by our teams and partners drove a solid first half of the year and reinforces our confidence in delivering on our outlook for 2025.” – Michel Doukeris, CEO, AB InBev Revenue +3.0% Revenue increased by 3.0% in 2Q25 with revenue per hl growth of 4.9% and by 2.3% in HY25 with revenue per hl growth of 4.3%. Reported revenue decreased by 2.1% in 2Q25 to 15 004 million USD and by 4.2%

Azelis Delivers 11% Free Cash Flow Growth in H1 202531.7.2025 08:00:00 EEST | Press release

Azelis (Brussels:AZE): This press release features multimedia. View the full release here: https://www.businesswire.com/news/home/20250730152197/en/ Highlights H1 2025 Revenue of EUR 2.2bn in H1 2025, representing year-on-year increase of 0.6% (+3.3% on a constant currency basis), with 1.2% organic revenue growth and 2.2% revenue growth contribution from acquisitions offsetting the negative F/X impact during the period. Gross profit of EUR 515m resulting in gross profit margin of 23.9%. The 68 bp gross margin contraction reflects the mix effect from higher growth contribution from Industrial Chemicals and the Group's less mature businesses. Adjusted EBITA of EUR 234m results in adjusted EBITA margin of 10.9%, and conversion margin of 45.5%. The EBITA and conversion margins do not yet reflect the full benefit of cost savings measures announced at the beginning of Q2. Net profit of EUR 85m represents a decline of 14.6% over the prior year, driven by the lower operating profit. Free cash

Tigo Energy TS4 Flex MLPE Device Family Certified Compatible With Haier Energy Inverters31.7.2025 07:00:00 EEST | Press release

Tigo Energy, Inc. (NASDAQ: TYGO) (“Tigo” or “Company”), a leading provider of intelligent solar and energy software solutions, has signed a certificate of compatibility with Haier Energy, documenting the compatibility between Tigo Flex MLPE products and hybrid solar inverters from Haier. The certification covers certain single-phase and three-phase Haier products and members of the Tigo TS4 product family, when properly designed and installed. Together, these products are designed to deliver high-quality and enhanced value with a system that generates and manages solar energy more efficiently and helps deliver the features residential energy customers demand. "We are very proud to share the compatibility with a trusted partner like Tigo Energy,” said Federica Cona, EU product manager at Haier Energy. “This collaboration completes our technical product range and gives installers the flexibility to use our solutions across all plant conditions with full adaptability." Solar installers in

IFF Declares Dividend for Third Quarter 202530.7.2025 23:20:00 EEST | Press release

IFF (NYSE: IFF) announced that its Board of Directors has declared a regular quarterly cash dividend of $0.40 per share of its common stock, payable on October 10, 2025 to shareholders of record as of September 29, 2025. Welcome to IFF At IFF (NYSE: IFF), we make joy through science, creativity and heart. As the global leader in flavors, fragrances, food ingredients, health and biosciences, we deliver groundbreaking, sustainable innovations that elevate everyday products—advancing wellness, delighting the senses and enhancing the human experience.Learn more at iff.com, LinkedIn, Instagram and Facebook. © 2025 by International Flavors & Fragrances Inc. IFF is a Registered Trademark. All Rights Reserved. View source version on businesswire.com: https://www.businesswire.com/news/home/20250730368333/en/

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