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

Source: https://aplosec.si/cve/CVE-2026-142217/

[AploSec](https://aplosec.si/) / [Disclosures](https://aplosec.si/disclosures/) / CVE-2026-142217

High 8.2 · Reported · No fix listed · CWE-347 · PyPI

# pysaml2 through 7.5.5 XML Signature Wrapping in XMLSecurity Crypto Backend

CVE-2026-142217 · published 2026-12-02

In plain words: this type of bug lets someone pass off forged or altered data as genuine (missing integrity or signature check). No fixed release is listed yet.

## Summary

CVE-2026-142217 affects pysaml2 (PyPI) <= 7.5.5: XML Signature Wrapping in XMLSecurity Crypto Backend (CWE-347). No fixed release is listed. CVSS 4.0 base score 8.2 (High), assigned by VulnCheck. Published 2026-12-02 by VulnCheck. Credit: Zachariah Mithani (AploSec).

IdentityPython pysaml2 through 7.5.5 contains an XML signature wrapping vulnerability in CryptoBackendXMLSecurity.validate_signature() that ignores node_id 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.

## Evidence

Reported to the maintainer. The public advisory and references below describe the evidence and preconditions; reporting status alone does not establish independent reproduction.

## Remediation

No fixed release is listed in the advisory. Check the references for upstream status.

## References

- [VulnCheck advisoryhttps://www.vulncheck.com/advisories/pysaml2-through-7.5.5-xml-signature-wrapping-in-xmlsecurity-crypto-backend](https://www.vulncheck.com/advisories/pysaml2-through-7.5.5-xml-signature-wrapping-in-xmlsecurity-crypto-backend)

- [Vulnerable codehttps://github.com/IdentityPython/pysaml2/blob/v7.5.5/src/saml2/sigver.py#L913-L936](https://github.com/IdentityPython/pysaml2/blob/v7.5.5/src/saml2/sigver.py#L913-L936)

- [CVE recordhttps://www.cve.org/CVERecord?id=CVE-2026-142217](https://www.cve.org/CVERecord?id=CVE-2026-142217)

**Severity:** High 8.2 CVSS 4.0, scored by VulnCheck in the [CVE record](https://www.cve.org/CVERecord?id=CVE-2026-142217)

**Package:** pysaml2

**Ecosystem:** PyPI

**Affected:** <= 7.5.5

**Fixed:** None

**Weakness:** CWE-347

**CNA:** VulnCheck

**Credit:** Zachariah Mithani (AploSec) finder
