如何更新DOT Net Core中的子Nuget软件包

发布于 2025-01-20 11:05:30 字数 671 浏览 1 评论 0原文

在使用 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
enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

十年九夏 2025-01-27 11:05:30

因为我在子项目中有太多参考资料。我在父项目 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文