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
Comprehensive Analysis of More Than 100 Large Language Models Exposes Security Gaps: Java Emerges as Highest-Risk Programming Language, While AI Misses 86% of Cross-Site Scripting Threats
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/

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
The Estée Lauder Companies and University of Leeds Partner to Advance the Future of Complexion Shade Matching14.8.2026 15:00:00 CEST | Press release
New research aims to tackle one of beauty’s most persistent challenges: accurately matching shade complexion-enhancing products to the full, diverse spectrum of global skin tones The Estée Lauder Companies Inc. (NYSE: EL) today announced a research collaboration with the School of Design, University of Leeds, United Kingdom, and Dr. Kaida Xiao, a world-renowned leader in color science and visual perception. Despite significant advances in beauty innovation, finding the right foundation or concealer shade remains one of the most common consumer frustrations. This press release features multimedia. View the full release here: https://www.businesswire.com/news/home/20260814256032/en/ Foundation shades are evaluated as part of color science research. By combining advanced color science with research into how consumers perceive their own skin, this partnership aims to strengthen the development of luxury and prestige complexion-enhancing products with more precise shade matching and improve
ZPG Reaches Agreement to Sell Hometrack to Providence Equity Partners14.8.2026 11:00:00 CEST | Press release
ZPG today announced an agreement with Providence Equity Partners for the sale of Hometrack. Under ZPG’s ownership, Hometrack has grown into a leading provider of residential real estate digital valuation and property risk data & analytics in the UK and Netherlands. The transaction marks a natural evolution for ZPG as the group focuses on its distinct businesses, each performing strongly and well positioned for the opportunities ahead: Zoopla, a leading UK property and homeowner data platform; Alto, the UK’s foremost workflow platform for real estate agents; RVU, a leading distribution and home management platform built on iconic UK household brands, including Uswitch and Confused.com; and Tempcover, a market-leading temporary insurance provider. ZPG and its shareholders remain excited about the outlook for each of these businesses. Charlie Bryant, Chief Executive Officer of Hometrack, said: “ZPG and its shareholders have been outstanding partners, their support has been integral to bui
Paysafe Becomes Envision Racing Title Partner to Build the Future of Fan Engagement; Where Motorsport, Gaming and Payments Become One14.8.2026 09:59:00 CEST | Press release
New alliance will turn Formula E fans into participants, connecting race weekends, gaming and rewards through Paysafe's global payments network, with the team entering the new Gen4 era as Paysafe Envision Racing Paysafe (NYSE: PSFE), a leading payments platform, today announced a title partnership with Envision Racing, one of Formula E's most successful and innovative teams, heralding a new era as Paysafe Envision Racing. Together, the two companies will power the future of connected fan experiences, uniting world-class motorsport, gaming and digital payments into the most engaging, rewarding and sustainable fan ecosystem in sport. This press release features multimedia. View the full release here: https://www.businesswire.com/news/home/20260814738341/en/ A new era begins in Formula E as Envision Racing becomes Paysafe Envision Racing. The partnership is built on a simple idea: fans shouldn't have to choose between watching the action and being a part of it. From the grid to gaming, es
CFO Worx Named No. 448 on the 2026 Inc. 5000 List, the Most Prestigious Ranking of America’s Fastest-Growing Private Companies13.8.2026 22:21:00 CEST | Press release
Company Recognized for 776% Three-Year Revenue Growth, Earning a Place Among the Nation’s Most Successful Independent Businesses CFO Worx today announced it has been ranked No. 448 on the 2026 Inc. 5000 list, the annual list of the fastest-growing private companies in America. The list is the most prestigious ranking of the nation’s most successful independent and entrepreneurial businesses, recognizing companies that have achieved remarkable growth while driving innovation, creating jobs, and shaping the future of the economy. Past honorees include companies such as Microsoft, Meta, Chobani, Oracle, and Patagonia. This press release features multimedia. View the full release here: https://www.businesswire.com/news/home/20260813927944/en/ Brian Alvarez, CEO of CFO Worx "Earning a place on the list comes down to the trust our clients place in us and is a testament to the caliber of the team behind every engagement," said Brian Alvarez, CEO of CFO Worx. This year’s Inc. 5000 recognizes a
Andersen Global udvider sine juridiske kompetencer gennem samarbejde med Beech Incorporated13.8.2026 18:01:00 CEST | Pressemeddelelse
Andersen Global indgår en samarbejdsaftale med det sydafrikanske advokatfirma Beech Incorporated og udvider dermed sine juridiske kompetencer i regionen. Beech Incorporated leverer juridisk og regulatorisk rådgivning til mine-, vedvarende energi-, infrastruktur-, olie- og gassektorerne med speciale inden for fusioner og opkøb, kommercielle forhold, projektfinansiering, sundhed, sikkerhed og miljø, ansættelsesret samt compliance. Firmaets tværfaglige team rådgiver klienter gennem hele projektets livscyklus – fra udvikling og finansiering til drift og interessenthåndtering – og er anerkendt som et førende advokatfirma af blandt andre publikationer somChambers and Partners og The Legal 500 . "Vores tilgang bygger på en praktisk forståelse af de brancher, vi arbejder inden for, og på at levere konkret og handlingsorienteret rådgivning til klienter, der opererer i komplekse regulatoriske miljøer," siger Warren Beech, der er CEO for Beech Incorporated. "Gennem samarbejdet med Andersen Global
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