Business Wire

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

Share

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

mesm Tokyo, Autograph Collection: Ocean Liner-Themed New Year’s Eve “Holiday Voyage Countdown Party 26–27” on December 31, 202627.11.2026 15:00:00 CET | Press release

mesm Tokyo, Autograph Collection: mesm Tokyo (General Manager: Katsura Haruna) will host a one-night-only countdown party, “Holiday Voyage Countdown Party 26–27,” on December 31, 2026, in “The Banquet” on the 16th floor. The hotel will be transformed into a luxury ocean liner for a special voyage into 2027. The party is the finale of the hotel’s festive season, “Holiday Voyage 2026,” themed on voyages and inspired by its Takeshiba waterfront setting. Live entertainment will come from “Pinch of Snuff,” an eight-piece Irish band that blends traditional Irish music and original songs with punk and rock elements. Known for energetic acoustic performances, the band sold out every show of its first headline tour in Ireland in 2025 and followed with a larger tour in 2026. Hotel-made finger food will draw on the dining culture of the grand liners that once crossed the Atlantic. Dishes reportedly served on board in that era have been reinterpreted by the hotel’s chefs as amuse-bouches, appetize

Robbyant Open-Sources LingBot-Map 2.0 and LingBot-Navi, Enabling Long-Term Spatial Memory and Autonomous Navigation for Robots27.11.2026 09:10:00 CET | Press release

New models reduce long-distance mapping drift by nearly 85% and reduce the need for redundant exploration across tasks, advancing Robbyant’s universal embodied AI brain. Robbyant, an embodied AI company within Ant Group, today announced the open-source release of LingBot-Map 2.0, a streaming 3D reconstruction model, and LingBot-Navi, a spatial-memory navigation model. Designed to solve long-distance mapping drift and cross-task amnesia, the models allow robots to build maps on the move, self-calibrate in real time, and navigate complex physical environments with increasing efficiency. This press release features multimedia. View the full release here: https://www.businesswire.com/news/home/20261126690702/en/ LingBot-Map 2.0 achieves leading performance in the VBR long-trajectory error test and across nine public benchmark evaluations. Autonomous mobility is essential for physical AI, from warehouse logistics to last-mile delivery. Yet current systems face two major bottlenecks: long-di

ILO, UN Global Compact, CONTAR and Suzano Launch Initiative That Turns Workers’ Voices Into Intelligence for Managing and Preventing Risks in Rural Supply Chains26.11.2026 15:34:00 CET | Press release

Presented at the UN Forum on Business and Human Rights in Geneva, the Pode Contar mechanism combines listening to rural workers, social dialogue and strategic information to support companies in preventing labour and human rights risks and in providing access to remedy in supply chains. How can companies identify labour risks that do not always surface in traditional compliance checks, and act before problems escalate? That is the aim of Pode Contar, a mechanism presented on Monday (23 November) at “The World of Work in Transformation”, an event held alongside the 15th United Nations Forum on Business and Human Rights in Geneva, Switzerland. Developed by the International Labour Organization (ILO) and Brazil’s National Confederation of Rural Wage Workers (CONTAR), in strategic partnership with the UN Global Compact Network Brazil and Suzano, Pode Contar seeks to turn workers’ day-to-day experience into an opportunity for prevention, dialogue and improved working conditions in rural sup

Black Foils Hire Former All Blacks Commercial Chief Yarnie Guthrie26.11.2026 15:00:00 CET | Press release

New Zealand’s Black Foils have appointed Yarnie Guthrie, who led New Zealand Rugby’s commercial team, as Chief Commercial Officer. This press release features multimedia. View the full release here: https://www.businesswire.com/news/home/20261126718135/en/ Peter Burling, Yarnie Guthrie and Blair Tuke, 25 November 2026. Credit: Black Foils / Woody Lynskey The appointment comes days after the Black Foils won the Emirates Dubai Sail Grand Prix for the third year in a row and five months after MSP Sports Capital acquired a majority stake in the team. Guthrie will lead the Black Foils’ commercial strategy and partnerships in New Zealand and around the world. He will work alongside MSP and co-CEOs Peter Burling and Blair Tuke, the Olympic champions who founded the team. “Yarnie’s spent years building partnerships for the All Blacks and Black Ferns, and that’s exactly the experience we want behind the Black Foils,” Burling said. “To have someone of his calibre leading our commercial work says

mesm Tokyo, Autograph Collection: “Holiday Voyage 2026” Festive Promotion, December 1, 2026 – January 7, 202726.11.2026 15:00:00 CET | Press release

mesm Tokyo, Autograph Collection: mesm Tokyo (General Manager: Katsura Haruna) will hold its festive promotion, “Holiday Voyage 2026,” from December 1, 2026, through January 7, 2027. Themed on a voyage and drawing on the hotel’s waterfront location in Takeshiba, it evolves “BLUE FANTASY,” the illumination event held every winter since the hotel opened in 2020, into a hotel-wide festive experience. At night, the hotel’s signature water art in the 16th-floor lobby will be lit in blue. Three participatory features add to the voyage mood: a sea-themed stamp rally in the lobby for overnight guests, who receive an original gift upon completion; “Voyage Post” postcards, inspired by message-in-a-bottle letters, which the hotel will mail to destinations in Japan and overseas from January 8, 2027; and original sea-and-travel stickers for guests of the hotel’s restaurants and bars. Dining highlights include a five-course dinner inspired by “The Nutcracker” at the French restaurant “Chef’s Theatre

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