Skip to content

fix(deps): patch vulnerable crypto packages - #82

Merged
brunobritodev merged 1 commit into
masterfrom
fix/vulnerable-deps
Nov 17, 2026
Merged

brunobritodev merged 1 commit into
masterfrom
fix/vulnerable-deps

Conversation

@brunobritodev

Copy link
Copy Markdown
Member

Summary

Security patch for the 10.x line (net8.0 / net9.0 / net10.0). It should release 10.0.1.

NetDevPack.Security.Jwt 10.0.0, the current package on nuget.org, depends on System.Security.Cryptography.Xml and Pkcs 10.0.12 on net10.0. Both now have high severity advisories, so every consumer of 10.0.0 gets vulnerable packages.

Changes

  • Directory.Packages.props: pins the patched versions per TFM. With CentralPackageTransitivePinningEnabled, they end up in the nuspec of NetDevPack.Security.Jwt, so consumers get them as well.

    TFM Cryptography.Xml Cryptography.Pkcs Microsoft.*
    net8.0 8.0.5 8.0.2 8.0.34
    net9.0 9.0.23 9.0.23 9.0.23
    net10.0 10.0.15 10.0.15 10.0.15
  • PR workflow: the vulnerable package check failed on the IdentityServer4 advisory that ADR-002 accepts. It now ignores only that package. The same fix is in feat!: target .NET 10 only #81.

This does not replace #81 (.NET 10 only, v11). It gives consumers on .NET 8/9 a patched 10.x. When #81 is rebased on top of this, Directory.Packages.props keeps only the net10 line.

Test plan

  • dotnet build -c Release: 0 errors
  • dotnet test -c Release: 514 + 2 tests on each of net8.0, net9.0 and net10.0, all passed
  • dotnet list package --vulnerable --include-transitive: only IdentityServer4 (accepted, ADR-002)
  • dotnet pack: the NetDevPack.Security.Jwt nuspec has the patched Xml/Pkcs versions in each TFM group

System.Security.Cryptography.Xml/Pkcs 10.0.12 (pulled by 10.0.0) have high
severity advisories. Pin the patched versions per TFM (8.0.5/8.0.2,
9.0.23, 10.0.15) and bump the Microsoft.* packages to the latest patch of
each line (8.0.34, 9.0.23, 10.0.15).

The PR vulnerability check now ignores only the accepted IdentityServer4
advisory (ADR-002).
@brunobritodev
brunobritodev merged commit a43ba0c into master Nov 17, 2026
1 check passed
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