Skip to content

Pin Microsoft.OpenApi to 2.11.0 to fix NU1903 vulnerability - #21

Merged
kudima03 merged 1 commit into
mainfrom
fix/microsoft-openapi-vulnerability
Aug 5, 2026
Merged

Pin Microsoft.OpenApi to 2.11.0 to fix NU1903 vulnerability#21
kudima03 merged 1 commit into
mainfrom
fix/microsoft-openapi-vulnerability

Conversation

@kudima03

@kudima03 kudima03 commented Aug 5, 2026

Copy link
Copy Markdown
Owner

Summary

  • Microsoft.AspNetCore.OpenApi resolves its Microsoft.OpenApi dependency to the minimum-declared version (2.0.0), which is affected by GHSA-v5pm-xwqc-g5wc (high severity).
  • Adds an explicit Microsoft.OpenApi PackageReference pinned to 2.11.0 in both the main project and test project to force NuGet to resolve a patched version.

Test plan

  • dotnet build --no-restore -warnaserror — 0 warnings, 0 errors
  • dotnet test --no-build — 6/6 passed
  • dotnet format --verify-no-changes — clean

Microsoft.AspNetCore.OpenApi resolves Microsoft.OpenApi to its
minimum-declared version (2.0.0), which is affected by
GHSA-v5pm-xwqc-g5wc. Pinning it directly forces resolution to a
patched version.
@kudima03 kudima03 self-assigned this Aug 5, 2026
@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown

Code Coverage

Package Line Rate Branch Rate Complexity Health
Pure.RelationalSchema.Storage.Abstractions.OpenAPI.Schema 15% 4% 228
Summary 15% (68 / 445) 4% (8 / 214) 228

Minimum allowed line rate is 14%

@kudima03
kudima03 merged commit 930011f into main Aug 5, 2026
4 checks passed
@kudima03
kudima03 deleted the fix/microsoft-openapi-vulnerability branch August 5, 2026 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant