The vulnerability CVE-2026-96222, a .NET Spoofing Vulnerability, is described as KeyInfoX509Data being able to 'accept serialized certificate formats containing attacker-controlled chain metadata instead of requiring a plain X.509 certificate, contributing to certificate-forgery and token-spoofing paths.'
My analysis focused on identifying functions within the System.Security.Cryptography.Xml.KeyInfoX509Data class that would be responsible for processing and validating incoming certificate data. The core issue is the improper validation of certificate formats. Therefore, any function that takes an X509Certificate or related certificate data as input and incorporates it into the KeyInfoX509Data object without sufficient scrutiny would be vulnerable.
Based on common .NET API design for KeyInfoX509Data, the primary methods for adding or initializing with certificate data are the AddCertificate method and the class constructors (.ctor). These functions are the entry points where the 'serialized certificate formats containing attacker-controlled chain metadata' would be accepted, leading to the vulnerability.
Despite extensive searching through provided URLs and Google, I was unable to locate the specific commit or patch diff that addresses this CVE. Therefore, the identification of vulnerable functions is based on the detailed description of the vulnerability and the expected behavior of the KeyInfoX509Data class in handling certificate input. The confidence level is set to 'medium' due to the absence of direct patch evidence, relying instead on the clear description of the vulnerability's root cause.