Repository navigation
Pin MessagePack 2.5.307 in AI template AppHost project - #7853
Merged
evgenyfedorov2 merged 1 commit intoOct 16, 2026
Merged
evgenyfedorov2 merged 1 commit into
evgenyfedorov2 merged 1 commit into
Conversation
Aspire.Hosting.AppHost 13.4.6 → Aspire.Hosting → StreamJsonRpc 2.25.29 → MessagePack 2.5.302, which is affected by GHSA-qhrr-8q5h-9q3h. 2.5.307 also fixes GHSA-fx6j-x9m5-vmrf and GHSA-7rj2-5w9w-r9jx. Fixes dotnet#7852 Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The narrow dependency override and snapshots are consistent, with no blocking issues identified; builds and tests were not run.
0 open findings
What changed in this PR
Pins MessagePack 2.5.307 in generated AI chat AppHost projects to address vulnerable transitive dependencies and restore failures reported in #7852.
Changes:
- Defines the patched version and adds a direct template package reference.
- Updates all three affected AppHost snapshots.
| File | Description |
|---|---|
| test/ProjectTemplates/Microsoft.Extensions.AI.Templates.IntegrationTests/Snapshots/aichatweb/aichatweb.o_q.verified/aichatweb/aichatweb.AppHost/aichatweb.AppHost.csproj | Updates Ollama/Qdrant snapshot. |
| test/ProjectTemplates/Microsoft.Extensions.AI.Templates.IntegrationTests/Snapshots/aichatweb/aichatweb.A_oai.verified/aichatweb/aichatweb.AppHost/aichatweb.AppHost.csproj | Updates OpenAI snapshot. |
| test/ProjectTemplates/Microsoft.Extensions.AI.Templates.IntegrationTests/Snapshots/aichatweb/aichatweb.A_aoai_aais.verified/aichatweb/aichatweb.AppHost/aichatweb.AppHost.csproj | Updates Azure OpenAI/Search snapshot. |
| src/ProjectTemplates/Microsoft.Extensions.AI.Templates/templates/AIChatWeb-CSharp/AIChatWeb-CSharp.AppHost/AIChatWeb-CSharp.AppHost.csproj-in | Adds direct MessagePack reference. |
| eng/packages/ProjectTemplates.props | Sets MessagePack to 2.5.307. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
Collaborator
🎉 Good job! The coverage increased 🎉
Full code coverage report: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1638094&view=codecoverage-tab |
dariusclay
approved these changes
Oct 16, 2026
This was referenced Nov 12, 2026
evgenyfedorov2
pushed a commit
to evgenyfedorov2/dotnet-extensions
that referenced
this pull request
Nov 12, 2026
Aspire.Hosting 13.6.5 depends on MessagePack 2.5.307 itself, the version pinned in dotnet#7853, so the pin no longer changes the resolved version. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Fixes #7852
Aspire.Hosting.AppHost13.4.6 pullsStreamJsonRpc2.25.29 →MessagePack2.5.302, which is flagged by GHSA-qhrr-8q5h-9q3h. WithTreatWarningsAsErrorsthis fails restore of the generated AppHost project (NU1902), breaking the--aspire=truecases ofAIChatWebExecutionTests.Bumping Aspire doesn't help: the latest
Aspire.Hosting.AppHost(13.6.1) still resolvesMessagePack2.5.302. So this pinsMessagePack2.5.307 in the AppHost template, same approach as #7561. 2.5.307 is used instead of 2.5.303 because GHSA-fx6j-x9m5-vmrf (< 2.5.305) and GHSA-7rj2-5w9w-r9jx (< 2.5.307) are also published for MessagePack.The pin can be removed once Aspire picks up a fixed
MessagePackversion.Microsoft Reviewers: Open in CodeFlow