GitHub Tightens npm Publishing After Flaw Left 1,500+ Packages Vulnerable to Hijacking
GitHub expires unused npm trusted-publisher configs after 48 hours following a slug-reuse flaw affecting 1,500-plus packages.
Bloom Security told GitHub on June 6, 2026, that npm trusted publishing anchored trust to a repository slug rather than GitHub's immutable repository ID until the first successful publish. An attacker who reclaimed a freed slug could exchange a GitHub Actions OIDC token for a short-lived credential and publish a malicious version of a package they did not own, an issue dubbed SlugFest. Researchers found more than 1,500 exposed packages with over 10 million collective downloads. GitHub now expires unvalidated trusted-publisher configurations after 48 hours and rejects tokens from issue_comment events.
- Trusted publishing matched a repository slug, not GitHub's immutable repository ID, until first publish.
- Reclaiming a renamed, transferred, or deleted slug could yield a publish token.
- More than 1,500 packages, over 10 million downloads, were exposed.
- GitHub expires unvalidated configs after 48 hours and blocks issue_comment tokens.
- Products
- npm
- Organizations
- Bloom SecurityGitHub
From the original article
5 min read at thehackernews.com
GitHub has taken the step of expiring unvalidated npm trusted publishing configurations 48 hours after creation after researchers found that it was possible for an attacker to push new versions of a different user's package without having to steal their credentials. "Your configuration becomes validated and exempt from expiry after its first successful publish," the Microsoft-owned subsidiary
thehackernews.com
A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.