In .NET Framework 4.6.2, security fixes in xref:System.Security.Cryptography.Xml.SignedXml?displayProperty=fullName and xref:System.Security.Cryptography.Xml.EncryptedXml?displayProperty=fullName lead to different run-time behaviors. For example:
- If a document has multiple elements with the same
id
attribute and a signature targets one of those elements as the root of the signature, the document will now be considered invalid. - Documents using non-canonical XPath transform algorithms in references are now considered invalid.
- Documents using non-canonical XSLT transform algorithms in references are now consider invalid.
- Any program making use of external resource detached signatures will be unable to do so.
Developers might want to review the usage of xref:System.Security.Cryptography.Xml.XmlDsigXsltTransform and xref:System.Security.Cryptography.Xml.XmlDsigXsltTransform, as well as types derived from xref:System.Security.Cryptography.Xml.Transform since a document receiver may not be able to process it.
Name | Value |
---|---|
Scope | Minor |
Version | 4.6.2 |
Type | Runtime |
- xref:System.Security.Cryptography.Xml.Transform?displayProperty=nameWithType
- xref:System.Security.Cryptography.Xml.XmlDsigXPathTransform?displayProperty=nameWithType
- xref:System.Security.Cryptography.Xml.XmlDsigXsltTransform?displayProperty=nameWithType