Skip to content

Pin System.Security.Cryptography.Xml to fix GHSA-37gx-xxp4-5rgx#197

Merged
jas88 merged 1 commit intomainfrom
fix/pin-cryptography-xml-vulnerability
Apr 26, 2026
Merged

Pin System.Security.Cryptography.Xml to fix GHSA-37gx-xxp4-5rgx#197
jas88 merged 1 commit intomainfrom
fix/pin-cryptography-xml-vulnerability

Conversation

@jas88
Copy link
Copy Markdown
Owner

@jas88 jas88 commented Apr 26, 2026

Summary

  • System.Security.Cryptography.Xml 8.0.2 is affected by GHSA-37gx-xxp4-5rgx (high severity)
  • This is a transitive dependency — no project in the solution references it directly
  • With CentralPackageTransitivePinningEnabled set to true in Directory.Build.props, adding a PackageVersion entry pins the resolved version across all projects
  • Pinned to 10.0.7 (latest stable, matching the project's net10.0 target framework)
  • This eliminates the NU1903 audit warning that can break CI on projects with TreatWarningsAsErrors where NoWarn does not inherit properly from Directory.Build.props

Test plan

  • CI build passes with the new pin
  • dotnet list package --include-transitive --vulnerable no longer reports System.Security.Cryptography.Xml

Summary by cubic

Pin System.Security.Cryptography.Xml to 10.0.7 to fix GHSA-37gx-xxp4-5rgx present in 8.0.2. This also clears NU1903 vulnerability warnings that can fail CI with TreatWarningsAsErrors.

Written for commit 5cd7e57. Summary will update on new commits.

Pin the transitive dependency System.Security.Cryptography.Xml to
10.0.7 via CentralPackageTransitivePinningEnabled, replacing the
vulnerable 8.0.2 version.
Copilot AI review requested due to automatic review settings April 26, 2026 20:31
Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

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

No issues found across 1 file

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

Pins a vulnerable transitive NuGet dependency (System.Security.Cryptography.Xml) at the repo level to eliminate the NU1903 security audit warning (GHSA-37gx-xxp4-5rgx) across the solution when using Central Package Management + transitive pinning.

Changes:

  • Add a centralized transitive pin for System.Security.Cryptography.Xml to version 10.0.7.
  • Document the reason for the pin inline in Directory.Packages.props.

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

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 26, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 0.00%. Comparing base (4d57d60) to head (5cd7e57).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@          Coverage Diff          @@
##            main    #197   +/-   ##
=====================================
  Coverage   0.00%   0.00%           
=====================================
  Files       1118    1118           
  Lines      66302   66302           
  Branches    8767    8767           
=====================================
  Misses     66302   66302           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jas88 jas88 merged commit ef6b251 into main Apr 26, 2026
12 checks passed
@jas88 jas88 deleted the fix/pin-cryptography-xml-vulnerability branch April 26, 2026 21:01
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.

2 participants