AI
First study maps LLM supply chain vulnerabilities and structural risks
Researchers chart the ecosystem of open-source packages powering AI models, revealing how security flaws cascade across thousands of dependent projects.
A first-of-its-kind empirical investigation has exposed the structural fragility and security vulnerabilities embedded in the software ecosystem that underpins large language model development and deployment.
What researchers examined#
Scientists analyzed the Large Language Model Supply Chain (LLMSC)—the intricate web of open-source libraries, tools, and components that developers rely on to build and run systems like GPT and similar AI models. The team constructed a dependency graph spanning 13,486 packages from PyPI and NPM repositories, tracking 28,704 interconnections and cataloguing 180 distinct security vulnerabilities across 14 functional domains.
Key structural findings#
The LLMSC displays a paradoxical topology: locally concentrated but globally dispersed. Most individual dependency chains remain shallow—roughly 72% contain fewer than five layers—yet a small number of heavyweight components anchor the entire ecosystem, accounting for over three-quarters of all packages. A handful of "hub" nodes act as critical nodes, with the five most connected components each serving an average of 1,207 downstream projects.
How vulnerabilities propagate#
Security risks spread unpredictably through these interconnections. When a vulnerability is introduced at a central hub package, it reaches an average of 142 additional projects one level downstream and intensifies to 238 affected projects two levels out. Packages like transformers—a foundational tool for LLM development—have the potential to cascade exposure to over 1,300 dependent projects, either directly or indirectly.
Implications for AI security#
The concentration of dependencies on a few critical packages creates what researchers describe as a structural bottleneck. A single compromised or vulnerable component in these hubs could propagate outward rapidly, making the entire ecosystem susceptible to cascading failures. The findings underscore the need for targeted security hardening and monitoring strategies that prioritize the most heavily depended-upon packages rather than treating all components equally.

