Predictive Vulnerability Intelligence.

Product

  • Product
  • Pricing
  • Documentation

Company

  • About
  • Partnerships
  • Blog
  • Support

Legal

  • Terms
  • Privacy
  • Data Licensing

© 2026 FAUCET Technologies LLC. All rights reserved.

CVE-2021-21238

21
FAUCET Score

CVE-2021-21238 describes an improper cryptographic signature verification vulnerability in PySAML2 versions prior to 6.5.0, affecting all users who validate signed SAML documents. This flaw, a variant of XML Signature wrapping, allows invalid XML documents to be processed, potentially tricking PySAML2 with a wrapped signature. With a CVSS score of 6.5 (Medium), it can be exploited remotely with low attack complexity, requiring user interaction, and primarily impacts integrity (I:H). There is currently no evidence of active exploitation, public exploit code, or significant community discussion surrounding this vulnerability.

Impacted Technologies

VendorProductVersion(s)CPE
< 6.5.0CPE matchmatch criteria
cpe:2.3:a:pysaml2_project:pysaml2:*:*:*:*:*:*:*:*

CVSS Data

CVSS version used by this source: 3.1

6.5MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N

Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality Impact
NONE
Integrity Impact
HIGH
Availability Impact
NONE
Exploitability Score
2.8
Impact Score
3.6
CvssVersion
3.1

Exploit Intelligence

EPSS Score
1.08%
Probability of exploitation in next 30 days
EPSS Percentile
61.6%
Percentile rank of EPSS score among Peer Group
As of 2026-07-27
Model: v2026.06.15
This CVE's current EPSS score of 0.0108 is in the 74th percentile among its peer group of 26,221 CVEs.

Social Chatter

The average CVE in this peer group has 0.0 Twitter, 0.0 Reddit, 0.1 Bluesky, 0.0 Mastodon, and 0.1 GitHub mentions.

Media Mentions

No media coverage found for this CVE.

The average CVE in this peer group has 0.1 InfoSec Media, 0.0 Vendor Blog, and 0.0 Security Researcher mentions.

Remediation

Patch Available

Vendor Patches (4)

github_advisorypatch availablevia nvd_reference
View patch
pippatch availablevia ghsa
Product: pysaml2Fixed in: 6.5.0
redhatend of lifevia redhat_api
Product: Red Hat OpenStack Platform 16.1Fixed in: python-pysaml2
redhatend of lifevia redhat_api
Product: Red Hat OpenStack Platform 16.2Fixed in: python-pysaml2

Vendor Advisories (2)

pipGHSA-f4g9-h89h-jgv9medium

SAML XML Signature wrapping in PySAML2

Jan 21, 2021
redhatCVE-2021-21238Moderate

python-pysaml2: processing of invalid SAML XML documents

Jan 21, 2021

References

github.com / IdentityPython/pysaml2/commit/1d8fd268f5bf887480a403a7a5ef8f048157cc14
PatchThird Party Advisory
github.com / IdentityPython/pysaml2/releases/tag/v6.5.0
Third Party Advisory
github.com / IdentityPython/pysaml2/security/advisories/GHSA-f4g9-h89h-jgv9
Third Party Advisory
pypi.org / project/pysaml2
ProductThird Party Advisory