Skip to content

SignedCms: Match SignerInfo content-type to SignedData.encapContentInfo.eContentType #132242

Open

Description

@bartonjs

From https://datatracker.ietf.org/doc/html/rfc5652#section-5.6 (5.6. Signature Verification Process)

   If the SignedData signerInfo includes signedAttributes, then the
   content-type attribute value MUST match the SignedData
   encapContentInfo eContentType value.

So, this is an RFC MUST that isn't being followed. Historically, we didn't verify it (explicitly... because of .NET Framework compat), but we've received complaints that we're missing this check, so we should add it.

// .NET Framework doesn't seem to validate the content type attribute,

Activity

  1. added this to the 12.0.0 milestone on Aug 12, 2026
  2. added theissue type on Aug 12, 2026
  3. dotnet-policy-service commented on Aug 12, 2026

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @bartonjs, @vcsjones, @dotnet/area-system-security
    See info in area-owners.md if you want to be subscribed.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions