如何更新DOT Net Core中的子Nuget软件包
在使用 NetSparker 工具对 Web 应用程序进行笔测试期间。 4.3.0版本的System.Text.RegularExpressions存在安全漏洞。 解决办法是将nuget包更新到4.3.1版本。
该项目间接依赖于System.Text.RegularExpressions包。该项目正在使用版本 2.1.0 的 Microsoft.Data.SqlClient。即使我将其升级到 2.1.3,该包也不会将其子包 System.Text.RegularExpressions 升级到 4.3.1。默认情况下,Microsoft.Data.SqlClient 可接受的 System.Text.RegularExpressions nuget 包版本为 > =4.3.0。
需要有关如何仅升级子 nuget 包的帮助 System.Text.RegularExpressions 至版本 4.3.1
During pen testing of web application using the NetSparker Tool.
The System.Text.RegularExpressions of version of 4.3.0 was having security vulnerability.
The solution is to update the nuget package to 4.3.1 version.
The project is indirectly dependent on the System.Text.RegularExpressions package. That the project is using the Microsoft.Data.SqlClient of version 2.1.0. Even if I upgrade this to 2.1.3, this package is not upgrading its child package System.Text.RegularExpressions to 4.3.1. By default the acceptable nuget package version of System.Text.RegularExpressions for Microsoft.Data.SqlClient is >=4.3.0.
Need help on how to upgrade only the child nuget package
System.Text.RegularExpressions to version 4.3.1
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
因为我在子项目中有太多参考资料。我在父项目 System.Text.RegularExpressions & 中做了直接引用。 Microsoft.Data.SqlClient 指向 nuget 包的安全版本。
之后,所有子项目都引用了不安全版本的 System.Text.RegularExpressions & Microsoft.Data.SqlClient,开始采用父项目中提到的版本。
Since I had too many references in the child project. I did a direct reference in the parent project, System.Text.RegularExpressions & Microsoft.Data.SqlClient pointing to the secure version of the nuget package.
After, this all the child project which was referencing insecure version of System.Text.RegularExpressions & Microsoft.Data.SqlClient, started to take the version mentioned on the parent project.