Machine-written summary
Summary written by Claude Haiku from the source advisory. Not reviewed by a person.
The pysaml2 package, versions before 6.5.0, is vulnerable to SAML XML signature wrapping when it uses the default CryptoBackendXmlSec1 backend to verify signed SAML documents. An attacker who can supply a SAML document can present a validly signed element inside malformed content, because the documents are not checked against an XML schema and xmlsec1 verifies only the first signature in scope. Upgrade to pysaml2 6.5.0. No workaround is listed.
Not analysed yet
We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.
Severity and exploitation
| Score | Rating | CVSS | Vector | Source |
|---|---|---|---|---|
| 6.5 | Medium | 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N | CNA (GitHub_M) |
- CISA KEV Not listed.
- EPSS 0.011, the 66th percentile, on 17 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.
Timeline
- 31 Oct 2026, 14:37 UTC First seen by agentprime
- 31 Oct 2026, 14:37 UTC Confirmed by OSV
Sources
- GitHub Advisory Database: GHSA-f4g9-h89h-jgv9
- OSV: GHSA-f4g9-h89h-jgv9
- github.com/IdentityPython/pysaml2/security/advisories/GHSA-f4g9-h89h-jgv9
- nvd.nist.gov/vuln/detail/CVE-2021-21238
- github.com/IdentityPython/pysaml2/commit/1d8fd268f5bf887480a403a7a5ef8f048157cc14
- github.com/IdentityPython/pysaml2
- github.com/IdentityPython/pysaml2/releases/tag/v6.5.0
- github.com/pypa/advisory-database/tree/main/vulns/pysaml2/PYSEC-2021-48.yaml
- pypi.org/project/pysaml2