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

(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

BitGo yn Sicrhau Cymeradwyaeth OCC i Drosi i Fanc Ymddiriedolaeth Genedlaethol Siartredig Ffederal13.12.2025 02:13:00 CET | Pressmeddelande

Cyhoeddodd BitGo Holdings, Inc. (“BitGo”), y cwmni seilwaith asedau digidol, heddiw fod Swyddfa Rheolwr yr Arian Cyfred (“OCC”) wedi cymeradwyo ei gais i drosi BitGo Trust Company, Inc., cwmni ymddiriedolaeth siartredig De Dakota, i fanc cenedlaethol o'r enw BitGo Bank & Trust, National Association (N.A.). Gyda chymeradwyaeth OCC heddiw o'i drosi, mae is-gwmni Cwmni Ymddiriedolaeth BitGo bellach yn gweithredu fel BitGo Bank & Trust, National Association (N.A.). Bydd BitGo Bank & Trust, N.A. yn gweithredu o dan un gyfundrefn oruchwylio ffederal unffurf, gan ei alluogi i ddarparu'r eglurder, y llywodraethiant, a'r sicrwydd rheoleiddiol y mae sefydliadau'n eu disgwyl gan ymddiriedolwr a reoleiddir yn ffederal. Mae'r gymeradwyaeth hon yn atgyfnerthu safle BitGo fel sylfaen sefydliadol ar gyfer y system ariannol fodern, gan gyfuno goruchwyliaeth ar lefel banc â'r diogelwch, y cydymffurfiaeth, a'r graddadwyedd sy'n diffinio seilwaith BitGo. O dan siarter y banc cenedlaethol, ac yn amodol ar

FIA, Formula 1 Group and All 11 Race Teams Officially Sign the Ninth Concorde Agreement, Securing Strength and Stability for the Sport in Pivotal Five-Year Agreement12.12.2025 17:10:00 CET | Press Release

The Fédération Internationale de l'Automobile (FIA), the global governing body for motor sport and the federation for mobility organisations worldwide, and Formula 1 Group, the Commercial Rights Holder, have today announced the signing of the Concorde Governance Agreement, a crucial contract defining the regulatory framework and governance terms of the FIA Formula One World Championship until 2030. This follows the announcement in March that the 2026 Commercial Concorde Agreement had been signed by all the teams and Formula 1 Group. Together, these agreements constitute the ninth Concorde Agreement, representing a major step forward in the professionalisation and global development of the sport. First introduced in 1981, the Concorde Agreements are designed to promote sporting fairness, technological innovation and operational excellence, and align all key stakeholders around a shared vision for structured governance and continued growth of the sport. Each iteration of the Concorde Agr

Anabranch Capital Management, LP supports relisting of SmartCraft ASA to Nasdaq Stockholm12.12.2025 16:26:00 CET | Press Release

Reference is made to the stock exchange announcement by SmartCraft ASA ("SmartCraft" or the "Company") on 1 December 2025 regarding the contemplated relisting of SmartCraft from Euronext Oslo Børs to Nasdaq Stockholm (the "Relisting") and the announcement of a cross-border merger to effect the Relisting. Funds managed by Anabranch Capital Management, LP (“Anabranch”) intend to vote in favour of the merger plan resolved by the boards of SmartCraft and its Swedish wholly owned subsidiary, SmartCraft Group AB (publ), to effect the Relisting at the Company's extraordinary general meeting planned for January 2025 (the "EGM"). Anabranch intends to vote with all Anabranch shares held at the Record Date for the EGM in favour of the relisting effected by the merger plan. Funds managed by Anabranch currently hold approximately 15.9 million shares in SmartCraft. Disclaimer: The views expressed are those of the authors and Anabranch Capital Management, LP as of the date referenced and are subject

Mohammed Ben Sulayem Re-Elected as President of the FIA12.12.2025 15:49:00 CET | Press Release

The Fédération Internationale de l’Automobile (FIA), the global governing body for motor sport and the federation for mobility organisations worldwide, today confirms that Mohammed Ben Sulayem has been re-elected as President of the FIA, following the election of his Presidential List by the General Assembly in Tashkent, Republic of Uzbekistan. This press release features multimedia. View the full release here: https://www.businesswire.com/news/home/20251212213181/en/ President Mohammed Ben Sulayem now begins his second four-year term, having overseen a period of significant renewal and stabilisation for the organisation since his initial election in 2021. Over the past four years, the FIA has undergone a wide-ranging transformation, improving governance, operations and restoring the financial health of the federation. These changes have strengthened the FIA’s position as the world’s governing body for motorsport and the leading authority on safe, sustainable, and affordable mobility.

Capcom’s All-new IP PRAGMATA to Launch on April 24, 2026!12.12.2025 15:00:00 CET | Press Release

Capcom Co., Ltd. (TOKYO:9697) today announced that sci-fi action-adventure game PRAGMATA, a completely new IP, is scheduled for release on April 24, 2026. This press release features multimedia. View the full release here: https://www.businesswire.com/news/home/20251212791950/en/ PRAGMATA Key Art PRAGMATA is a new type of sci-fi action-adventure game mixing puzzle and action elements. In the game, which takes place on the moon in a near-future world, the spacesuit-clad Hugh and android girl Diana cooperate while fighting their way back to Earth. By bringing the title to Nintendo Switch™ 2 in addition to PlayStation®5 system, Xbox Series X|S and PC, Capcom looks to further advance its multi-platform strategy and expand its user base. Moreover, a playable demo of the game will be released first on PC starting today, December 12, to further convey the appeal of the title. The company hopes that players look forward to PRAGMATA, which has already garnered acclaim for its playable demos at

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