Skip to content

Dependabot security updates add direct System.Security.Cryptography.* references to src/, despite the ignore list #52

Closed

Description

@CaffeinatedCoder

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:

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:

  1. The ignore list did not hold for Xml. System.Security.Cryptography.Xml is 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 a directories: 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.
  2. 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.Pkcs to the src/ ignore list. Find out why the Xml ignore did not apply, and fix it (an explicit directory: 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 a PrivateAssets=all reference. CI is green on all three PRs, so the ignore list is the only thing guarding this today.

Activity

  1. added
    chore
    package/core
    area/release
    on Oct 18, 2026
  2. CaffeinatedCoder commented on Oct 18, 2026

    @CaffeinatedCoder
    OwnerAuthor

    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 into src/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.

  3. CaffeinatedCoder commented on Oct 18, 2026

    @CaffeinatedCoder
    OwnerAuthor

    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 inside dotnet ef on build machines and never ships to consumers. Nothing from this issue is left except merging #53.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/releasechorepackage/core

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions