Skip to content

Commit

Permalink
Update host dependencies past transitive security vulnerabilities
Browse files Browse the repository at this point in the history
- Update Serilog to 8.0.2. This is needed for a transitive update for System.Text.Json.
- Pin versions of Azure.Identity (1.11.4), System.Formats.Asn1 (8.0.1), and Microsoft.Data.SqlClient (5.1.6). These are depended on by EF and Sql client packages, and there's no update to those packages available that wouldn't give us a vulnerable version. Hopefully someday those packages will update such that this is no longer needed.
  • Loading branch information
josephdecock committed Sep 18, 2024
1 parent d56da6c commit 043bd4c
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 1 deletion.
13 changes: 12 additions & 1 deletion Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
<PackageReference Update="Microsoft.IdentityModel.JsonWebTokens" Version="$(WilsonVersion)"/>
<PackageReference Update="Microsoft.IdentityModel.Protocols.OpenIdConnect" Version="$(WilsonVersion)"/>
<PackageReference Update="System.IdentityModel.Tokens.Jwt" Version="$(WilsonVersion)"/>
<PackageReference Update="Serilog.AspNetCore" Version="8.0.0"/>
<PackageReference Update="Serilog.AspNetCore" Version="8.0.2"/>

<!--microsoft asp.net core -->
<PackageReference Update="Microsoft.AspNetCore.DataProtection.Abstractions" Version="$(FrameworkVersion)"/>
Expand Down Expand Up @@ -70,6 +70,17 @@
<PackageReference Update="OpenTelemetry.Instrumentation.Http" Version="1.8.1" />
<PackageReference Update="OpenTelemetry.Instrumentation.SqlClient" Version="1.8.0-beta.1" />

<!-- Transitive Dependencies -->
<!-- These packages are all transitive dependencies that would
otherwise resolve to a version with a security vulnerabilitiy. In future, we
would like to update Microsoft.Data.SqlClient and
Microsoft.EntityFrameworkCore, and remove these explicit dependencies (assuming
that future versions of the intermediate dependencies that don't have this
problem exist someday). -->
<PackageReference Update="Azure.Identity" Version="1.11.4" />
<PackageReference Update="System.Formats.Asn1" Version="8.0.1" />
<PackageReference Update="Microsoft.Data.SqlClient" Version="5.1.6" />

</ItemGroup>

<Target Name="SetAssemblyVersion" AfterTargets="MinVer">
Expand Down
12 changes: 12 additions & 0 deletions hosts/AspNetIdentity/Host.AspNetIdentity.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,18 @@
<PackageReference Include="OpenTelemetry.Instrumentation.SqlClient" />
</ItemGroup>

<ItemGroup>
<!-- The packages in this ItemGroup are all transitive dependencies that
would otherwise resolve to a version with a security vulnerabilitiy.
In future, we would like to update Microsoft.Data.SqlClient and
Microsoft.EntityFrameworkCore, and remove these explicit dependencies
(assuming that future versions of the intermediate dependencies that
don't have this problem exist someday). -->
<PackageReference Include="Azure.Identity" />
<PackageReference Include="System.Formats.Asn1" />
<PackageReference Include="Microsoft.Data.SqlClient" />
</ItemGroup>

<ItemGroup>
<ProjectReference
Include="..\..\src\AspNetIdentity\Duende.IdentityServer.AspNetIdentity.csproj" />
Expand Down
12 changes: 12 additions & 0 deletions hosts/Configuration/Host.Configuration.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,18 @@

</ItemGroup>

<ItemGroup>
<!-- The packages in this ItemGroup are all transitive dependencies that
would otherwise resolve to a version with a security vulnerabilitiy.
In future, we would like to update Microsoft.Data.SqlClient and
Microsoft.EntityFrameworkCore, and remove these explicit dependencies
(assuming that future versions of the intermediate dependencies that
don't have this problem exist someday). -->
<PackageReference Include="Azure.Identity" />
<PackageReference Include="System.Formats.Asn1" />
<PackageReference Include="Microsoft.Data.SqlClient" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\src\IdentityServer\Duende.IdentityServer.csproj" />
<ProjectReference Include="..\..\src\Configuration\Duende.IdentityServer.Configuration.csproj" />
Expand Down
12 changes: 12 additions & 0 deletions hosts/EntityFramework/Host.EntityFramework.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,18 @@
<PackageReference Include="OpenTelemetry.Instrumentation.SqlClient" />
</ItemGroup>

<ItemGroup>
<!-- The packages in this ItemGroup are all transitive dependencies that
would otherwise resolve to a version with a security vulnerabilitiy.
In future, we would like to update Microsoft.Data.SqlClient and
Microsoft.EntityFrameworkCore, and remove these explicit dependencies
(assuming that future versions of the intermediate dependencies that
don't have this problem exist someday). -->
<PackageReference Include="Azure.Identity" />
<PackageReference Include="System.Formats.Asn1" />
<PackageReference Include="Microsoft.Data.SqlClient" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\src\Configuration\Duende.IdentityServer.Configuration.csproj" />
<ProjectReference Include="..\..\src\Configuration.EntityFramework\Duende.IdentityServer.Configuration.EntityFramework.csproj" />
Expand Down

0 comments on commit 043bd4c

Please sign in to comment.