Repository navigation
[release/10.0.1xx] Fix vulnerable MessagePack and cryptography dependency resolutions - #56709
Merged
nagilson merged 2 commits intoOct 23, 2026
Conversation
Update MessagePack and explicitly patch crypto dependencies where transitive pinning is disabled, preserving source-build version selection. Co-authored-by: Copilot <[email protected]> Copilot-Session: b1a28d6b-4aa7-402e-b26a-da4aac706919
|
Azure Pipelines: Successfully started running 1 pipeline(s). 2 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
Published-task runtime behavior and complete source-build compatibility remain unvalidated and require human review.
No open issues 🎉
What changed in this PR
Updates vulnerable dependencies while preserving the branch’s audit policy, transitive-pinning settings, and source-build version selection.
Changes:
- Raises MessagePack to 3.1.9.
- Explicitly references Pkcs 9.0.21 in ApiCompat projects, except during source-build.
- Adds analyzer-test cryptography references to use patched central versions.
| File | Description |
|---|---|
| src/Microsoft.CodeAnalysis.NetAnalyzers/tests/Microsoft.CodeAnalysis.NetAnalyzers.UnitTests/Microsoft.CodeAnalysis.NetAnalyzers.UnitTests.csproj | Adds central-version Pkcs and Xml references. |
| src/Compatibility/ApiCompat/Microsoft.DotNet.PackageValidation/Microsoft.DotNet.PackageValidation.csproj | Pins Pkcs while retaining runtime exclusions. |
| src/Compatibility/ApiCompat/Microsoft.DotNet.ApiCompat.Task/Microsoft.DotNet.ApiCompat.Task.csproj | Pins Pkcs while retaining private deployment metadata. |
| eng/Versions.props | Defines the Pkcs toolset version. |
| Directory.Packages.props | Updates the MessagePack central pin. |
Review effort: Balanced
mthalman
approved these changes
Oct 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fix vulnerable dependency resolutions on
release/10.0.1xxwithout changing the branch's NuGet audit policy or enabling transitive pinning in projects that deliberately disable it.Public advisories: MessagePack, Pkcs, additional Pkcs advisory, and Xml.
Validation
sdk.slnxrestore passed withNuGetAudit=true,NuGetAuditMode=all, and audit warning suppressions removed for validation only. Existing non-audit warning exclusions were retained.DotNetBuildSourceOnly=trueand confirmed that the new toolset version override is absent.Note
AI-generated with GitHub Copilot.