安全漏洞是否会威胁我应用在生产环境中使用的依赖项?

huangapple go评论72阅读模式
英文:

Can security vulnerabilities for testing dependencies threaten my app in production?

问题

我正在开发一个React应用程序。运行 npm audit 发现该应用存在相当多的高级安全漏洞。

其中大部分来自于 jest,这是一个用于React的测试框架。我们需要升级这个包的几个主要版本以解决这些漏洞。

我不知道解决这些漏洞有多紧迫。如果 jest 是一个测试框架,它是否会在生产环境中暴露我的应用程序面临威胁?测试依赖项的漏洞是否可能威胁到我的应用程序在生产环境中运行?

任何建议都将不胜感激!谢谢!

英文:

I'm working on a React application. Running npm audit revealed the app has quite a few high-level security vulnerabilities.

Most of them are coming from jest, a testing framework for React. We'll need to upgrade the package by a few major versions to resolve the vulnerabilities.

I don't know how pressing it is to resolve these vulnerabilities. If jest is a testing framework, could it expose my app to threats in production? Can vulnerabilities for testing dependencies threaten to my app in production?

Any advice would be appreciated! Thank you!

答案1

得分: 0

如果您不在生产环境中部署测试代码/框架,那么您没有问题。

英文:

If you don't deploy the testing code/framework in production, you are fine.

huangapple
  • 本文由 发表于 2020年1月6日 22:53:53
  • 转载请务必保留本文链接:https://go.coder-hub.com/59614207.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定