Update Kiota packages to fix NU1903 vulnerability#13966
Merged
SergeyMenshykh merged 3 commits intomicrosoft:mainfrom May 7, 2026
Merged
Update Kiota packages to fix NU1903 vulnerability#13966SergeyMenshykh merged 3 commits intomicrosoft:mainfrom
SergeyMenshykh merged 3 commits intomicrosoft:mainfrom
Conversation
…59-v9qr-6fq9) Update Kiota packages from 1.21.x to 1.22.2 to resolve NU1903 errors caused by transitive dependency on vulnerable Microsoft.Kiota.Abstractions versions (<1.22.0). The vulnerability involves sensitive HTTP headers leaking on cross-host redirects. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the .NET Kiota package versions to remediate a high-severity vulnerability in the transitive dependency Microsoft.Kiota.Abstractions (GHSA-7j59-v9qr-6fq9), preventing sensitive HTTP headers from leaking across cross-host redirects.
Changes:
- Bumped Kiota packages to
1.22.2via central package management (Directory.Packages.props). - Updated the BookingRestaurant demo’s Kiota package version overrides to
1.22.2.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| dotnet/Directory.Packages.props | Updates centrally managed Kiota package versions to 1.22.2 to pick up the patched Kiota.Abstractions. |
| dotnet/samples/Demos/BookingRestaurant/BookingRestaurant.csproj | Updates the demo project’s Kiota package references to 1.22.2 to avoid vulnerable transitive pins from Microsoft.Graph. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
westey-m
approved these changes
May 7, 2026
rogerbarreto
approved these changes
May 7, 2026
…tions Update packages to resolve NU1903 vulnerability in Microsoft.Kiota.Abstractions: - Microsoft.Graph: 5.94.0 -> 5.105.0 - Add Microsoft.Graph.Core 3.2.6 (pins transitive Kiota deps to >= 1.22.1) - Add Microsoft.Kiota.Abstractions 1.22.2 - Microsoft.IdentityModel.JsonWebTokens: 8.15.0 -> 8.16.0 - System.IdentityModel.Tokens.Jwt: 8.15.0 -> 8.16.0 - Add direct Microsoft.Graph.Core reference in Plugins.MsGraph.csproj Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
rogerbarreto
approved these changes
May 7, 2026
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.
Problem
NuGet audit reports NU1903 for
Microsoft.Kiota.Abstractions< 1.22.0 (GHSA-7j59-v9qr-6fq9) — the KiotaRedirectHandlerleaksCookieandProxy-Authorizationheaders on cross-host redirects.The vulnerability is pulled in transitively via
Microsoft.Graph→Microsoft.Graph.Core3.2.5 →Microsoft.Kiota.Abstractions1.17.1.Fix
Microsoft.Graph: 5.94.0 → 5.105.0Microsoft.Graph.Core: added at 3.2.6 (requiresKiota.Abstractions≥ 1.22.1)Microsoft.Kiota.Abstractions: added at 1.22.2Microsoft.IdentityModel.JsonWebTokens: 8.15.0 → 8.16.0 (required by Graph.Core 3.2.6)System.IdentityModel.Tokens.Jwt: 8.15.0 → 8.16.0 (required by Graph.Core 3.2.6)Microsoft.Graph.CorePackageReferenceinPlugins.MsGraph.csprojto pin the transitive versionVerification
All three affected projects report no vulnerable packages after the change:
Plugins.MsGraphConceptsPlugins.UnitTests