Skip to content

Bump Microsoft.OpenApi in affected samples#588

Merged
heyitsaamir merged 1 commit into
mainfrom
heyitsaamir-fix-openapi-vulnerability-restore
Jul 2, 2026
Merged

Bump Microsoft.OpenApi in affected samples#588
heyitsaamir merged 1 commit into
mainfrom
heyitsaamir-fix-openapi-vulnerability-restore

Conversation

@heyitsaamir

Copy link
Copy Markdown
Collaborator

Summary

  • Add direct Microsoft.OpenApi 2.7.5 references to Samples/Deprecated.Controllers and Samples/Samples.Dialogs
  • Keep existing Microsoft.AspNetCore.OpenApi versions unchanged
  • Limit dependency changes to the projects restoring vulnerable Microsoft.OpenApi 2.0.0

Validation

  • dotnet restore Samples/Deprecated.Controllers/Deprecated.Controllers.csproj --no-cache --force-evaluate -v minimal
  • dotnet restore Samples/Samples.Dialogs/Samples.Dialogs.csproj --no-cache --force-evaluate -v minimal
  • dotnet build Samples/Deprecated.Controllers/Deprecated.Controllers.csproj --no-restore -v minimal
  • dotnet build Samples/Samples.Dialogs/Samples.Dialogs.csproj --no-restore -v minimal

Add direct Microsoft.OpenApi 2.7.5 references to samples whose Microsoft.AspNetCore.OpenApi dependency restores vulnerable Microsoft.OpenApi 2.0.0.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings July 2, 2026 23:28

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses a vulnerable transitive restore of Microsoft.OpenApi by adding an explicit, non-vulnerable Microsoft.OpenApi package reference to the two affected sample projects, while intentionally keeping existing Microsoft.AspNetCore.OpenApi versions unchanged.

Changes:

  • Add PackageReference to Microsoft.OpenApi version 2.7.5 in Samples/Samples.Dialogs.
  • Add PackageReference to Microsoft.OpenApi version 2.7.5 in Samples/Deprecated.Controllers.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
Samples/Samples.Dialogs/Samples.Dialogs.csproj Adds a direct Microsoft.OpenApi 2.7.5 reference to override vulnerable transitive resolution.
Samples/Deprecated.Controllers/Deprecated.Controllers.csproj Adds a direct Microsoft.OpenApi 2.7.5 reference to override vulnerable transitive resolution.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@heyitsaamir heyitsaamir added this pull request to the merge queue Jul 2, 2026
Merged via the queue into main with commit 20df979 Jul 2, 2026
8 checks passed
@heyitsaamir heyitsaamir deleted the heyitsaamir-fix-openapi-vulnerability-restore branch July 2, 2026 23:39
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.

3 participants