.Net: Bump Snappier to 1.3.1 to fix NU1903 high-severity vulnerability (GHSA-pggp-6c3x-2xmx)#13960
Merged
rogerbarreto merged 2 commits intomainfrom May 7, 2026
Merged
Conversation
…c3x-2xmx) Agent-Logs-Url: https://github.com/microsoft/semantic-kernel/sessions/6f6fd3a8-071c-4f01-8339-8f84af16f76b Co-authored-by: rogerbarreto <19890735+rogerbarreto@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update version for snappier vulnerability fix
.Net: Bump Snappier to 1.3.1 to fix NU1903 high-severity vulnerability (GHSA-pggp-6c3x-2xmx)
May 7, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Pins the Snappier dependency to a patched version to address NU1903 / GHSA-pggp-6c3x-2xmx introduced transitively via MongoDB.Driver, ensuring affected VectorData MongoDB connectors restore a safe version without changing the MongoDB.Driver pin.
Changes:
- Add a CPM
PackageVersionentry forSnappier1.3.1. - Add direct (versionless, CPM-resolved)
PackageReferenceentries toSnappierin the MongoDB and CosmosMongoDB VectorData connector projects to override the vulnerable transitive version.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| dotnet/Directory.Packages.props | Central package version pin for Snappier 1.3.1. |
| dotnet/src/VectorData/MongoDB/MongoDB.csproj | Adds direct Snappier reference so NuGet resolves the patched version for this connector. |
| dotnet/src/VectorData/CosmosMongoDB/CosmosMongoDB.csproj | Adds direct Snappier reference so NuGet resolves the patched version for this connector. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
SergeyMenshykh
approved these changes
May 7, 2026
westey-m
approved these changes
May 7, 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.
Motivation and Context
MongoDB.Driver 3.5.2transitively introducesSnappier 1.0.0, which carries a high-severity vulnerability (GHSA-pggp-6c3x-2xmx): infinite loop during SnappyStream decompression of malformed framed input. All Snappier versions ≤ 1.3.0 are affected; 1.3.1 is the first patched release. This was blocking the merge queue via NU1903.Description
dotnet/Directory.Packages.props— AddPackageVersionentry pinningSnappierto1.3.1.dotnet/src/VectorData/MongoDB/MongoDB.csproj— Add explicitPackageReferenceforSnappier(versionless, resolved via CPM) so NuGet treats it as a direct dependency at 1.3.1, overriding the transitive 1.0.0 fromMongoDB.Driver.dotnet/src/VectorData/CosmosMongoDB/CosmosMongoDB.csproj— Same override for the CosmosMongoDB connector.In NuGet's resolution algorithm, a direct reference at depth 1 wins over a transitive reference at depth 2, so this cleanly forces 1.3.1 without changing the
MongoDB.Driverpin itself.Contribution Checklist
Original prompt
Please investigate a solution to snappier vulnerability fix (update version) and propose a PR with the bump, ideally following the first immediate a non breaking version bump
**Chronological Review:** 1. User asked to analyze PR #13431 (Gemini multimodal tool results in microsoft/semantic-kernel) for gaps 2. Initial analysis identified ~11 gaps with broad scope including OpenAI Assistants, AzureAI, Responses API, MistralAI 3. User invoked ouroboros skill, asked to reassess scoping to Google package only 4. Reassessment: Google connector bypasses FunctionCallsProcessor; only validated regression is OpenAI Responses API 5. User invoked ouroboros to seed the observation; created seed file `pr-13431-followup.seed.yaml` 6. User asked to execute seed + identify pipeline error 7. Implemented 5 file changes; identified pipeline error CS8602 in GeminiRequestTests.cs:809 8. All builds/tests passed; user asked about string→object impact in plan mode 9. Investigation revealed `FunctionCallsProcessor` is `internal sealed`, source-distributed, so blast radius small 10. User confirmed all implemented; ran CI-parity dotnet format via WSL2+Docker (all pass) 11. User asked to commit and push - committed `de08bce99` and pushed to Cozmopolit fork 12. User asked to check PR comments - found 2 Copilot bot review comments 13. User said: add OpenAI test (item 1), reply out-of-scope (item 2) 14. Added OpenAI ChatCompletion test, committed `e9f27d21a`, pushed, replied to both bot comments 15. User asked PR number (13431) 16. User invoked /auto pr_task - PR was green, no action needed 17. User said merge queue failed, asked to investigate 18. Investigation found: NU1903 Snappier 1.0.0 vulnerability blocking merge queue; not caused by our PR 19. **Most recent: User asked "Do we have a fix in main for this already?"** 20. **Investigation confirmed: NO fix in main** - origin/main HEAD `1a5065e5c` unchanged, `MongoDB.Driver 3.5.2` still pinned, no Snappier override, no PRs/issues for Snappier or NU1903 in the repo recently 21. **Offered to open a small fix PR pinning Snappier to a patched version**Intent Mapping:
Technical Inventory:
fix/multimodal-tool-resultsCode Archaeology:
Files changed in commits
de08bce99+e9f27d21a:dotnet/src/Agents/OpenAI/Internal/ResponseThreadActions.cs— added GetFunctionResultAsString helperdotnet/src/Agents/UnitTests/OpenAI/Internal/ResponseThreadActionsTests.cs— new (3 tests)dotnet/src/Connectors/Connectors.Google/Core/Gemini/Models/GeminiRequest.cs— extracted s_imageFunctionResponseEnvelopedotnet/src/Connectors/Connectors.Google.UnitTests/Core/Gemini/GeminiRequestTests.cs— CS8602 fixdotnet/src/InternalUtilities/connectors/AI/FunctionCalling/FunctionCallsProcessor.cs— XML-doc tighteningdotnet/src/Connectors/Connectors.OpenAI.UnitTests/Services/OpenAIChatCompletionServiceTests.cs— added ItSendsImageContentNotSupportedErrorWhenToolResultIsImageContentAsyncIdentified vulnerable package:
MongoDB.Driver 3.5.2indotnet/Directory.Packages.props:173brings in transitiveSnappier 1.0.0Progress Assessment:
Context Validation:
e9f27d21a85a8b97ee5f29619b23b82a03e313ffRecent Commands Analysis:
Most recent two tool batches:
git fetch origin main; git log origin/main --since="2026-05-06T15:00:00Z" --oneline→ only1a5065e5c(yesterday's commit)git show origin/main:dotnet/Directory.Packages.props | grep Snappier|MongoDB.Driver→ onlyMongoDB.Driver 3.5.2, no Snappier overridegh search prs/issues --state all "Snappier"→ command failed (invalidallstate)gh api search/issues?q=Snappier+repo:microsoft/semantic-kernel→ empty resultsgh api search/issues?q=NU1903+repo:microsoft/semantic-kernel→ 3 historical results from 2024, all unrelatedFinal response: confirmed NO fix in main, offered to open a small fix PR pinning Snappier.
1. Conversation Overview: - Primary Objectives: - Analyze SK PR #13431 (G...
Created from Copilot CLI via the copilot delegate command.