Skip to content

Commit 2a289c4

Browse files
committed
Bump packages flagged by NuGet audit.
Pin Newtonsoft.Json 13.0.4 and System.Security.Cryptography.Xml 10.0.12 over the vulnerable versions pulled in by ASP.NET and MSBuild. Replace SQLitePCLRaw.bundle_green 2.1.11 with bundle_e_sqlite3 3.0.5, which no longer depends on the unpatched native SQLite package.
1 parent 94579e0 commit 2a289c4

3 files changed

Lines changed: 11 additions & 3 deletions

File tree

‎src/Avatar.IntegrationTests/Avatar.IntegrationTests.csproj‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
<PackageReference Include="xunit.runner.visualstudio" />
2020

2121
<PackageReference Include="Superpower" />
22+
<PackageReference Include="Newtonsoft.Json" />
23+
<PackageReference Include="System.Security.Cryptography.Xml" />
2224
</ItemGroup>
2325

2426
<ItemGroup Label="Targets">

‎src/Avatar.UnitTests/Avatar.UnitTests.csproj‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@
3838

3939
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" />
4040
<PackageReference Include="Microsoft.CodeAnalysis.VisualBasic.Workspaces" />
41-
<PackageReference Include="SQLitePCLRaw.bundle_green" />
41+
<!-- net48 is AnyCPU; SQLite 3.53+ rejects that. macOS only runs net10.0. -->
42+
<PackageReference Include="SQLitePCLRaw.bundle_e_sqlite3" Condition="'$(TargetFramework)' != 'net48'" />
43+
<PackageReference Include="System.Security.Cryptography.Xml" />
4244

4345
<PackageReference Include="Superpower" />
4446
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" />

‎src/Directory.Packages.props‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,12 @@
3030
<PackageVersion Include="Microsoft.Bcl.AsyncInterfaces" Version="9.0.0" />
3131
<PackageVersion Include="Microsoft.Bcl.HashCode" Version="1.1.1" />
3232

33-
<!-- Unit tests need to pack this for tests to run on macOS, for example -->
34-
<PackageVersion Include="SQLitePCLRaw.bundle_green" Version="2.1.11" />
33+
<!-- Native SQLite for tests on macOS. 3.x drops the vulnerable SQLitePCLRaw.lib.e_sqlite3 package. -->
34+
<PackageVersion Include="SQLitePCLRaw.bundle_e_sqlite3" Version="3.0.5" />
35+
36+
<!-- Transitive pins so restore does not keep vulnerable versions. -->
37+
<PackageVersion Include="Newtonsoft.Json" Version="13.0.4" />
38+
<PackageVersion Include="System.Security.Cryptography.Xml" Version="10.0.12" />
3539
</ItemGroup>
3640

3741
<ItemGroup Label="Tests">

0 commit comments

Comments
 (0)