Why people are talking about this

Datadog's 2026 State of Cloud Security report found that 60% of organisations run at least one dependency version released less than 24 hours earlier. These very new versions appear in 21% of cloud applications.

That leaves little time for anyone to spot a bad release. On 17 November, malicious versions of Microsoft's agent-framework were removed from PyPI within about 45 minutes of the first one being published. A one-day wait would have kept new installs away from both versions.

Settings for your package manager

We used three days in these examples. Choose a time that suits your team. Check the units, because npm uses days and pnpm uses minutes.

Tool Setting Default
npm 11.10+ min-release-age, in days Off
pnpm 10.16+ minimumReleaseAge, in minutes 1,440 minutes (1 day) since version 11
Yarn 4.10+ npmMinimalAgeGate, a duration 1 day since version 4.15
uv 0.9.17+ exclude-newer, a duration Off
pip 26.1+ --uploaded-prior-to, a duration in days Check your version's documentation

uv and pip also accept a fixed date. The table shows the first versions that accept a duration.

npm, in .npmrc:

Exampleini
min-release-age=3

pnpm, in pnpm-workspace.yaml (4,320 minutes is three days):

Exampleyaml
minimumReleaseAge: 4320

Yarn, in .yarnrc.yml:

Exampleyaml
npmMinimalAgeGate: "3d"

uv, in pyproject.toml:

Exampletoml
[tool.uv]
exclude-newer = "3 days"

pip, on the command line:

Examplebash
python -m pip install --uploaded-prior-to P3D -r requirements.txt

Older versions may ignore a setting they do not know. Use the same tool version on laptops and in CI, then test it with a package that was released today.

pnpm says its setting also covers indirect dependencies. If a package has no publish time, pnpm skips the check by default. You can change this with minimumReleaseAgeIgnoreMissingTime. This matters if your private package registry does not pass on publish times.

Settings for update bots

Dependabot has used a three-day wait for normal version updates on github.com since 14 July 2026. You can set it yourself in .github/dependabot.yml:

Exampleyaml
version: 2
updates:
  - package-ecosystem: "npm"
    directory: "/"
    schedule:
      interval: "weekly"
    cooldown:
      default-days: 3

Dependabot does not use this wait for security updates.

Renovate uses minimumReleaseAge, for example "3 days". It is off by default. Its handling of security updates can depend on both Renovate and your package manager. For example, Renovate 45 changed how security updates work with pnpm's age check. Read the notes for your version before you upgrade.

If your bot's wait is shorter than your package manager's, it may open pull requests that fail in CI. Try to use the same wait for both.

Plan for urgent fixes

A cooldown can also delay a good fix. Some serious flaws are attacked within a day or two, so decide how to handle urgent updates before you need one:

  1. Confirm that the advisory and the new version come from the real project.
  2. Review what changed.
  3. Allow only that package and version if your tool can do this. Avoid turning off the cooldown for everything.
  4. Test and release the update, then remove the exception.

pnpm can allow an exact version:

Exampleyaml
minimumReleaseAgeExclude:
  - "[email protected]"

npm has min-release-age-exclude since version 11.17, which matches package names. Be careful with broad rules, because an attacker could use the next release of an allowed package. If npm's cooldown blocks a fix, npm audit fix keeps the vulnerable version, shows a warning and exits with an error. Make sure CI does not hide that error.

What a cooldown does not do

  • It does not check if a package is safe. Malware can stay hidden for longer than your wait.
  • It only works if someone else finds the problem during that time.
  • It does not protect you from bad versions that are already in your lockfile.
  • It may not cover Git dependencies, direct downloads or packages copied into your code.

Use it with lockfiles, hash checks, SCA and limited CI permissions. SCA tells you about known problems. A cooldown gives people time to find new ones.

Find vulnerable dependencies

AquilaX SCA checks direct and indirect dependencies. Include your lockfiles for more complete results.

See dependency scanning →