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
Incyte to Highlight Late-Breaking Hidradenitis Suppurativa Data at the 2026 American Academy of Dermatology (AAD) Annual Meeting20.3.2026 16:00:00 EET | Press release
Incyte (Nasdaq:INCY) today announced that data from key programs in its Inflammation and Autoimmunity (IAI) franchise will be presented at the 2026 American Academy of Dermatology (AAD) Annual Meeting, to be held March 27 – 31, 2026, in Denver. “At AAD 2026, we are presenting late‑breaking 54-week results from the Phase 3 STOP‑HS program evaluating povorcitinib in hidradenitis suppurativa (HS),” said Jim Lee, M.D., Ph.D., Group Vice President, Inflammation and Autoimmunity, Incyte. “These data provide longer term evidence of the safety and efficacy of povorcitinib in HS patients and further strengthen the significant growth potential of our Inflammation and Autoimmunity franchise.” Details on key data presentations at AAD include: Late-Breaking Oral Presentations Hidradenitis Suppurativa Povorcitinib in Patients With Moderate to Severe Hidradenitis Suppurativa: 54-Week Efficacy and Safety Results From the STOP-HS1 & STOP-HS2 Phase 3 Studies (Session: S034 – Late-Breaking Research: Sess
MUSASHI JAPAN by TAIMATSU Launches “Road to Shogun” – A Journey Through Craftsmanship and Discovery20.3.2026 14:58:00 EET | Press release
Musashi Japan by TAIMATSU Co., Ltd., a contemporary Japanese knife brand rooted in the spirit of craftsmanship and cultural harmony, has announced its newest experiential campaign: “Road to Shogun.” This press release features multimedia. View the full release here: https://www.businesswire.com/news/home/20260320887471/en/ Designed as the brand’s most ambitious customer journey to date, the campaign invites visitors to explore participating Musashi Japan stores while discovering the traditions, culture and craftsmanship that inspire the brand. Inspired by the journey towards mastery, the experience encourages participants to progress through a series of ranks whilst visiting stores and unlocking rewards that celebrate elements of everyday Japanese culture. At Musashi Japan, craftsmanship is not only about the final product, but also about the path taken to achieve mastery. The Road to Shogun reflects this philosophy by guiding customers through a journey that mirrors the dedication, cu
Futur Delivers Strong Growth and Record Profit in 202520.3.2026 13:05:00 EET | Press release
"2025 was a record year for Futur. In a market characterized by sharp market fluctuations, Futur continued to invest, grow and deliver strong results. Behind this record performance is stable customer growth, strong inflows and cost discipline. Our close cooperation with over 60 partners gives customers the freedom to choose the asset management and advisory services that best suit them. The strategy of letting the customer choose is appreciated, which is reflected in us welcoming more than 21,000 new customers during the year", says Torgny Johansson, CEO of Futur. "We are optimistic about the future. Futur has great opportunities to continue growing in the coming years by developing innovative and efficient services for savings and pensions. I am proud of how all employees have purposefully embraced our strategy and continue to work towards the goal of reaching 500 billion kronor in savings capital with the current organization", concludes Torgny Johansson, CEO of Futur. Key highlight
Lyten to Establish a Lyten Industrial Hub in Poland20.3.2026 13:00:00 EET | Press release
Lyten, the supermaterial applications company and global leader in an energy storage, has announced its interest in establishing a Lyten Industrial Hub in Poland. In 2026, Lyten will conduct a feasibility study to assess manufacturing requirements for Lyten products, potential private and public partnerships, and the necessary energy and utility infrastructure. The industrial hub will be built around Lyten Dwa – the energy storage production plant and R&D center in Gdańsk. This press release features multimedia. View the full release here: https://www.businesswire.com/news/home/20260320045026/en/ Lyten Voltpack Mobile System in front of Lyten Dwa plant in Gdansk, Poland In February 2026, Lyten announced the establishment of its first Industrial Hub in Skellefteå, Sweden, on the site of the former Northvolt Ett plant, which it recently acquired. It will combine battery production with a data center with a capacity of up to 1 GW, being built by EdgeConneX. Once it reaches full production
PUMA Reveals Its Most Powerful International Football Kit Lineup yet on the Streets of New York City20.3.2026 09:00:00 EET | Press release
Global sports company PUMA unveiled its new national team kits for 11 nations with a street-level event at Domino Square in New York City, that placed football, music, food, and culture at the center stage in a celebration of the game. Rather than launching in a stadium setting or in a cinematic brand film, PUMA chose to reveal the kits in play, worn first by local community players from each nation on the streets of New York. This press release features multimedia. View the full release here: https://www.businesswire.com/news/home/20260320641449/en/ Reinforcing its status as a leading force in football kits at this summer’s competition, PUMA unveiled jerseys for 11 nations, including the most prominent African partner federations of any brand in the tournament, in a community-first celebration of football, music, and culture in New York City. Four continents are united under 11 nations: Portugal, Morocco, Ghana, Paraguay, Senegal, Côte d’Ivoire, Czech Republic, Switzerland, New Zealan
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