Skip to content

High-impact packages need stronger publish controls #9170

@vaibhavdagar

Description

@vaibhavdagar

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:

  1. Mandatory publish confirmation via 2FA for packages above a certain download threshold
  2. Cool-off periods before newly published versions become resolvable
  3. Postinstall scripts opt-in by default, not opt-out
  4. Recovery codes should not be able to change account email and trigger a publish in the same session without secondary confirmation
  5. OIDC-only publishing for high-impact packages , long-lived tokens should not be an option

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions