Of course the side effect is that now it's much harder to pull packages for legitimate reasons :/
Of course the side effect is that now it's much harder to pull packages for legitimate reasons :/
Give a publisher a way to tag a version as malicious and then in those hours between the exploit being noticed and the package being removed anyone who tries to install gets a message about that version being quarantined and asking whether they want to proceed.
It's not a perfect solution, but I think it's better than just waiting for NPM to take action without opening the door up to another left pad situation.
It should be that within the first X hours you can pull a version regardless of dependants, after that you should need approval.
That said, once unpublished the version should be permanently unavailable to prevent publishing over known good versions.
isn't that pretty great?
Because now you have learnt that you can't trust them