Skip to content

Commit 05cdfe5

Browse files
Update dependecies getting flagged for vulnerabilities. (#115)
1 parent 02e16b7 commit 05cdfe5

5 files changed

Lines changed: 25 additions & 7 deletions

File tree

src/CosmosDBSessionStateProviderAsync/Microsoft.AspNet.SessionState.CosmosDBSessionStateProviderAsync.csproj

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,28 @@
9090
</ItemGroup>
9191
<ItemGroup>
9292
<PackageReference Include="Microsoft.Azure.Cosmos">
93-
<Version>3.23.0</Version>
93+
<Version>3.46.1</Version>
94+
</PackageReference>
95+
<!--
96+
We do NOT depend directly on JSON.Net - MS.Azure.Cosmos does.
97+
Current versions still have not moved fully to Sys.Text.Json. :/
98+
This direct reference forces a currently not-vulnerable JSON.Net,
99+
since MS.Azure.Cosmos isn't doing this for us. :/
100+
Also NOTE: We do not currently include JSON.Net as a dependency
101+
in our own nuspec, since we don't directly depend on it. This
102+
is the same confusing approach MS.Azure.Cosmos has taken. It
103+
is left up to consumers to take a similar approach as we have
104+
here - or to force an updated reference to a newwer MS.Azure.Cosmos
105+
when a version of that package is released with no JSON.Net
106+
dependency. (They currently have an msbuild error included in
107+
their package to check for JSON.Net and make noise if missing.
108+
https://github.com/Azure/azure-cosmos-dotnet-v3/issues/4900#issuecomment-2616909747)
109+
-->
110+
<PackageReference Include="Newtonsoft.Json">
111+
<Version>13.0.1</Version>
94112
</PackageReference>
95113
<PackageReference Include="System.Text.Json">
96-
<Version>7.0.0</Version>
114+
<Version>8.0.5</Version>
97115
</PackageReference>
98116
</ItemGroup>
99117
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />

src/SqlSessionStateProviderAsync/Microsoft.AspNet.SessionState.SqlSessionStateProviderAsync.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
</ItemGroup>
9494
<ItemGroup>
9595
<PackageReference Include="Microsoft.Data.SqlClient">
96-
<Version>5.0.0</Version>
96+
<Version>5.1.6</Version>
9797
</PackageReference>
9898
</ItemGroup>
9999
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />

test/Microsoft.AspNet.SessionState.CosmosDBSessionStateProviderAsync.Test/Microsoft.AspNet.SessionState.CosmosDBSessionStateProviderAsync.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
<Version>4.7.137</Version>
9898
</PackageReference>
9999
<PackageReference Include="System.Text.Json">
100-
<Version>7.0.0</Version>
100+
<Version>8.0.5</Version>
101101
</PackageReference>
102102
<PackageReference Include="xunit">
103103
<Version>2.4.2</Version>

tools/CosmosDBSessionStateProviderAsync.settings.targets

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99

1010
<PropertyGroup Label="NuGet package dependencies">
1111
<SessionStateModuleNuGetPackageVersion>2.0.0</SessionStateModuleNuGetPackageVersion>
12-
<CosmosNuGetPackageVersion>3.23.0</CosmosNuGetPackageVersion>
13-
<SystemTextJsonPackageVersion>7.0.0</SystemTextJsonPackageVersion>
12+
<CosmosNuGetPackageVersion>3.46.1</CosmosNuGetPackageVersion>
13+
<SystemTextJsonPackageVersion>8.0.5</SystemTextJsonPackageVersion>
1414
</PropertyGroup>
1515

1616
<Import Project="MicrosoftAspNetSessionState.settings.targets" />

tools/SqlSessionStateProviderAsync.settings.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
<PropertyGroup Label="NuGet package dependencies">
1111
<SessionStateModuleNuGetPackageVersion>2.0.0</SessionStateModuleNuGetPackageVersion>
12-
<MicrosoftDataSqlClientPackageVersion>5.0.0</MicrosoftDataSqlClientPackageVersion>
12+
<MicrosoftDataSqlClientPackageVersion>5.1.6</MicrosoftDataSqlClientPackageVersion>
1313
</PropertyGroup>
1414

1515
<Import Project="MicrosoftAspNetSessionState.settings.targets" />

0 commit comments

Comments
 (0)