maxmoore14
maxmoore14

Reputation: 877

How to resolve NuGet Transitive Packages with vulnerabilities

I have a project that requires the System.ServiceModel.Http NuGet package.

That particular package references 6 other packages transitively.

One of the transitive packages has an identified vulnerability (System.Security.Cryptography.Pkcs).

I know I can promote the package to Top-level and then control the version. But my question is, is there any way to update the version of the transitive package without promoting it?

screenshot

The scenario I am trying to avoid is:

Upvotes: 12

Views: 3353

Answers (1)

Amine Nafkha
Amine Nafkha

Reputation: 19

Directly Update Transitive Dependency:

Since you've identified that the vulnerability lies in the transitive package System.Security.Cryptography.Pkcs, you can directly update its version to a fixed version that doesn't have the vulnerability.

Upvotes: -1

Related Questions