Skip to content

fix(deps): bump System.Security.Cryptography.Xml 8.0.3 → 8.0.4 to clear NU1903 CVE advisories - #1482

Merged
aaronpowell merged 1 commit into
CommunityToolkit:mainfrom
tamirdresher:fix/nu1903-system-security-cryptography-xml
Jul 27, 2026
Merged

fix(deps): bump System.Security.Cryptography.Xml 8.0.3 → 8.0.4 to clear NU1903 CVE advisories#1482
aaronpowell merged 1 commit into
CommunityToolkit:mainfrom
tamirdresher:fix/nu1903-system-security-cryptography-xml

Conversation

@tamirdresher

Copy link
Copy Markdown
Contributor

Motivation

Directory.Packages.props currently pins System.Security.Cryptography.Xml at 8.0.3, which has six published high-severity advisories (GHSA-23rf-6693-g89p, GHSA-8q5v-6pqq-x66h, GHSA-cvvh-rhrc-wg4q, GHSA-g8r8-53c2-pm3f, GHSA-mmjf-rqrv-855v, and one more). With <NuGetAudit>true and <TreatWarningsAsErrors>true enabled repo-wide, these become NU1903 build errors on every whole-solution CI job.

Every open PR that touches anything is currently failing on this, including Dependabot bumps (#1476, #1477, #1478) that don't touch PowerShell at all.

Fix

Bump to 8.0.4 — Microsoft's CVE patch release, still net8.0-compatible.

Verification

  • dotnet restore CommunityToolkit.Aspire.slnx — 0 errors, 0 NU1903
  • dotnet build src/…/PowerShell/…csproj — succeeds
  • dotnet build src/…/Kind/…csproj — succeeds
  • dotnet test tests/…/Kind.Tests/…csproj — 149/149 pass (spot check for no regression)

Scope

Directory.Packages.props — single line. Nothing else touched.

Clears NU1903 build errors from six published high-severity advisories
against 8.0.3 (GHSA-23rf-6693-g89p, GHSA-8q5v-6pqq-x66h,
GHSA-cvvh-rhrc-wg4q, GHSA-g8r8-53c2-pm3f, GHSA-mmjf-rqrv-855v,
and one more). 8.0.4 is Microsoft's CVE patch release.

Affects only projects that transitively pull the package — currently
Microsoft.PowerShell.SDK 7.4.10 in the Kind PowerShell integration —
but is felt on every whole-solution build because <NuGetAudit>true and
<TreatWarningsAsErrors>true are enabled repo-wide.

Verified locally: full restore + build succeeds, no new errors,
no version conflicts, all affected projects build cleanly.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 7c8c8109-2ae6-407b-8740-8c3018abe8f1
Copilot AI review requested due to automatic review settings July 26, 2026 18:32
@github-actions

Copy link
Copy Markdown
Contributor

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/CommunityToolkit/Aspire/main/eng/scripts/dogfood-pr.sh | bash -s -- 1482

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/CommunityToolkit/Aspire/main/eng/scripts/dogfood-pr.ps1) } 1482"

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 the repo-wide pinned NuGet dependency System.Security.Cryptography.Xml to a patched version to eliminate NU1903 audit advisory build breaks under the repository’s NuGetAudit + TreatWarningsAsErrors configuration.

Changes:

  • Bump System.Security.Cryptography.Xml from 8.0.3 to 8.0.4 in central package management (Directory.Packages.props) to clear high-severity advisory warnings.

tamirdresher pushed a commit to tamirdresher/Aspire-1 that referenced this pull request Jul 26, 2026
Temporary hunk to unblock CI for this PR. See CommunityToolkit#1482 for
the standalone fix. If that PR merges first, this commit can be
reverted with `git revert HEAD` before this PR is merged.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 7c8c8109-2ae6-407b-8740-8c3018abe8f1
@aaronpowell
aaronpowell merged commit e9cb7cd into CommunityToolkit:main Jul 27, 2026
16 of 17 checks passed
edmondshtogu pushed a commit to edmondshtogu/CommunityToolkit-Aspire that referenced this pull request Jul 27, 2026
…nityToolkit#1482)

Clears NU1903 build errors from six published high-severity advisories
against 8.0.3 (GHSA-23rf-6693-g89p, GHSA-8q5v-6pqq-x66h,
GHSA-cvvh-rhrc-wg4q, GHSA-g8r8-53c2-pm3f, GHSA-mmjf-rqrv-855v,
and one more). 8.0.4 is Microsoft's CVE patch release.

Affects only projects that transitively pull the package — currently
Microsoft.PowerShell.SDK 7.4.10 in the Kind PowerShell integration —
but is felt on every whole-solution build because <NuGetAudit>true and
<TreatWarningsAsErrors>true are enabled repo-wide.

Verified locally: full restore + build succeeds, no new errors,
no version conflicts, all affected projects build cleanly.

Co-authored-by: Copilot <Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 7c8c8109-2ae6-407b-8740-8c3018abe8f1
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