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
Bending Spoons opens office in Warsaw as Polish applications reach 50,000 in 202621.9.2026 10:15:00 EEST | Press release
Bending Spoons has opened an office in Warsaw, adding to its Milan headquarters and locations in London and Madrid. The technology company, whose portfolio includes Eventbrite and WeTransfer, has seen a sharp rise in applications from Poland and will use the new base to recruit locally for roles across key projects. “We’ve received around 50,000 applications from Poland so far this year, more than twice as many as the whole of 2025. What stands out isn’t just the volume. Many Polish candidates are among the strongest we see in our selection process, and the student talent has been particularly impressive. More than half of our recent hires from Poland were still studying when they applied,” says Andrea Maiorana, Talent data lead. Located in Śródmieście, Warsaw’s city center, the office is within walking distance of the Presidential Palace and the University of Warsaw. Bending Spoons encourages all new hires to spend their first few months in Milan, with travel and accommodation costs f
Strongest Half-Year in Curatis’s History — Revenue up 51% and Significant Progress on Corticorelin (C-PTBE-01)21.9.2026 08:03:00 EEST | Press release
Curatis Holding AG (SIX:CURN, “Curatis”) reports net sales from goods and services of CHF 7.9m for the first half of 2026, up 51% (H1 2025: CHF 5.2m), with the loss for the period narrowing to CHF -0.4m (H1 2025: CHF -1.2m) and cash and cash equivalents rising to CHF 3.6m (31 December 2025: CHF 1.9m). Curatis also advanced its corticorelin (C-PTBE-01) program on multiple levels, including an exclusive Japan licence with Neupharma and continued manufacturing progress. Business development and finances Net sales from goods increased by 46% to CHF 7.4m (H1 2025: CHF 5.0m) and net sales from services rose to CHF 0.6m (H1 2025: CHF 0.2m). Growth was driven both by products marketed for some time and by products added to the distribution portfolio in 2025 and 2026. The gross contribution from goods and services rose by 32% to CHF 1.8m (H1 2025: CHF 1.3m); the combined cost base grew by only 9% against net sales growth of 51%, as personnel expenses rose 5% to CHF 1.3m (H1 2025: CHF 1.2m) and
Galderma Begins Trading in the Swiss Market Index, Joining Switzerland's Leading Blue Chip Companies21.9.2026 08:00:00 EEST | Press release
Galderma (SIX: GALD), the pure-play dermatology category leader, today begins trading as a constituent of the Swiss Market Index (SMI), Switzerland's leading blue chip equity benchmark comprising 20 of the country's largest and most liquid listed companies. Less than three years after its IPO on the SIX Swiss Exchange in March 2024, Galderma has established itself as one of Switzerland's leading listed companies. Its inclusion in the SMI reflects the company's strong growth, disciplined execution and increasing relevance in Swiss and international capital markets as it advances its ambition to become the world's leading dermatology powerhouse. Since its IPO, Galderma has continued to execute its growth-focused integrated dermatology strategy, delivering strong performance across Injectable Aesthetics, Dermatological Skincare and Therapeutic Dermatology. Net sales increased from 4.410 billion USD in 2024 to 5.207 billion USD in 2025, driven by science-led innovation, portfolio and geogr
International Human Rights Lawyer Jared Genser and Former White House Counsel Lanny J. Davis Join Legal and Advocacy Team Supporting Cambodian Businessman Yim Leak, Seiden Law LLP Announces18.9.2026 20:52:00 EEST | Press release
International human rights lawyer Jared Genser and Lanny J. Davis, who has close ties to two former US presidents and a worldwide reputation for defending those under attack with lies and smears, and for repairing the damage done to their reputations, have joined the legal and advocacy team supporting Cambodian businessman Yim Leak, Seiden Law LLP, which serves as Yim Leak's chief global counsel, announced today. Their first move is to hold the Thai government accountable, framing its conduct as either complicit in or willfully blind to a sustained smear campaign against Yim. Genser is Managing Director of Perseus Strategies, an international law firm. Over more than two decades, he has served as pro bono counsel to five Nobel Peace Prize laureates. The New York Times has referred to him as "The Extractor" for his work freeing political prisoners worldwide. Genser's decision to support Yim Leak's team comes as the businessman faces an asset freeze exceeding 20 billion baht (more than U
Ningbo FEED Meeting Confirms Full Confidence in Q1 2027 FID for Allied Biofuels’ US$6.1 Billion Presidential Decree-Backed SAF and e-SAF Project18.9.2026 18:38:00 EEST | Press release
Allied Biofuels has held a major Front-End Engineering Design (FEED) meeting at Sinopec’s office in Ningbo, China, bringing together Allied Biofuels, Sinopec Engineering Group Co., Ltd. of China, Topsoe A/S of Denmark, Sasol South Africa Limited, and Plug Power of the United States — the principal international engineering and technology providers supporting its US$6.1 billion Presidential Decree-backed Sustainable Aviation Fuel (SAF) and e-SAF project in Uzbekistan. This press release features multimedia. View the full release here: https://www.businesswire.com/news/home/20260918708077/en/ FEED Meeting - Ningbo, China At the joint FEED meeting of the project’s core engineering and technology stakeholders, the discussions established clear alignment on engineering responsibilities, technology interfaces, design deliverables, project integration and the coordinated execution programme required to advance the project through FEED. All stakeholders working on the project expressed full co
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