Why this, why now
- In the most recent Rust 1.100, Cargo gained a stable cooldown feature. The release notes describe it as "minimum publish age configurations, also known as dependency cooldowns": when configured, the resolver ignores versions published more recently than the window, unless they are already in Cargo.lock. This is the implementation of RFC 3923.
- With that, npm (min-release-age), pnpm (minimumReleaseAge), uv (exclude-newer) and Cargo (global-min-publish-age) all have a setting built on the same idea. LWN's survey counts at least ten different configuration names across tools.
- At the same time, pushback has appeared against cooldowns hardening into an "industry standard best practice". Cal Paterson argues that cooldowns free-ride on other people's suffering, and proposes registry-side upload queues instead. The argument is being fought out on HN and Lobsters.
- Today's focus is not a version announcement. It is what a personal "just wait" setting does and does not protect, and how to design around it as an implementer.
The problem
William Woodruff (2025-11-21) observed that most open-source supply-chain attacks share one shape:
- The attacker takes over a popular project (stolen credentials, or CI/CD flaws such as GitHub Actions "pwn requests").
- They publish a malicious change to PyPI, npm, GitHub Releases, etc. This is when the clock starts.
- Users pick it up through automatic updates or unpinned dependencies.
- Meanwhile, security vendors scan public registries for signs of compromise and report upstream.
- The upstream removes or disables the bad version.
- User-side remediation begins.
The key point: the gap between step 1 and step 2 can be weeks or months, while the gap from step 2 to step 5 is hours to days. The attacker's real window to do damage is short. In Woodruff's table, xz-utils was about 5 weeks, Kong Ingress Controller about 10 days, and tj-actions 3 days; the rest (Ultralytics 12 hours and 1 hour, chalk under 12 hours, Nx 4 hours, rspack 1 hour, num2words under 12 hours, web3.js 5 hours) were all within a day. Most are shorter than a week.
The conclusion is a cooldown: do not adopt a new version until N days after it is published. Woodruff points to roughly an 80-90% reduction in exposure, for a free, configuration-only measure. He also writes that it is not a panacea, and that supply-chain security is fundamentally a social trust problem.
How it works
The shared implementation model
A cooldown is one extra constraint on dependency resolution: the publish time.
- Every version has a publish time (in Cargo, the pubtime recorded in the index).
- The resolver removes from the candidates any version where "now minus publish time is less than the cooldown".