ADVISORIES

Vulnerability

CVE-2021-21239

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.

13 advisories report this vulnerability, across 6 ecosystems.

Advisories

  • ALPINE-CVE-2021-21239

    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…

    CVE-2021-21239 Alpine Updated 3 November 2026
  • ALPINE-EDGE-CVE-2021-21239
    CVE-2021-21239 Alpine Updated 18 November 2026
  • DEBIAN-CVE-2021-21239

    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…

    CVE-2021-21239 Debian Updated 23 October 2026
  • DLA-2577-1

    python-pysaml2 - security update

    CVE-2017-1000433CVE-2021-21239 Debian Updated 20 November 2026
  • GHSA-5p3x-r448-pc62

    Improper Verification of Cryptographic Signature in PySAML2

    Moderate CVE-2021-21239 PyPI Updated 10 September 2026
  • PYSEC-2021-49

    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…

    CVE-2021-21239 PyPI Updated 8 November 2023
  • SUSE-SU-2021:1962-1

    Security update for ardana-neutron, ardana-swift, cassandra, crowbar-openstack, grafana, kibana, openstack-dashboard, openstack-ironic, openstack-neutron, openstack-neutron-gbp, openstack-nova, python-Django1,…

    CVE-2017-11481CVE-2017-11499CVE-2018-18623CVE-2018-18624 SUSE Updated 4 February 2026
  • SUSE-SU-2021:2554-1

    Security update for ardana-cobbler, cassandra, cassandra-kit, crowbar-core, crowbar-openstack, documentation-suse-openstack-cloud, grafana, kibana, openstack-heat-templates, openstack-monasca-installer, openstack-nova,…

    CVE-2017-11481CVE-2017-11499CVE-2017-5929CVE-2019-25025 SUSE Updated 4 February 2026
  • UBUNTU-CVE-2021-21239

    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…

    CVE-2021-21239 Ubuntu Updated 4 February 2026
  • USN-5066-1

    python-pysaml2 vulnerability

    CVE-2021-21239 Ubuntu Updated 10 February 2026
  • USN-5066-2

    python-pysaml2 vulnerability

    CVE-2021-21239 Ubuntu Updated 25 June 2026
  • openSUSE-SU-2024:14156-1

    python310-pysaml2-7.4.2-1.2 on GA media

    CVE-2020-5390CVE-2021-21238CVE-2021-21239 openSUSE Updated 4 February 2026
  • openSUSE-SU-2026:11524-1

    python313-pysaml2-7.5.4-1.1 on GA media

    CVE-2020-5390CVE-2021-21238CVE-2021-21239 openSUSE Updated 16 August 2026

References