npm enforces staged package publishing with 2FA approval and install source controls
Updated:
· First: 23.05.2026 19:35
· 📰 1 src / 1 articles
npm introduced staged publishing requiring maintainers to approve package releases via two-factor authentication (2FA) before they become publicly available, providing proof of presence for every publish including CI/CD and OIDC workflows. Additionally, npm added three new install source flags (--allow-file, --allow-remote, --allow-directory) to explicitly control non-registry install sources, replacing the single -allow-git flag. These measures target ongoing supply chain attack campaigns, such as those attributed to TeamPCP, which have escalated in open-source ecosystems.