【问题标题】:How do I fix the security vulnerabilites in my Gatsby Dev Blog?如何修复 Gatsby 开发博客中的安全漏洞?
【发布时间】:2020-08-16 17:16:58
【问题描述】:

我有一个开发博客,我看到 14 个安全警报,其中一些具有高严重性、严重严重性和中等严重性。

所以,我运行npm audit 来查看问题,它给了我this

found 1403 vulnerabilities (792 low, 17 moderate, 592 high, 2 critical) in 27197 scanned packages
  run `npm audit fix` to fix 1392 of them.
  11 vulnerabilities require manual review. See the full report for details.

那么,我该怎么办,npm audit fix?你如何处理这个问题?

例如,在报告中,我有这样的内容:

  Low             Validation Bypass                                             

  Package         kind-of                                                       

  Dependency of   gatsby-source-filesystem                                      

  Path            gatsby-source-filesystem > chokidar > readdirp > micromatch   
                  > kind-of                                                     

  More info       https://npmjs.com/advisories/1490

现在,我该如何解决这个问题?

【问题讨论】:

    标签: github npm dependencies gatsby npm-audit


    【解决方案1】:

    您可以按照帮助文档中的说明解决安全漏洞。 https://help.github.com/en/github/managing-security-vulnerabilities/about-security-alerts-for-vulnerable-dependencies#investigating-and-resolving-a-vulnerability-in-a-dependency 将修复(或任何更改)合并到默认分支(无论该分支在您的存储库中命名为什么)后,GitHub 将安排对您项目的依赖项进行新的扫描。发生这种情况后,漏洞警报应该会消失。检查的分支集是不可配置的。

    【讨论】:

      猜你喜欢
      • 2016-08-27
      • 2012-06-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-12-28
      • 1970-01-01
      • 1970-01-01
      • 2013-11-20
      相关资源
      最近更新 更多