Developers Can Make Coding Agents Wait 7 Days Before Installing New Packages

Supply-chain attacks on npm packages often remain live for only hours, so a freshly published malicious version can be pulled by a coding agent before anyone reviews it. The article recommends a release-age gate, or cooldown, that refuses package versions younger than a set number of days. Package managers npm, pnpm, Yarn, Bun and uv each support such a setting, but they use different keys and units, so a wrong unit can make the gate ineffective or absurdly long. The npm setting requires version 11.10.0 or later, and older versions silently ignore it, so developers should verify their installed version. Developers can also exempt packages from the gate, though only for scopes they control on the public registry.
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