|
|
|
|
|
by cphoover
1814 days ago
|
|
> Because as the package owner I _do_ have that context. I understand there may be significant issues with this approach though! But what if one of your contributors slips in a merge that uses the vulnerable code path of your dependency... Does this "not affected" marker still exist, and now you have vulnerable code? Does it disappear with each version? What if someone maliciously adds a "not affected" marker? To a package they intend to exploit? Edit: Again why the heck am I being downvoted? |
|
If your threat model is a contributor submitting malicious code, your problem is not something npm audit will help with either way.
If a malicious actor is able to add the "not affected" marker, you have bigger problems.
The threat model you're talking about neither seems realistic, nor like something npm audit can help with. The attack vector of a contributor sneaking in malicious code is dealt with by only giving the commit bit to trusted people, and reviewing code yourself.