Skip to content

Commit 012135b

Browse files
committed
fix: Prevent processing of vulnerabilities already mitigated in other packages.
1 parent 3703397 commit 012135b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

audit-filter.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ child.exec(auditCommand, (error, stdout, stderr) => {
5757
let moduleMitigations = mitigations[module];
5858
for (let i = 0; i < vulns.length; i++) {
5959
let key = (typeof vulns[i] === 'string') ? vulns[i] : vulns[i].url;
60-
if (key) {
60+
// We are not interested in vulns that are due to vulns in other packages we already know about
61+
if (key && !mitigations[key]) {
6162
if (!moduleMitigations) {
6263
logAndAlert(`Need to look at new ${module} vuln: ${key} ${vulns[i].title || ''}`);
6364
} else {

0 commit comments

Comments
 (0)