Skip to content

fix(security): Bump System.Security.Cryptography.Xml to 10.0.10 - #23830

Merged
dr1rrb merged 1 commit into
masterfrom
dev/xygu/20260721/fix-crypto-xml-cve
Jul 21, 2026
Merged

dr1rrb merged 1 commit into
masterfrom
dev/xygu/20260721/fix-crypto-xml-cve

Conversation

@Xiaoy312

Copy link
Copy Markdown
Contributor

GitHub Issue: closes #23829

PR Type:

🐞 Bugfix

What changed? 🚀

Bumps the System.Security.Cryptography.Xml transitive-override pin from 8.0.3 to 10.0.10 in the two build-tooling projects that carry it:

  • src/Uno.HotReload/Uno.HotReload.csproj
  • src/Uno.UI.RemoteControl.Server.Processors/Uno.UI.RemoteControl.Server.Processors.csproj

The pin exists to override the vulnerable version Microsoft.Build.Tasks.Core pulls in transitively. 8.0.3 is now flagged by NU1903: the July 2026 .NET XML-encryption advisories (CVE-2026-47304 / GHSA-g8r8-53c2-pm3f, plus GHSA-cvvh-rhrc-wg4q, GHSA-23rf-6693-g89p, GHSA-8q5v-6pqq-x66h) cover the whole 8.0.x line, and the highest published 8.0.x package (8.0.4) is still in range — so there is no fixed 8.0.x release. 10.0.10 is the first release above the affected <= 10.0.9 range on the 10.x line.

Verified against NuGet's raw vulnerability index and flat-container listing. 10.0.10 ships explicit lib/net9.0/ and lib/net10.0/ assets, matching the NetPrevious/NetCurrent TFMs of both projects, so it restores on both legs. The explanatory comment above each PackageReference was updated to reflect the current advisories and the reason for jumping to the 10.x major.

No source/API changes; tooling dependency hygiene only.

PR Checklist ✅

  • 🧪 Added Runtime tests, UI tests, or a manual test sample (for bug fixes / features, if applicable) — N/A, dependency-version bump with no code change
  • 📚 Docs have been added/updated following the documentation template (for bug fixes / features) — N/A
  • 🖼️ Validated PR Screenshots Compare Test Run results — N/A, no UI change
  • ❗ Contains NO breaking changes
  • 👀 Reviewed 2 other open pull requests (optional but appreciated!)

The 8.0.3 pin is flagged by NU1903: CVE-2026-47304 and related July
2026 .NET XML-encryption advisories cover the whole 8.0.x line (up to
the highest published 8.0.4), so no 8.0.x release clears them. Move the
transitive-override pin to 10.0.10, the first 10.x release above the
affected <= 10.0.9 range. It ships net9.0 and net10.0 assets, matching
both target frameworks of these projects.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Copilot AI review requested due to automatic review settings July 21, 2026 15:19

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 updates build-tooling projects to pin System.Security.Cryptography.Xml to a non-vulnerable version, avoiding NU1903 by overriding the transitive version pulled in via Microsoft.Build.Tasks.Core.

Changes:

  • Bump System.Security.Cryptography.Xml from 8.0.3 to 10.0.10 in two tooling .csproj files.
  • Update the accompanying comments to reflect the July 2026 XML-encryption advisories and the rationale for moving to the 10.x line.

Reviewed changes

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

File Description
src/Uno.HotReload/Uno.HotReload.csproj Updates the explicit System.Security.Cryptography.Xml pin to 10.0.10 and refreshes the vulnerability rationale comment.
src/Uno.UI.RemoteControl.Server.Processors/Uno.UI.RemoteControl.Server.Processors.csproj Same dependency pin bump and rationale update for the remote-control processors tooling project.

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

@unodevops

Copy link
Copy Markdown
Contributor

@Xiaoy312
Xiaoy312 enabled auto-merge July 21, 2026 18:32
@dr1rrb
dr1rrb disabled auto-merge July 21, 2026 19:29
@dr1rrb
dr1rrb merged commit 01f8125 into master Jul 21, 2026
67 of 69 checks passed
@dr1rrb
dr1rrb deleted the dev/xygu/20260721/fix-crypto-xml-cve branch July 21, 2026 19:29
@agneszitte

Copy link
Copy Markdown
Member

@Mergifyio backport release/stable/6.6

@mergify

mergify Bot commented Jul 22, 2026 •

Copy link
Copy Markdown
Contributor

backport release/stable/6.6

✅ Backports have been created

Details

Cherry-pick of 6de04d0 has failed:

On branch mergify/bp/release/stable/6.6/pr-23830
Your branch is up to date with 'origin/release/stable/6.6'.

You are currently cherry-picking commit 6de04d0bb1.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Unmerged paths:
  (use "git add/rm <file>..." as appropriate to mark resolution)
	deleted by us:   src/Uno.HotReload/Uno.HotReload.csproj
	both modified:   src/Uno.UI.RemoteControl.Server.Processors/Uno.UI.RemoteControl.Server.Processors.csproj

no changes added to commit (use "git add" and/or "git commit -a")

To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally

agneszitte added a commit that referenced this pull request Jul 22, 2026
…6.6/pr-23830

fix(security): Bump System.Security.Cryptography.Xml to 10.0.10 (backport #23830)
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.

[Bug] NU1903: System.Security.Cryptography.Xml 8.0.3 has known high-severity vulnerabilities

6 participants