chore(deps): pin Microsoft.OpenApi to 2.7.5 (GHSA-v5pm-xwqc-g5wc)#113
Merged
Conversation
Microsoft.AspNetCore.OpenApi 10.0.x floats Microsoft.OpenApi at [2.0.0, ), which resolves to 2.0.0 — flagged High by the CI NuGet audit since the advisory published (circular schema references may terminate OpenAPI parsing). Both 10.0.8 and 10.0.9 carry the same open range, so bumping the parent doesn't help; pin the transitive directly to the patched 2.7.5 via a direct reference from Modgud.Api (nearest-wins lifts the whole graph). Unblocks CI for every open PR; develop itself was last green before the advisory landed. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The CI step "Audit NuGet dependencies for known CVEs" fails on every PR since GHSA-v5pm-xwqc-g5wc published:
Microsoft.AspNetCore.OpenApi(10.0.8 and 10.0.9) floatsMicrosoft.OpenApiat[2.0.0, ), which NuGet resolves to the vulnerable 2.0.0 (High — circular schema references may terminate OpenAPI parsing).developwas last green on Jul 1, before the advisory landed — any run today fails identically, including on #112.Fix
Pin the transitive to the patched 2.7.5 (same 2.x line, first patched version per the advisory) via a direct
PackageReferenceinModgud.Api— nearest-wins lifts the resolved version for the whole graph (Api, Api.Tests, Tests.Unit). Comment inDirectory.Packages.propsdocuments when the pin can be dropped (once AspNetCore.OpenApi requires >= 2.7.5).Verified locally
dotnet list package --vulnerable --include-transitive(the exact CI audit): cleanUnblocks CI for #112 and all future PRs.
🤖 Generated with Claude Code