-
Notifications
You must be signed in to change notification settings - Fork 4.3k
High-impact packages need stronger publish controls #9170
Copy link
Copy link
Open
Description
The axios supply chain attack on March 31, 2026 exposed a fundamental gap in how npm handles publishing for high-impact packages. A single compromised account was enough to push malicious code to 100M+ weekly downloads with zero friction and zero delay.
We'd like NPM to formally consider the following:
- Mandatory publish confirmation via 2FA for packages above a certain download threshold
- Cool-off periods before newly published versions become resolvable
- Postinstall scripts opt-in by default, not opt-out
- Recovery codes should not be able to change account email and trigger a publish in the same session without secondary confirmation
- OIDC-only publishing for high-impact packages , long-lived tokens should not be an option
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels