logoalt Hacker News

no-name-heretoday at 11:38 AM1 replyview on HN

Wouldn't just having devs pin/not upgrade packages accomplish about as much, have the added benefit that if a package is discovered malicious it would be removed from npm but if already vendored you’d still have the vulnerability on your vendored copy, and pinning versions seems like it would be more likely for devs to do than vendoring?


Replies

cjtoday at 1:44 PM

Pinning the version also avoids the risk of accidentally introducing new vulnerabilities while reimplementing the package yourself.