我们切换到了最新版本(21)的云-S4-SDK-管道。新特性可以工作,但是除了最新的依赖版本之外,我们还可以得到npm相关性审计错误。
调查结果摘要
• High Arbitrary File Overwrite vulnerability found in dependency "tar", see https://npmjs.com/advisories/803 for details.
• High Code Injection vulnerability found in dependency "js-yaml", see https://npmjs.com/advisories/813 for details.
• Moderate Regular Expression Denial of Service vulnerability found in dependency "mime", see https://npmjs.com/advisories/535 for details.
• Moderate Regular Expression Denial of Service vulnerability found in dependency "underscore.string", see https://npmjs.com/advisories/745 for details.
• Moderate Prototype Pollution vulnerability found in dependency "lodash", see https://npmjs.com/advisories/782 for details.
• Moderate Denial of Service vulnerability found in dependency "js-yaml", see https://npmjs.com/advisories/788 for details.你也有类似的问题吗?有可用的解决方案吗?
发布于 2019-07-03 07:05:46
从v20到v21的主要变化之一是,我们现在正在审核我们可以在项目中找到的所有package.json文件( whitesource扫描也是一样)。
我假设在您的项目中是这样的,因此会弹出新的审计结果。
我建议您在本地执行npm audit --fix,并在您的package.json目录中提交得到的包-lock.json。如果这也不能解决您的问题,最后的解决方案将是将那些npm审计问题标记为pipeline_config.yaml中的“已审计”,如所描述的这里。
https://stackoverflow.com/questions/56863507
复制相似问题