Security mailing lists by PureSourceCode

CVE-2021-21239

MEDIUM 6.5CVSS 3.1

Improper Verification of Cryptographic Signature in PySAML2

PySAML2 is a pure python implementation of SAML Version 2 Standard. PySAML2 before 6.5.0 has an improper verification of cryptographic signature vulnerability. Users of pysaml2 that use the default CryptoBackendXmlSec1 backend and need to verify signed SAML documents are impacted. PySAML2 does not ensure that a signed SAML document is correctly signed. The default CryptoBackendXmlSec1 backend is using the xmlsec1 binary to verify the signature of signed SAML documents, but by default xmlsec1 accepts any type of key found within the given document. xmlsec1 needs to be configured explicitly to only use only x509 certificates for the verification process of the SAML document signature. This is fixed in PySAML2 6.5.0.

Published
21 Jan 2021
Last modified
10 Sep 2026
Assigned by
security-advisories@github.com
NVD status
Modified
Weakness
CWE-347
Also known as
GHSA-5p3x-r448-pc62PYSEC-2021-49
Sources
NVDJSONOSV GHSA-5p3x-r448-pc62JSONOSV PYSEC-2021-49JSON

Scores

SourceScored byVersionScoreVector / decision
OSV GitHub CVSS 4.0 CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
NVD security-advisories@github.com (Secondary) CVSS 3.1 MEDIUM 6.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
NVD nvd@nist.gov (Primary) CVSS 3.1 MEDIUM 6.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
OSV GitHub CVSS 3.1 MEDIUM 6.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
NVD nvd@nist.gov (Primary) CVSS 2.0 MEDIUM 4.3 AV:N/AC:M/Au:N/C:N/I:P/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD pysaml2_project pysaml2
cpe:2.3:a:pysaml2_project:pysaml2:*:*:*:*:*:*:*:*
< 6.5.0 6.5.0
NVD debian debian_linux
cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*
= 9.0
OSV PyPI pysaml2 < 6.5.0 6.5.0

References

History

  • 25 Nov 2026 20:32 UTC · NVD: first stored (published 21 Jan 2021)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 21 Jan 2021)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 21 Jan 2021)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.