AI-Generated Code Poses Major Security Risks in Nearly Half of All Development Tasks, Veracode Research Reveals
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
Visa Cardholders Get First Shot at Applying for FIFA World Cup 26™ Tickets31.7.2025 13:07:00 CEST | Press release
Visa cardholders will score exclusive first access for a chance to purchase tickets to the world’s biggest tournamentVisa plans to help local businesses in Canada, Mexico and the United States get ready to maximize economic opportunity It's official: the road to the FIFA World Cup 26™ starts with Visa. As the Official Payment Technology Partner of FIFA and a global leader in digital payments, Visa cardholders with a Visa Debit, Credit or reloadable Visa prepaid cards globally will receive exclusive early access to apply for tickets to the most anticipated sporting event in the world. The first-ever Visa Presale Draw was announced at the Visa Payments Vault in Washington, D.C., where government officials from Canada, Mexico and the United States gathered to celebrate trilateral collaboration and the unifying power of sport at the Visa FIFA World Cup 26™ Reception. This press release features multimedia. View the full release here: https://www.businesswire.com/news/home/20250731190789/en
Compass Pathways Announces Second Quarter 2025 Financial Results and Business Highlights31.7.2025 12:30:00 CEST | Press release
Positive primary endpoint achieved in first COMP360 Phase 3 trial with high statistical significance, clinically meaningful reduction in depression at 6 weeks, and no unexpected safety findingsSecond ongoing pivotal Phase 3 trial continues to enroll well, with 26-week data expected in the second half of 2026Compass exploring options for potential accelerated COMP360 filing for TRDCash position of $221.9 million at June 30, 2025; cash runway into 2027Conference call on July 31 at 8:00 am ET (1:00 pm UK) Compass Pathways plc (Nasdaq: CMPS), a biotechnology company dedicated to accelerating patient access to evidence-based innovation in mental health, today reported its financial results for the second quarter 2025 and provided an update on recent progress across its business. “With the recent positive 6-week primary endpoint from our first COMP360 Phase 3 study and the prior positive Phase 2b study, we have now delivered clinically meaningful and highly statistically significant top-line
BeOne Medicines Receives PRIME Designation from the European Medicines Agency for BGB-16673 in Waldenstrom’s Macroglobulinemia31.7.2025 12:00:00 CEST | Press release
Decision highlights the promise of BGB-16673, an investigational and potentially first-in-class BTK degrader designed to overcome resistance and deepen responses in B-cell malignancies BeOne Medicines Ltd. (NASDAQ: ONC; HKEX: 06160; SSE: 688235), a global oncology company, today announced that the European Medicines Agency (EMA) has granted PRIority MEdicines (PRIME) designation to the Company’s investigational Bruton’s tyrosine kinase (BTK) degrader, BGB-16673, for the treatment of patients with Waldenstrom’s macroglobulinemia (WM) previously treated with a BTK inhibitor. “This is the Company’s first PRIME designation, marking a milestone for BeOne and providing early and enhanced interaction with the EMA as we advance BGB-16673,” said Julie Lepin, Senior Vice President, Chief Regulatory Affairs Officer at BeOne. “PRIME allows us to align early with the EMA on key evidence requirements and potentially accelerate our path to marketing authorization of BGB-16673 for patients with relaps
Payroc Signs Definitive Agreement to Acquire BlueSnap31.7.2025 12:00:00 CEST | Press release
Expanding Global Footprint and Deepening Commitment to the EU and UK Market with Comprehensive Payment and AR Capabilities Payroc WorldAccess, LLC a leading North American merchant acquirer and payment technology provider, today announced the signing of a definitive agreement to acquire BlueSnap, a Boston-based global payment orchestration and AR automation platform. This strategic acquisition unites Payroc's direct-connect acquiring infrastructure across the U.S., Canada, and Puerto Rico, and transforms Payroc’s capabilities by adding BlueSnap’s robust global and enterprise capabilities. The transaction is expected to close in Q3 2025 and is subject to regulatory approval and other customary items. Transaction Overview & Strategic Highlights The acquisition creates a unified acquiring powerhouse that offers both end-to-end global card acquiring and eBanking processing capabilities to merchants, ISVs, and embedded technology partners, including: Global CNP Leadership & Routing Optimiza
Google Play Integrates K PLUS via Antom Merchant Payment Service, Expanding Payment Options for Users in Thailand31.7.2025 11:52:00 CEST | Press release
Integration of K PLUS marks the first Southeast Asian (SEA) banking app payment option on Google Play, as leaders from tech and financial sectors team up to drive growth and enhance user experience in Asia.Google Play to accelerate localized payment access in SEA with Ant International’s Antom to bring on more payment options.Antom is a strategic partner to Google Play in expanding payment options in APAC, driving growth in transactions and user acquisition. Google Play, Ant International’s Antom and KASIKORNBANK today announced the launch of K PLUS as a new local payment method on Google Play, marking the first time that a SEA mobile banking app is made available as a payment option in the platform. This press release features multimedia. View the full release here: https://www.businesswire.com/news/home/20250731000271/en/ Over 14 million K PLUS users on Android devices will be able to make purchases on Google Play, directly through their everyday banking app. Google Play gives users
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