When running for example corepack prepare pnpm@latest --activate the corepack will apparently install the latest tag even if it was created just minutes ago. In case the package manager is compromised and a malicious version of it is published, corepack users might get it installed if their timing is unlucky.
Would it make sense for corepack to support something like minReleaseAge to give security researchers time to detect compromised versions?
When running for example
corepack prepare pnpm@latest --activatethe corepack will apparently install the latest tag even if it was created just minutes ago. In case the package manager is compromised and a malicious version of it is published, corepack users might get it installed if their timing is unlucky.Would it make sense for corepack to support something like minReleaseAge to give security researchers time to detect compromised versions?