Skip to content

Commit 6fc0d84

Browse files
petrsvihlikclaude
andauthored
chore(deps): Group transitive security pins into a dedicated section (#583)
Moves the MessagePack and Microsoft.OpenApi pins out of the production package list into their own labeled ItemGroup, so directly referenced packages and audit-driven transitive pins are visibly separate. The section header carries the shared mechanics (NU1903, removal policy); each entry's comment names the parent package and the first patched release to watch for. Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
1 parent 9d94665 commit 6fc0d84

1 file changed

Lines changed: 17 additions & 13 deletions

File tree

Directory.Packages.props

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<PropertyGroup>
33
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
44
<!-- Enables overriding a transitive dependency's version from a PackageVersion entry below.
5-
Required for the MessagePack and Microsoft.OpenApi security pins; remove together with
6-
those pins once they're no longer needed. -->
5+
Required only for the "Transitive security pins" section; remove together with its
6+
last entry. -->
77
<CentralPackageTransitivePinningEnabled>true</CentralPackageTransitivePinningEnabled>
88
</PropertyGroup>
99

@@ -43,18 +43,22 @@
4343
<!-- Aspire integration for the Redis lock provider opt-in. Only the AppHost needs it. -->
4444
<PackageVersion Include="Aspire.Hosting.Redis" Version="13.4.4" />
4545
<PackageVersion Include="Microsoft.Extensions.Http.Resilience" Version="10.7.0" />
46-
<!-- Security pin (not referenced directly). Aspire 13.4.3 pulls MessagePack 2.5.192
47-
transitively, which GHSA-hv8m-jj95-wg3x flags as a high-severity LZ4-decompression
48-
crash; 2.5.301 is the first patched 2.5.x release. NuGet audit + warnings-as-errors
49-
turns the advisory into a restore-breaking NU1903. Remove this (and the
50-
CentralPackageTransitivePinningEnabled property above) once Aspire ships a
51-
MessagePack >= 2.5.301 transitively. -->
46+
</ItemGroup>
47+
48+
<!--
49+
Transitive security pins — no project references these directly. Each entry force-upgrades
50+
a vulnerable transitive dependency that NuGet audit (with warnings-as-errors) would
51+
otherwise turn into a restore-breaking NU1903. Remove an entry once its parent package
52+
ships a patched version transitively; the entry's comment names the parent and the first
53+
patched release to watch for.
54+
-->
55+
<ItemGroup Label="Transitive security pins">
56+
<!-- Aspire pulls MessagePack 2.5.192, which GHSA-hv8m-jj95-wg3x flags as a high-severity
57+
LZ4-decompression crash; 2.5.301 is the first patched 2.5.x release. -->
5258
<PackageVersion Include="MessagePack" Version="2.5.301" />
53-
<!-- Security pin (not referenced directly). Microsoft.AspNetCore.OpenApi pulls
54-
Microsoft.OpenApi 2.0.0 transitively, which GHSA-v5pm-xwqc-g5wc flags as a
55-
high-severity stack overflow when parsing circular schema references; 2.7.5 is the
56-
first patched 2.x release. Remove once Microsoft.AspNetCore.OpenApi ships
57-
Microsoft.OpenApi >= 2.7.5 transitively. -->
59+
<!-- Microsoft.AspNetCore.OpenApi pulls Microsoft.OpenApi 2.0.0, which GHSA-v5pm-xwqc-g5wc
60+
flags as a high-severity stack overflow on circular schema references; 2.7.5 is the
61+
first patched 2.x release. -->
5862
<PackageVersion Include="Microsoft.OpenApi" Version="2.7.5" />
5963
</ItemGroup>
6064

0 commit comments

Comments
 (0)