NPM 审计未发现漏洞

时间:2021-04-19 12:44:05

标签: node.js npm npm-install npm-audit npm-ci

我有一个 CI 服务,它在每次构建时运行 npm audit 并通知是否存在高风险漏洞。奇怪的是,当我在本地运行 npm audit 时 CI 报告高漏洞时,它显示 found 0 vulnerabilities。它会在几天内找到问题...

例如,CI 报告:CVE-2020-7774: The npm package y18n before versions 3.2.2, 4.0.1, and 5.0.5 is vulnerable to Prototype Pollution.

但是在本地开发环境中:
no issues

CI 和本地都使用 Node 15.12.0 和 npm 7.6.3

为什么 npm audit 没有找到最新的问题?有没有办法强制更新它或什么?

npm --verbose audit 输出:

enter image description here

0 个答案:

没有答案