Skip to content

Pin System.Security.Cryptography.Xml to clear the dependency audit#26

Merged
Ngonie69 merged 1 commit into
mainfrom
claude/pin-cryptography-xml
Jul 21, 2026
Merged

Pin System.Security.Cryptography.Xml to clear the dependency audit#26
Ngonie69 merged 1 commit into
mainfrom
claude/pin-cryptography-xml

Conversation

@Ngonie69

Copy link
Copy Markdown
Owner

Why

Four high-severity advisories were published against System.Security.Cryptography.Xml 10.0.8, breaking the Dependency Audit workflow:

The audit resolves against the live GitHub advisory database, so no code change caused this — main passed on 20 Jul at 11:43 and the same tree fails today. It surfaced on #25, but it is unrelated to that PR and blocks every branch until fixed.

Why only this project

The package arrives transitively via Microsoft.AspNetCore.DataProtection 10.0.8.

ShopInventory and ShopInventory.Web report no vulnerable packages, despite sitting on the same dependency. They use the Web SDK and take this assembly from the ASP.NET Core shared framework, so it is not a NuGet asset there and is patched by runtime updates rather than a package bump. AccountSalesPaymentWorkbookRestyler is a plain console Exe without that shared framework, so the dependency resolves as a real package and gets audited.

Note

The deployed API and Web app were never carrying a vulnerable NuGet package. The exposure was limited to a developer utility script. This unblocks CI; it is not a production incident.

Change

One PackageReference pinning the transitive dependency to 10.0.10, with a comment recording why only this project needs it and when it can be removed.

Verification

AccountSalesPaymentWorkbookRestyler  →  no vulnerable packages
ShopInventory                        →  no vulnerable packages
ShopInventory.Web                    →  no vulnerable packages

Restyler builds clean, 0 warnings.

The pin can be removed once Microsoft.AspNetCore.DataProtection references a patched version directly.

🤖 Generated with Claude Code

Four high-severity advisories were published against System.Security.Cryptography.Xml
10.0.8, failing the Dependency Audit workflow on every branch:

  GHSA-cvvh-rhrc-wg4q  GHSA-g8r8-53c2-pm3f
  GHSA-23rf-6693-g89p  GHSA-8q5v-6pqq-x66h

The package arrives transitively via Microsoft.AspNetCore.DataProtection 10.0.8.
Only AccountSalesPaymentWorkbookRestyler is affected: ShopInventory and
ShopInventory.Web use the Web SDK and take this assembly from the ASP.NET Core
shared framework, where it is not a NuGet asset and is patched by runtime updates.
The Restyler is a plain console Exe without that shared framework, so the same
dependency resolves as a real package and is audited.

Pinning to 10.0.10 clears the audit on all three projects. The deployed API and
Web app were never carrying a vulnerable NuGet package.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@Ngonie69
Ngonie69 merged commit a8e4033 into main Jul 21, 2026
3 checks passed
@Ngonie69
Ngonie69 deleted the claude/pin-cryptography-xml branch July 21, 2026 08:19
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.

1 participant