首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Got允许重定向到UNIX套接字

Got允许重定向到UNIX套接字
EN

Stack Overflow用户
提问于 2022-07-01 11:41:41
回答 2查看 1.4K关注 0票数 -1
代码语言:javascript
复制
# npm audit report

got  <11.8.5
Severity: moderate
Got allows a redirect to a UNIX socket - https://github.com/advisories/GHSA-pfrx-2q88-qq97
fix available via `npm audit fix --force`
Will install nodemon@1.3.3, which is a breaking change
node_modules/got
  package-json  <=6.5.0
  Depends on vulnerable versions of got
  node_modules/package-json
    latest-version  0.2.0 - 5.1.0
    Depends on vulnerable versions of package-json
    node_modules/latest-version
      update-notifier  0.2.0 - 5.1.0
      Depends on vulnerable versions of latest-version
      node_modules/update-notifier
        nodemon  >=1.3.5
        Depends on vulnerable versions of update-notifier
        node_modules/nodemon
EN

回答 2

Stack Overflow用户

发布于 2022-07-19 14:21:01

编辑package.json应该可以做到这一点:

  1. For NPM users

“重写”:{ "got":"^12.1.0“}

  1. For users

“解决方案”:{ "got":"^12.1.0“}

票数 1
EN

Stack Overflow用户

发布于 2022-10-11 03:07:54

从咨询- https://github.com/advisories/GHSA-pfrx-2q88-qq97,这可能会给你一个更完整的回应。

代码语言:javascript
复制
"overrides": {
    "got@<11.8.5": "11.8.5",
    "got@>=12.0.0 <12.1.0 ": "^12.1.0"
}
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/72828734

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档