Repository navigation
🤖 Address remaining Component Governance alerts on release/dev18.0 - #13311
Merged
Merged
Conversation
Bump the pinned SDK to 9.0.122 (runtime packs 9.0.21) and MessagePack to 2.5.303. Drop the old Microsoft.NET.Sdk.Razor package and keep the six design time assets we actually used as byte-exact copies, with a scoped cgmanifest and attribution.
davidwengier
marked this pull request as ready for review
October 20, 2026 02:19
dibarbet
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 of the changes
All changes in this PR were produced by AI; human review is required before merge.
Follow-up to #13308 for the remaining active CG alerts on this branch (which supplies the .NET 10.0.1xx SDK / source-build). Frameworks and coverage are unchanged, and nothing is dismissed or excepted in CG.
global.json: SDK 9.0.121 -> 9.0.122, which brings runtime, ASP.NET Core and WindowsDesktop packs to 9.0.21 (the 132 runtime-pack alerts).Directory.Packages.props: MessagePack 2.5.301 -> 2.5.303. I didn't establish whether the CVE is reachable from Razor, but the bump is cheap.Microsoft.NET.Sdk.Razor6.0.0-alpha package (internal repackaged-assembly alert). The serviced 6.0.428 replacement isn't clean: it shipsSystem.Text.JsonandSystem.Text.Encodings.Web6.0.0 undertasks/net472, and itsRazorExtension.xamlhides two fields. Instead, the six design-time assets we actually used are copied byte-exact intosrc/Shared/files/RazorDesignTime/(from dotnet/aspnetcore20b6779c…), with a scopedcgmanifest.json, Apache-2.0 attribution inNOTICE.txt, provenance in the rzls TargetsReadme.md, and a.gitattributeswith-text(the generated rule names hash the XAML bytes). VSIX destinations and embedded resource bytes are unchanged.Already covered by #13308: 30 alerts (24 ASP.NET 8, 4 Xml, 2 Pkcs). Already
autoDismissedat repo level in CG: 32 (31 microsoft/vscode, plus net6Microsoft.NETCore.App.Ref), so I left those alone.Validation (all local, binlogs kept):
dotnet restore Razor.sln -p:NuGetAudit=true -p:NuGetAuditMode=all: passed; noMicrosoft.NET.Sdk.Razorin any of the 48 assets files; download deps show all runtime RIDs at 9.0.21.Microsoft.VisualStudio.RazorExtension.csproj(-t:Build -p:DeployExtension=false): 0 warnings, 0 errors.dotnet test Microsoft.VisualStudio.LanguageServices.Razor.Test --filter DefaultWindowsRazorProjectHostTest: 44 passed.dotnet test Microsoft.CodeAnalysis.Razor.Workspaces.Test --filter FullyQualifiedName~Serialization: 38 passed, 1 skipped on each of net472, net8.0, net9.0.dotnet publish src/Razor/src/rzls/rzls.csproj -c Release -r win-x64 -p:SelfContained=false: passed.Limitations:
.vsixwas packaged or inspected, and there was no VS UI smoke test.rzlsis framework-dependent, so runtimes installed on consumer machines are a separate servicing matter.Fixes:
Component Governance alerts for release/dev18.0 (follow-up to #13308)