Sat*_*ats 5 c# nuget asp.net-web-api .net-core asp.net-core
在使用 NetSparker 工具对 Web 应用程序进行笔测试期间。4.3.0版本System.Text.RegularExpressions存在安全漏洞。解决办法是将nuget包更新到4.3.1版本。
该项目间接依赖于该System.Text.RegularExpressions包。该项目使用的是Microsoft.Data.SqlClient2.1.0版本。即使我将其升级到 2.1.3,该软件包也不会将其子软件包升级System.Text.RegularExpressions到 4.3.1。System.Text.RegularExpressions默认情况下可接受的for的 nuget 包版本Microsoft.Data.SqlClient是 >=4.3.0。
需要有关如何仅将子 nuget 包
System.Text.RegularExpressions升级到版本 4.3.1 的
帮助
因为我在子项目中有太多参考资料。我在父项目 System.Text.RegularExpressions 和 Microsoft.Data.SqlClient 中进行了直接引用,指向 nuget 包的安全版本。
之后,所有引用 System.Text.RegularExpressions 和 Microsoft.Data.SqlClient 的不安全版本的子项目开始采用父项目中提到的版本。
| 归档时间: |
|
| 查看次数: |
2698 次 |
| 最近记录: |