Repository navigation
Closed
Labels
area/releaseVersioning, changelogs, release wiringchoreBuild, CI, packaging, refactoring with no behaviour changepackage/coreAffects EFCore.ComplexIndexes
Description
Problem
On 2026-10-18 Dependabot security updates opened #49, #50 and #51. Each one adds a direct PackageReference to src/EFCore.ComplexIndexes/EFCore.ComplexIndexes.csproj:
- Bump System.Security.Cryptography.Pkcs from 9.0.0 to 9.0.21 #49, Bump the nuget group with 1 update #50:
System.Security.Cryptography.Pkcs9.0.21 (Bump the nuget group with 1 update #50 is the same diff, raised as a grouped security update) - Bump System.Security.Cryptography.Xml from 9.0.0 to 9.0.21 #51:
System.Security.Cryptography.Xml9.0.21
Both packages reach this repository only through Microsoft.EntityFrameworkCore.Design, which is PrivateAssets=all. Consumers never receive them today. Merging any of these PRs would ship them to every consumer of the core package, which is the outcome .github/dependabot.yml says it prevents. Every check on all three PRs is green, so nothing in CI would stop a merge.
Two separate gaps:
- The ignore list did not hold for Xml.
System.Security.Cryptography.Xmlis ignored under the/src/*entry, yet Bump System.Security.Cryptography.Xml from 9.0.0 to 9.0.21 #51 was opened. Unconfirmed guesses: security updates don't match adirectories:glob entry, or the repository's grouped-security-updates setting (Bump the nuget group with 1 update #50's "nuget group" is no group in the config) bypasses it. - Pkcs is not on the list at all. The new advisories GHSA-846f-f764-76mx and GHSA-2fmv-rv2c-59x7 brought it in through the same build-only path.
Open alerts: 33–52, on all three src/ projects and on the test project.
Proposed change
- Close Bump System.Security.Cryptography.Pkcs from 9.0.0 to 9.0.21 #49–Bump System.Security.Cryptography.Xml from 9.0.0 to 9.0.21 #51 unmerged and say why in each one.
- Add
System.Security.Cryptography.Pkcsto thesrc/ignore list. Find out why the Xml ignore did not apply, and fix it (an explicitdirectory:per project, or a change to a repository setting). - Dismiss the
src/alerts as "vulnerable code is not actually used" (build-time only,PrivateAssets=all). Decide whether the test project's alerts get the same dismissal or a bump. - Add a convention test that fails when a
src/csproj gains a direct reference to a package that is otherwise only transitive through aPrivateAssets=allreference. CI is green on all three PRs, so the ignore list is the only thing guarding this today.
Metadata
Metadata
Assignees
Labels
area/releaseVersioning, changelogs, release wiringchoreBuild, CI, packaging, refactoring with no behaviour changepackage/coreAffects EFCore.ComplexIndexes
Activity
CaffeinatedCoder commentedon Oct 18, 2026
Cause found, see #53 for the job logs. The
src/job honoured the Xml ignore and opened only #50 (Pkcs, which no ignore list named). #49 and #51 came from the test-project job: its ignore list lacked both packages, so it followed the ProjectReference and wrote the pin intosrc/EFCore.ComplexIndexes/EFCore.ComplexIndexes.csproj. The repository's grouped-security-updates setting was not the cause. #49–#51 are closed with a reason. #53 adds both ignores to both entries and the convention test. Still open: the alerts (33–52) are not dismissed yet.CaffeinatedCoder commentedon Oct 18, 2026
Alerts 33–52 (Xml and Pkcs 9.0.0 on all three
src/projects and the test project) are dismissed as vulnerable code is not actually used. They all come through Microsoft.EntityFrameworkCore.Design (PrivateAssets=all) → Microsoft.CodeAnalysis.Workspaces.MSBuild 4.14 → Microsoft.Build.Tasks.Core 17.14, which asks for >= 9.0.0, and NuGet resolves the lowest version that satisfies it. That code runs only insidedotnet efon build machines and never ships to consumers. Nothing from this issue is left except merging #53.