CVE-2026-142217: pysaml2 through 7.5.5 XML Signature Wrapping in XMLSecurity Crypto Backend

Published Dec 2, 2026
·
Updated

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

1 affected component
pypi/pysaml2<=7.5.5

Event History

Dec 2, 2026
CVE Published
via MITRE·04:50 PM
Data Sourced
via MITRE·04:50 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:17 PM
DescriptionSeverityWeakness
Event
via NVD·05:17 PM

Frequently Asked Questions

1

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.

2

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.

3

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203