Most malicious package releases in 2026 had something in common: they were found and removed fast. The hijacked axios@1.14.1 was on npm for about three hours. The two bad litellm releases in March were quarantined the same day, and 1.107.0 in October was pulled within hours too. The damage came from the machines that installed those versions in the short window between publish and removal.

A dependency cooldown closes that window. You tell your package manager or update bot: do not install, or do not propose, any version younger than N days. Attackers rarely survive community scrutiny for days, so a modest delay turns many supply-chain incidents into non-events for you.

This post collects the exact settings for each ecosystem we use, and the policy decisions around them.

What a cooldown does and does not do

It does:

  • Skip versions published inside the window, choosing the newest version that is old enough.

  • Give scanners, maintainers and registries time to spot and remove a bad release.

  • Make upgrades predictable: what CI resolves today is what it resolved yesterday, unless a release has aged into the window.

It does not:

  • Protect against a malicious version that stays undetected longer than your window.

  • Protect against a compromised version you already installed and locked.

  • Replace lockfiles, hash checks, or disabling install scripts. It is one layer.

Settings per ecosystem

npm

npm 11.10 added min-release-age, measured in days. It is off by default.

# .npmrc
min-release-age=3

The npm docs describe it as a complement to before, which takes an exact date. If both are set in the same config source, before wins. One detail worth knowing: when the window blocks npm audit fix from installing a patched version, npm keeps the vulnerable version, prints a warning and exits non-zero. That is the right default, but your CI needs to expect it.

To bypass it for a single install:

npm install some-package@1.2.4 --min-release-age=0

pnpm

pnpm's setting is minimumReleaseAge, in minutes, and the current docs list a default of 1440 (one day). Exemptions go in minimumReleaseAgeExclude, which accepts names, scopes and exact versions:

# pnpm-workspace.yaml
minimumReleaseAge: 4320        # 3 days
minimumReleaseAgeExclude:
  - '@our-org/*'
  - 'next@16.2.9'

Exempting your own scope is common: you publish those packages yourself and do not want to wait three days to consume them in another repository.

Bun

Bun uses install.minimumReleaseAge in bunfig.toml, in seconds, disabled by default:

[install]
minimumReleaseAge = 259200   # 3 days
minimumReleaseAgeExcludes = ["@our-org/ui"]

Yarn (Berry)

Yarn's setting is npmMinimalAgeGate, written as a duration, with npmPreapprovedPackages for exemptions:

# .yarnrc.yml
npmMinimalAgeGate: "3d"
npmPreapprovedPackages:
  - "@our-org/*"

uv (Python)

uv's exclude-newer takes either an RFC 3339 timestamp or a duration such as "7 days", "1 week" or ISO 8601 P7D. The date is compared against the upload time of each individual file. exclude-newer-package sets per-package values, and false exempts a package:

[tool.uv]
exclude-newer = "7 days"
exclude-newer-package = { our-internal-sdk = false }

A practical gotcha that came up in the uv tracker in 2026: with a relative value, the lockfile records the resolved cutoff, so two branches locked on different days can conflict on that line. Check your uv version's behaviour before rolling a relative window out to a busy monorepo.

Cargo (Rust)

Cargo's RFC 3923 adds a minimum publish age. On nightly it was available behind -Zmin-publish-age with the registry.global-min-publish-age key, and the tracking issue was closed by a stabilization PR. Check the release notes of your toolchain before relying on it on stable:

# .cargo/config.toml
[registry]
global-min-publish-age = "14 days"

Dependabot and Renovate

Bots that open update pull requests are the other half: even with a package manager cooldown, a bot can lock in a fresh version as soon as the window allows. Dependabot's cooldown option sets the delay per update type:

# .github/dependabot.yml
version: 2
updates:
  - package-ecosystem: "npm"
    directory: "/"
    schedule:
      interval: "daily"
    cooldown:
      default-days: 3
      semver-major-days: 14
      exclude:
        - "@our-org/*"

Dependabot documents that cooldown applies only to version updates, not security updates. Renovate has an equivalent minimumReleaseAge option.

Editor extensions

The same risk applies to IDE extensions, which run with your user rights and auto-update. A VS Code request for a minimumReleaseAge style setting for extensions collected hundreds of votes in 2026. Until your editor has one, turn off auto-update for extensions on machines with production access and review updates in batches.

Quick comparison

Tool

Setting

Unit

Exemptions

npm 11.10+

min-release-age

days

min-release-age-exclude

pnpm

minimumReleaseAge

minutes

minimumReleaseAgeExclude

Bun

install.minimumReleaseAge

seconds

install.minimumReleaseAgeExcludes

Yarn

npmMinimalAgeGate

duration

npmPreapprovedPackages

uv

exclude-newer

timestamp or duration

exclude-newer-package

Cargo

registry.global-min-publish-age

duration

planned

Dependabot

cooldown.default-days

days

cooldown.exclude

Three different units across JavaScript managers alone is a real source of mistakes. Write the intended number of days in a comment next to every value.

Choosing the window

We settled on three days for application dependencies and fourteen days for major version bumps. The reasoning:

  • Every 2026 hijack we tracked was removed in under a day.

  • Three days covers weekends, when fewer people are watching.

  • Fourteen days for majors gives time for ecosystem breakage reports, which is a stability benefit on top of security.

Longer windows reduce risk further but make you slower to receive bug fixes. Shorter than one day gives little protection.

The security patch problem

The obvious objection: a cooldown also delays the fix for a critical CVE. Our policy:

  1. Security updates from Dependabot are not delayed.

  2. For a manual urgent fix, a developer exempts one exact version, for example next@16.2.9 in minimumReleaseAgeExclude or --min-release-age=0 for one install.

  3. That version gets a human review of its diff against the previous release before merge: new dependencies, new install scripts, network calls in setup code.

  4. The exemption is removed in the next routine update.

An exemption by exact version, not by package name, matters. Exempting next entirely would let a hijacked future release through.

Rolling it out

  • Start with CI: set the cooldown in the repository config so every machine uses the same rule.

  • Add the bot cooldown in the same pull request, or bots will keep proposing fresh versions that installs then refuse.

  • Communicate the bypass procedure before someone needs it in an incident.

  • Watch for "no matching version" errors right after adding the setting: a dependency pinned to a very recent version needs either an exemption or a short wait.

Key takeaways

  • A cooldown of a few days would have skipped the axios and litellm hijacks entirely.

  • Every major package manager now has a setting, with different names and units.

  • Pair it with lockfiles, hash checks and disabled install scripts; it is one layer, not the fix.

  • Exempt urgent security fixes by exact version and review them by hand.

References