Restore Mongo provider with patched dependencies#2
Merged
Conversation
Bumps MongoDB.Driver 3.6.0 -> 3.8.1 to pick up a patched Snappier (GHSA-pggp-6c3x-2xmx, high severity) and suppresses the SharpCompress advisory GHSA-6c8g-7p36-r338 / CVE-2026-44788. SharpCompress is pulled transitively by MongoDB.Driver for wire-protocol compression; the vulnerable WriteToDirectory() path is unreachable through driver usage, and no patched SharpCompress version is currently available. Also bumps Microsoft.Extensions.* to 10.0.8, Microsoft.Data.Sqlite to 10.0.8, Microsoft.NET.Test.Sdk to 18.5.1, coverlet.collector to 10.0.1, and the BenchmarkDotNet diagnostics package to 18.7.37220.1. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2 tasks
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
MongoDB.Driver3.6.0 → 3.8.1 to pick up a patchedSnappier(GHSA-pggp-6c3x-2xmx, high severity).NuGetAuditSuppressfor GHSA-6c8g-7p36-r338 / CVE-2026-44788 — path traversal inSharpCompress.WriteToDirectory(). The driver pullsSharpCompresstransitively for wire-protocol compression; the vulnerable archive-extraction path is not reachable through driver usage, and no patchedSharpCompressversion is currently available (all versions ≤ 0.47.4 are affected). The suppress is documented inline inDirectory.Build.propswith a re-evaluation note.Microsoft.Extensions.*andMicrosoft.Data.Sqlite→ 10.0.8,Microsoft.NET.Test.Sdk→ 18.5.1,coverlet.collector→ 10.0.1, BenchmarkDotNet diagnostics package → 18.7.37220.1.Why
The Mongo provider was unbuildable:
mastercouldn't restore at all becauseMongoDB.Driver 3.6.0pulled vulnerableSnappier 1.0.0andSharpCompress 0.30.1, both flagged byNuGetAuditunder ourTreatWarningsAsErrors=truepolicy. Removing the package wasn't a long-term fix; the user wants the Mongo provider available. Upgrading to 3.8.1 resolves the Snappier issue automatically and leaves only the unfixable-upstream SharpCompress finding, which we explicitly accept.Test plan
dotnet restoreclean on the whole solution.dotnet build -c Debug— 0 warnings, 0 errors acrossnet8.0,net9.0,net10.0.dotnet test— 66/72 passing. The 6 failures are pre-existing bugs insrc/StateStore/Internal/KeyHelper.cs:17(wrong exception type for null keys; empty/whitespace inputs aren't rejected at all). Unrelated to MongoDB and not reachable onmasterbecausemastercan't restore — these tests were already failing before this branch and will be addressed in a follow-up.MongoClient/IMongoCollection<BsonDocument>/Builders<>APIs that are unchanged between 3.6 and 3.8, but worth confirming before tagging a release.🤖 Generated with Claude Code