Home › CVE › Identity & auth
CVE-2026-142217 — IdentityPython pysaml2
One of 2 IdentityPython pysaml2 vulnerabilities published together by NVD: our article covers all of them.
Identity & authVulnerabilitiesSummary
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.
Severity breakdown
High · 8.2
An attacker without an account can exploit this over the network, without any user action, but only under specific conditions.
- Attack from
- the network (remotely)
- Attack complexity
- high (only works under specific conditions)
- Special conditions
- only in some setups or conditions
- Login needed
- no
- User action needed
- no
- Impact
- high on integrity, none on confidentiality and availability
- Impact on other systems
- none
Weakness
- CWE-347: Improper Verification of Cryptographic Signature
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| IdentityPython pysaml2 | ≤ 7.5.5 | — |
References by type
Other references
Affected
- IdentityPython pysaml2
What to do
- Check whether you run an affected product or version and apply the vendor's update or mitigation.
- Follow the vendor advisory and the references below for fixed versions and workarounds.
Frequently asked questions
What is CVE-2026-142217?
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. Weakness type: Improper Verification of Cryptographic Signature (CWE-347).
How severe is CVE-2026-142217?
CVE-2026-142217 has a CVSS 4.0 base score of 8.2 (high), from the CNA (vulncheck.com). An attacker without an account can exploit this over the network, without any user action, but only under specific conditions.
Is CVE-2026-142217 being exploited?
Not as far as is known: CVE-2026-142217 is not in CISA's Known Exploited Vulnerabilities catalog as of December 2, 2026.
Which versions are affected by CVE-2026-142217?
IdentityPython pysaml2 ≤ 7.5.5.
How do I fix CVE-2026-142217?
Follow the advisories and patches linked on this page under References for fixed versions and workarounds.