when is the Newtonsoft v10.0.2 going to be updated in Microsoft.Azure.Cosmos v3.42. this version of newtonsoft has security vulnerablities

Scott F 0 Reputation points
2024-08-23T17:34:09.5333333+00:00

it's simple:

when is the Newtonsoft v10.0.2 going to be updated in Microsoft.Azure.Cosmos v3.42. this version of newtonsoft has security vulnerablities and i cannot find any information on when this Newtonsoft vulnerability will be addressed?

https://www.nuget.org/packages/Microsoft.Azure.Cosmos#dependencies-body-tab
https://www.nuget.org/packages/Newtonsoft.Json/10.0.2

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,612 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Bruce (SqlWork.com) 64,161 Reputation points
    2024-08-23T17:44:57.3666667+00:00

    the cosmos nuget package only specifies the minimum required version of newtonsoft. in you actual application that uses the cosmos db package, can explicitly use a later version of newtonsoft. if the newtonsoft is an implicit dependency, then just add a package reference to newtonsoft which is the version you want.

    note: this is true of most nuget packages. they just specify a min version. in your build you specify the actual version. you might be interested in this approach to handling implicit dependencies.

    https://video2.skills-academy.com/en-us/nuget/consume-packages/central-package-management

    0 comments No comments

  2. Michael Taylor 53,726 Reputation points
    2024-08-23T18:01:59.04+00:00

    This is a question for that team. You can get to their support section here.

    In the interim you can take an explicit dependency on Newtonsoft and update it to a non-vulnerable version. This is how you work around these kinds of issues until package developers update their code. In Visual Studio you can do this easily by going to the project that is impacted, select the installed packages and then the option to show vulnerabilities. Transient dependencies are listed as well so you can select the vulnerable dependency and update it to a newer version. This resolves the issue but does add an explicit dependency that you'll need to remove at some point in the future.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.