{"id":"CVE-2021-21238","details":"PySAML2 is a pure python implementation of SAML Version 2 Standard. PySAML2 before 6.5.0 has an improper verification of cryptographic signature vulnerability. All users of pysaml2 that need to validate signed SAML documents are impacted. The vulnerability is a variant of XML Signature wrapping because it did not validate the SAML document against an XML schema. This allowed invalid XML documents to be processed and such a document can trick pysaml2 with a wrapped signature. This is fixed in PySAML2 6.5.0.","aliases":["GHSA-f4g9-h89h-jgv9","PYSEC-2021-48"],"modified":"2026-04-10T04:29:34.085528Z","published":"2021-01-21T15:15:14.110Z","related":["GHSA-f4g9-h89h-jgv9","SUSE-SU-2021:1962-1","SUSE-SU-2021:2554-1","openSUSE-SU-2024:11258-1","openSUSE-SU-2024:14156-1"],"references":[{"type":"ADVISORY","url":"https://github.com/IdentityPython/pysaml2/releases/tag/v6.5.0"},{"type":"ADVISORY","url":"https://github.com/IdentityPython/pysaml2/security/advisories/GHSA-f4g9-h89h-jgv9"},{"type":"FIX","url":"https://github.com/IdentityPython/pysaml2/commit/1d8fd268f5bf887480a403a7a5ef8f048157cc14"},{"type":"PACKAGE","url":"https://pypi.org/project/pysaml2"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/identitypython/pysaml2","events":[{"introduced":"0"},{"fixed":"12ec4a70c5aaf4c144f6b30a158193ca99bc76cd"},{"fixed":"1d8fd268f5bf887480a403a7a5ef8f048157cc14"}],"database_specific":{"versions":[{"introduced":"0"},{"fixed":"6.5.0"}]}}],"versions":["0.4.2","1.0.0","1.0.1","2.0.0","2.1.0","2.3.0","2.4.0","3.0.0","4.0.0","v1.0.3","v2.2.0","v3.0.2","v4.1.0","v4.2.0","v4.3.0","v4.5.0","v4.6.0","v4.6.1","v4.6.2","v4.6.3","v4.6.4","v4.6.5","v4.7.0","v4.8.0","v4.9.0","v5.0.0","v5.1.0","v5.2.0","v5.3.0","v5.4.0","v6.0.0","v6.1.0","v6.2.0","v6.3.0","v6.3.1","v6.4.0","v6.4.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-21238.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N"}]}