npm's min-release-age setting delays installs of brand-new package versions to limit supply chain attack risk

A developer argues that setting a minimum release age in npm is a cheap security measure for JavaScript projects. The setting makes npm install only package versions that have been published for a set number of days, which avoids the window when malicious versions are live before registries or scanners remove them. The article notes that similar waiting periods exist in pnpm, Yarn, Bun, Dependabot and Renovate, and that GitHub previewed a package firewall with such a delay on October 20. It also warns that npm ci and installs using an existing lockfile skip the age check, so a lockfile check is needed in CI, and that urgent security fixes require a deliberate exception path.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in