AI coding agents amplify npm supply-chain risk, Bloom Security finds
Bloom Security's SlugFest research identified more than 1,500 npm packages, with over 10 million combined downloads, vulnerable to a publishing attack involving GitHub repository addresses. The flaw stemmed from npm Trusted Publishing initially binding trust to a repository's human-readable slug rather than its immutable identifier, so old addresses could be reclaimed after renames, transfers or deletions. Bloom also reported that AI agents install about 70 packages a month on a typical endpoint and close to 350 on developer machines, and said npm has implemented and confirmed a fix.
The research shows how automated AI-driven package installation can magnify the consequences of a broken publishing trust relationship, and npm has since remediated the issue.

AI coding tools are changing how developers obtain and use software. But the growing volume of automated package installations is creating new challenges for enterprise security teams. A vulnerability uncovered by Bloom Security demonstrates how weaknesses in software publishing infrastructure can intersect with these automated workflows. It could potentially expose organizations to malicious code without requiring attackers to steal credentials.
The research, named SlugFest, identified more than 1,500 npm packages vulnerable to a publishing attack involving GitHub repository addresses. Together, the packages had accumulated more than 10 million downloads.