# CVE-2020-5390: python-pysaml2: PySAML2 before 5.0.0 does not check that the signature in a SAML document is enveloped and thus signature wrapping is...

CVE-2020-5390 is fixed in 2 products on 1 platform, first by python-pysaml2 4.0.2-0ubuntu3.1, released January 13, 2020. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2020-5390
- Priority: Routine
- CVSS: n/a (Medium)
- EPSS: 0.0123
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Jan 13, 2020

## Description

PySAML2 before 5.0.0 does not check that the signature in a SAML document is enveloped and thus signature wrapping is effective, i.e., it is affected by XML Signature Wrapping (XSW). The signature information and the node/object that is signed can be in different places and thus the signature verification will succeed, but the wrong data will be used. This specifically affects the verification of assertion that have been signed.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | python-pysaml2 Ubuntu 18.04.6 LTS (bionic) | 4.0.2-0ubuntu3.1 | [python-pysaml2 4.0.2-0ubuntu3.1](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-python-pysaml2-4.0.2-0ubuntu3.1.md) | Jan 13, 2020 |
| Linux | python3-pysaml2 Ubuntu 18.04.6 LTS (bionic) | 4.0.2-0ubuntu3.1 | [python3-pysaml2 4.0.2-0ubuntu3.1](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-python3-pysaml2-4.0.2-0ubuntu3.1.md) | Jan 13, 2020 |

---

Data as of 2026-11-09T01:18:40Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
