Skip to content

Update Kiota packages to fix NU1903 vulnerability#13966

Merged
SergeyMenshykh merged 3 commits intomicrosoft:mainfrom
SergeyMenshykh:fix/kiota-abstractions-vulnerability
May 7, 2026
Merged

Update Kiota packages to fix NU1903 vulnerability#13966
SergeyMenshykh merged 3 commits intomicrosoft:mainfrom
SergeyMenshykh:fix/kiota-abstractions-vulnerability

Conversation

@SergeyMenshykh
Copy link
Copy Markdown
Member

@SergeyMenshykh SergeyMenshykh commented May 7, 2026

Problem

NuGet audit reports NU1903 for Microsoft.Kiota.Abstractions < 1.22.0 (GHSA-7j59-v9qr-6fq9) — the Kiota RedirectHandler leaks Cookie and Proxy-Authorization headers on cross-host redirects.

The vulnerability is pulled in transitively via Microsoft.GraphMicrosoft.Graph.Core 3.2.5 → Microsoft.Kiota.Abstractions 1.17.1.

Fix

  • Microsoft.Graph: 5.94.0 → 5.105.0
  • Microsoft.Graph.Core: added at 3.2.6 (requires Kiota.Abstractions ≥ 1.22.1)
  • Microsoft.Kiota.Abstractions: added at 1.22.2
  • Microsoft.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)
  • Added direct Microsoft.Graph.Core PackageReference in Plugins.MsGraph.csproj to pin the transitive version

Verification

All three affected projects report no vulnerable packages after the change:

  • Plugins.MsGraph
  • Concepts
  • Plugins.UnitTests

…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>
Copilot AI review requested due to automatic review settings May 7, 2026 15:15
@SergeyMenshykh SergeyMenshykh requested a review from a team as a code owner May 7, 2026 15:15
@moonbox3 moonbox3 added the .NET Issue or Pull requests regarding .NET code label May 7, 2026
@github-actions github-actions Bot changed the title Fix Microsoft.Kiota.Abstractions high severity vulnerability (GHSA-7j59-v9qr-6fq9) .Net: Fix Microsoft.Kiota.Abstractions high severity vulnerability (GHSA-7j59-v9qr-6fq9) May 7, 2026
@SergeyMenshykh SergeyMenshykh changed the title .Net: Fix Microsoft.Kiota.Abstractions high severity vulnerability (GHSA-7j59-v9qr-6fq9) Update Kiota packages to fix NU1903 vulnerability May 7, 2026
@SergeyMenshykh SergeyMenshykh self-assigned this May 7, 2026
@SergeyMenshykh SergeyMenshykh moved this to In Review in Agent Framework May 7, 2026
Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

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

Automated Code Review

Reviewers: 4 | Confidence: 95% | Result: All clear

Reviewed: Correctness, Security Reliability, Test Coverage, Design Approach


Automated review by SergeyMenshykh's agents

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 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.2 via 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.

Comment thread dotnet/samples/Demos/BookingRestaurant/BookingRestaurant.csproj Outdated
@SergeyMenshykh SergeyMenshykh enabled auto-merge May 7, 2026 15:18
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@SergeyMenshykh SergeyMenshykh added this pull request to the merge queue May 7, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks 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>
@SergeyMenshykh SergeyMenshykh added this pull request to the merge queue May 7, 2026
Merged via the queue into microsoft:main with commit 73d3c59 May 7, 2026
18 checks passed
@SergeyMenshykh SergeyMenshykh deleted the fix/kiota-abstractions-vulnerability branch May 7, 2026 17:52
@github-project-automation github-project-automation Bot moved this from In Review to Done in Agent Framework May 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

.NET Issue or Pull requests regarding .NET code

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants