CVE-2026-142217: pysaml2 through 7.5.5 XML Signature Wrapping in XMLSecurity Crypto Backend
IdentityPython pysaml2 through 7.5.5 contains an XML signature wrapping vulnerability in CryptoBackendXMLSecurity.validatesignature() that ignores nodeid and accepts any valid ds:Signature in the document. Attackers holding a genuinely signed SAML element can embed it inside a forged message with attacker-chosen content, such as an AuthnRequest, which is accepted as correctly signed.
Affected Software
Event History
Frequently Asked Questions
What conditions are required to exploit this issue?
An attacker needs possession of a genuinely signed SAML element. They can embed that valid signed element in a forged SAML message containing attacker-chosen content, causing the forged message to be accepted as signed.
Which deployments are affected?
The issue is in pysaml2 through version 7.5.5 when using the XMLSecurity crypto backend, specifically CryptoBackendXMLSecurity.validate_signature(). The provided information does not establish whether this backend is the default configuration.
What security impact can result?
Successful exploitation can compromise message integrity: attacker-chosen SAML content, including an AuthnRequest, may be accepted as correctly signed. The supplied severity vector indicates no stated confidentiality or availability impact.