{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2021-21238","published":"2021-01-21T15:15:14.110000Z","last_modified":"2026-06-17T03:35:06.173000Z","status":"Modified","cvss":{"version":"3.1","score":6.5,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-347"],"cpes":[{"criteria":"cpe:2.3:a:pysaml2_project:pysaml2:*:*:*:*:*:*:*:*","part":"a","vendor":"pysaml2_project","product":"pysaml2","version_end_excluding":"6.5.0"}],"cpes_truncated":false,"vendors":["pysaml2_project"],"products":["pysaml2_project/pysaml2"],"epss":{"score":0.01096,"percentile":0.66484,"date":"2026-12-01","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-f4g9-h89h-jgv9","ecosystem":"PyPI","name":"pysaml2","purl":"pkg:pypi/pysaml2","ranges":[{"introduced":"0","fixed":"6.5.0"}],"versions":["0.4.3","1.0.1","1.0.2","1.0.3","1.1.0","2.0.0","2.1.0","2.2.0","2.3.0","2.4.0","3.0.0","3.0.2","4.0.0","4.0.1","4.0.2","4.0.3","4.0.4","4.0.5","4.0.5rc1","4.1.0","4.2.0","4.3.0","4.4.0","4.5.0","4.6.0","4.6.1","4.6.2","4.6.3","4.6.4","4.6.5","4.7.0","4.8.0","4.9.0","5.0.0","5.1.0","5.2.0","5.3.0","5.4.0","6.0.0","6.1.0","6.2.0","6.3.0","6.3.1","6.4.0","6.4.1"],"versions_truncated":false},{"advisory":"PYSEC-2021-48","ecosystem":"PyPI","name":"pysaml2","purl":"pkg:pypi/pysaml2","ranges":[{"introduced":"0","fixed":"6.5.0"}],"versions":["0.4.3","1.0.1","1.0.2","1.0.3","1.1.0","2.0.0","2.1.0","2.2.0","2.3.0","2.4.0","3.0.0","3.0.2","4.0.0","4.0.1","4.0.2","4.0.3","4.0.4","4.0.5rc1","4.0.5","4.1.0","4.2.0","4.3.0","4.4.0","4.5.0","4.6.0","4.6.1","4.6.2","4.6.3","4.6.4","4.6.5","4.7.0","4.8.0","4.9.0","5.0.0","5.1.0","5.2.0","5.3.0","5.4.0","6.0.0","6.1.0","6.2.0","6.3.0","6.3.1","6.4.0","6.4.1"],"versions_truncated":false}],"severity":"medium","priority_score":54,"links":{"html_es":"/es/cve/CVE-2021-21238/","html_en":"/en/cve/CVE-2021-21238/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-21238","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-21238"},"untrusted":{"vendor_name":"Pysaml2 Project","product_name":"Pysaml2","desc_en":"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.","affected":[{"untrusted_vendor":"IdentityPython","untrusted_product":"pysaml2","versions":[]}],"references":[{"url":"https://github.com/IdentityPython/pysaml2/commit/1d8fd268f5bf887480a403a7a5ef8f048157cc14","tags":["Patch","Third Party Advisory"]},{"url":"https://github.com/IdentityPython/pysaml2/releases/tag/v6.5.0","tags":["Third Party Advisory"]},{"url":"https://github.com/IdentityPython/pysaml2/security/advisories/GHSA-f4g9-h89h-jgv9","tags":["Third Party Advisory"]},{"url":"https://pypi.org/project/pysaml2","tags":["Product","Third Party Advisory"]}]},"bulletins":[{"source":"suse","id":"openSUSE-SU-2026:11524-1","url":"https://www.suse.com/support/update/","published":"2026-08-15T00:00:00+00:00","severity":"high","exploited":false,"untrusted":{"title":"python313-pysaml2-7.5.4-1.1 on GA media"}}]}