Safety & Security

Only 20% of AI-Generated Dependency Recommendations Are Safe, Study Finds

Only 20% of AI-generated dependency recommendations tested were valid and vulnerability-free, CleanStart's 2026 report finds, as average vulnerabilities per audited codebase jump 107% to 581.

Study warns AI software recommendations hide growing risk
Study warns AI software recommendations hide growing riskAS_Photography / pixabay
By Marcus Bennett5 min read

Why it matters

  • Only 20% of tested AI-generated dependency recommendations were both valid and free of known vulnerabilities.
  • Average vulnerabilities per audited codebase rose 107%, from 280 to 581, across 947 commercial codebases.
  • About 95% of vulnerable component downloads reviewed in 2024 had a fixed version available at the time of download.
  • Grounding AI models in live registry data cut high- and critical-risk recommendations by roughly 70%.
  • Audited applications averaged 1,180 open-source components, with 64% entering indirectly through other dependencies.

Only 20% of tested AI-generated dependency recommendations were both valid and free of known vulnerabilities, according to CleanStart's State of Software Dependency Trust 2026 report, released on 24 November 2026. The finding lands as AI coding assistants push dependency adoption to unprecedented speed, and as the average audited application now carries 581 known vulnerabilities — up 107% from 280.

The report, compiled from published audits, surveys, ecosystem telemetry, incident reporting and policy sources, examines ten areas including software composition, remediation delays, regional and sector differences, upstream attacks, maintainer capacity and AI-assisted development. Its evidence base spans 947 audited commercial codebases plus registry telemetry and a review of 47 leading non-npm open-source projects.

The stakes are structural. Modern applications assemble the bulk of their code from open-source components, and the report argues that dependency sprawl, delayed updates and upstream attacks are making it harder for software teams to verify what they actually ship.

How bad is the AI recommendation problem?

The headline figure is stark: four out of five AI-generated dependency recommendations that CleanStart tested either failed validity checks or pointed to components with known vulnerabilities. Developers and automated systems are introducing dependencies faster than they can be vetted, the study warns, limiting visibility into their origin, integrity and maintenance.

There is a demonstrated fix. Grounding AI models in live registry data — feeding them current package metadata rather than static training knowledge — reduced high- and critical-risk recommendations by roughly 70%, the report found.

These pressures also complicate efforts to generate, consume and enforce software bill of materials (SBOM) requirements, the machine-readable inventories of components that regulators increasingly expect organisations to maintain.

What does the codebase data show?

The audited applications used an average of 1,180 open-source components each. Of those components, 64% entered codebases indirectly, pulled in as transitive dependencies of other packages rather than chosen deliberately by developers.

The audit's composition findings include:

  • 17% of observed components across the 947 audited commercial codebases sat outside conventional package managers, making them harder to track with standard tooling.
  • 41% of components were 10 or more versions behind their current release.
  • 68% of components in the audited sample were more than two years old.

Patching behaviour shows a clear gap between availability and action. Registry telemetry showed that about 95% of vulnerable component downloads reviewed in 2024 had a fixed version available at the time of download. Fixes existed. Teams installed the flawed versions anyway.

Where is vulnerability growth concentrated?

The average number of vulnerabilities per audited codebase rose 107%, from 280 to 581. The share of codebases containing any vulnerabilities at all changed only slightly, from 86% to 87%.

That distribution matters. The increase was concentrated in the number of known flaws within already-affected applications, not in a broad rise in the number of exposed applications. In other words: the same applications are accumulating more vulnerabilities, not more applications becoming vulnerable for the first time.

The report also examined real-world attack vectors, including incidents involving compromised publishing credentials, malicious install scripts and manipulated CI/CD (continuous integration and continuous delivery) infrastructure — the automated pipelines that build and release software.

Who maintains the software everyone depends on?

A separate review of 47 leading non-npm open-source projects found that a small number of developers accounted for most commits in 40% of projects. Software teams can therefore depend on components with limited visible support, where the departure of one or two maintainers could stall security fixes across thousands of downstream applications.

The broader maintenance review reinforced the finding: a narrow group of contributors carries most of the development burden in a significant share of projects.

What does CleanStart propose?

The report recommends that organisations start with the images, libraries, runtimes and packages that are reused most widely or carry the greatest consequence. For those foundational components, companies should set minimum evidence requirements covering seven dimensions: identity, origin, provenance, integrity, security, maintenance and policy.

CleanStart argues that making this evidence reusable across applications — and available through existing developer and AI workflows — would reduce repeated assessment work by individual teams. The company positions the approach as complementary to vulnerability scanning, SBOM generation, remediation processes and runtime controls, not a replacement for them.

Nilesh Jain, Chief Executive Officer and Co-Founder of CleanStart, set out the company's view: "Software security cannot begin and end with finding vulnerabilities. Organisations need to know what they are bringing into their environments, where it comes from and whether its integrity can be verified."

He added: "As software development accelerates, particularly with AI, the volume and speed of dependency adoption will only increase. The industry needs to move from managing known risks after adoption to establishing confidence in software before it is used."

Why the timing matters

The report's methodology section notes that the study draws on audited codebases and registry telemetry, and that it includes references and methodological limitations alongside the findings. The 70% reduction in high-risk AI recommendations from live registry grounding suggests the AI problem is tractable with better data plumbing rather than new models.

With 95% of vulnerable downloads having a fixed version available, and with four in five AI recommendations failing safety checks, the gap CleanStart identifies is not detection. It is verification before adoption — and the report's authors expect that gap to widen as AI-accelerated development increases both the volume and the speed of dependency adoption.

Source: itbrief.com.au

Share this article:

More from Marcus Bennett

Marcus Bennett

Show full bio

Senior reporter covering companies, deals and strategy in artificial intelligence and machine learning at AI In Context.

872 articles

Related articles

  1. GitHub and Microsoft's AI bug scanner produced 99 verified reports across six projects
  2. OpenAI Publishes Policy for Disclosing Bugs It Finds in Others' Software
  3. Three Frontier AI Models Agreed on Just One Vulnerability Out of 121
  4. Four Labs, One Blueprint: How AI Security Agents Converged in 2026
  5. One in three AI vendors carries a critical unpatched flaw

« Previous articleNext article »