Skip to content

fix(deps): bump Microsoft.Kiota.Abstractions to 1.22.2 - #23228

Merged
jeromelaban merged 2 commits into
masterfrom
dev/mazi/kiotabump
May 8, 2026
Merged

jeromelaban merged 2 commits into
masterfrom
dev/mazi/kiotabump

Conversation

@MartinZikmund

Copy link
Copy Markdown
Member

Summary

  • Override the vulnerable transitive Microsoft.Kiota.Abstractions 1.9.1 (advisory GHSA-7j59-v9qr-6fq9, high severity) pulled in by Microsoft.Graph 5.56.0.
  • Pin to 1.22.2 (latest 1.x, fix landed in 1.22.0). Stays inside Microsoft.Graph 5.56.0''s [1.9.1, 2.0.0) constraint, so there is no risk of breaking the Graph dependency closure.
  • Mirrors the existing Configuration!=Debug condition on the Microsoft.Graph reference, so Debug builds (where audit warnings are downgraded via WarningsNotAsErrors in Directory.Build.props) are untouched.

Why

Release builds of any project that transitively pulls in Microsoft.Graph from SamplesApp.Skia were failing with:

NU1903: Warning As Error: Package ''Microsoft.Kiota.Abstractions'' 1.9.1 has a known high severity vulnerability,
https://github.com/advisories/GHSA-7j59-v9qr-6fq9

Observed on SamplesApp.Skia.Generic (which references SamplesApp.Skia via a ProjectReference).

The advisory: RedirectHandler middleware was forwarding sensitive headers (Cookie, Proxy-Authorization, custom headers) on cross-host redirects. Fixed in 1.22.0.

Test plan

  • dotnet restore src/SamplesApp/SamplesApp.Skia.Generic/SamplesApp.Skia.Generic.csproj succeeds.
  • Release build of SamplesApp.Skia.Generic no longer reports NU1903 for Microsoft.Kiota.Abstractions.
  • Debug build of SamplesApp.Skia.Generic is unchanged (Microsoft.Graph + override are both Release-only).
  • CI for SamplesApp.Skia and dependent heads passes.

🤖 Generated with Claude Code

Override vulnerable transitive Microsoft.Kiota.Abstractions 1.9.1
(GHSA-7j59-v9qr-6fq9) pulled in by Microsoft.Graph 5.56.0 to resolve
NU1903 build errors when consuming projects (e.g. SamplesApp.Skia.Generic)
audit transitive dependencies in Release.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Copilot AI review requested due to automatic review settings May 8, 2026 07:31
@github-actions github-actions Bot added the area/automation Categorizes an issue or PR as relevant to project automation label May 8, 2026

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 mitigates a NuGet vulnerability warning (NU1903) by explicitly pinning Microsoft.Kiota.Abstractions to a patched 1.x version in SamplesApp.Skia, preventing Release restores/builds from failing due to a vulnerable transitive dependency introduced by Microsoft.Graph.

Changes:

  • Adds a Release-only PackageReference override for Microsoft.Kiota.Abstractions at version 1.22.2.
  • Documents the reason for the override inline (GHSA-7j59-v9qr-6fq9 affecting transitive 1.9.1).

PR description note: The repo guidelines require a linked Uno issue using a full URL (Fixes/Closes/Related to https://github.com/unoplatform/<REPO>/issues/#<ISSUE_NUMBER>). Please add the appropriate issue link (or the “No related issue…” note if applicable).


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

@unodevops

Copy link
Copy Markdown
Contributor

@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ MartinZikmund
❌ Copilot
You have signed the CLA already but the status is still pending? Let us recheck it.

@unodevops

Copy link
Copy Markdown
Contributor

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 211641 found UI Test snapshots differences: skia-linux-screenshots: 59, skia-windows-screenshots: 461, wasm: 13

Details
  • skia-linux-screenshots: 59 changed over 2342

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • DisplayInformation.png-dark
    • DisplayInformation.png
    • ImageBrush_Stretch.png-dark
    • ImageBrush_Stretch.png
    • ClipboardTests.png-dark
    • Buttons.png-dark
    • Buttons.png
    • DropDownButtonPage.png-dark
    • ImageIconPage.png-dark
    • ImageIconPage.png
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • Examples.png-dark
    • Examples.png
    • CalendarView_Theming.png-dark
    • CalendarView_Theming.png
    • Gamepad_CurrentReading.png-dark
    • Gamepad_CurrentReading.png
    • Gamepad_Enumeration.png-dark
    • Gamepad_Enumeration.png
  • skia-windows-screenshots: 461 changed over 2344

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • Clipping652.png-dark
    • Clipping652.png
    • Contacts_Pick.png-dark
    • Contacts_Pick.png
    • DoubleTappedTests.png-dark
    • DoubleTappedTests.png
    • DownloadFileSavePickerTests.png-dark
    • DownloadFileSavePickerTests.png
    • Expander_ScrollView.png-dark
    • Expander_ScrollView.png
    • Focus_FocusCycle.png-dark
    • Focus_FocusCycle.png
    • Focus_FocusState.png-dark
    • Focus_FocusState.png
    • Accessibility_ScreenReader.png
    • AutomationProperties_Name.png-dark
    • Battery.png
    • BitmapIcon_Foreground.png-dark
    • BorderWithNullBrushAndNonZeroThickness.png-dark
    • BitmapIcon_Foreground.png
  • wasm: 13 changed over 1074

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • SamplesApp.Wasm.Windows_UI_Xaml_Controls.ListView.ListView_IsSelected
    • UITests.Microsoft_UI_Xaml_Controls.ColorPickerTests.ColorPickerSample
    • UITests.Shared.Windows_UI_Xaml_Controls.MediaPlayerElement.MediaPlayerElement_Minimal
    • UITests.Shared.Windows_UI_Xaml_Controls.MediaPlayerElement.MediaPlayerElement_Ogg_Extension
    • initial_state
    • UITests.Windows_UI_Xaml_Media_Animation.ColorAnimation_Background
    • UITests.Uno_Web.Http.CookieManagerTests
    • UITests.Shared.Microsoft_UI_Xaml_Controls.ExpanderTests.WinUIExpanderPage
    • UITests.Windows_UI_Xaml.Performance.Performance_1000ButtonsContinuousRendering
    • UITests.Microsoft_UI_Xaml_Controls.WebView2Tests.WebView2_NavigationProperties
    • SamplesApp.Windows_UI_Xaml_Controls.ListView.ListViewSelectedItems
    • UITests.Windows_UI_Xaml_Controls.CalendarView.CalendarView_Theming
    • Uno.UI.Samples.Content.UITests.WebView.WebView_AnchorNavigation

@unodevops

Copy link
Copy Markdown
Contributor

⚠️⚠️ The build 211641 has failed on Uno.UI - CI.

@MartinZikmund
MartinZikmund requested a review from agneszitte May 8, 2026 12:10
@MartinZikmund
MartinZikmund enabled auto-merge May 8, 2026 12:10
@jeromelaban
jeromelaban disabled auto-merge May 8, 2026 12:52
@jeromelaban
jeromelaban merged commit 1783108 into master May 8, 2026
93 of 95 checks passed
@jeromelaban
jeromelaban deleted the dev/mazi/kiotabump branch May 8, 2026 12:52
@agneszitte

Copy link
Copy Markdown
Member

@Mergifyio backport release/stable/6.6

@mergify

mergify Bot commented May 11, 2026 •

Copy link
Copy Markdown
Contributor

backport release/stable/6.6

✅ Backports have been created

Details

agneszitte added a commit that referenced this pull request May 11, 2026
…6.6/pr-23228

fix(deps): bump Microsoft.Kiota.Abstractions to 1.22.2 (backport #23228)
@unoplatform unoplatform deleted a comment from mergify Bot May 18, 2026
@agneszitte

agneszitte commented May 18, 2026 •

Copy link
Copy Markdown
Member

@Mergifyio backport release/stable/6.5

@mergify

mergify Bot commented May 18, 2026 •

Copy link
Copy Markdown
Contributor

backport release/stable/6.5

✅ Backports have been created

Details

agneszitte added a commit that referenced this pull request May 18, 2026
…6.5/pr-23228

fix(deps): bump Microsoft.Kiota.Abstractions to 1.22.2 (backport #23228)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/automation Categorizes an issue or PR as relevant to project automation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants