# CVE-2020-5268: Subject Confirmation Method not validated in Saml2 Authentication Services for ASP.NET

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.5
- **CVSS:** 6.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:L/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: Low; User interaction: Required; Scope: Changed (impact reaches other components); Confidentiality impact: High; Integrity impact: Low; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 1.09% (percentile 65, 2026-11-26)
- **CWE:** CWE-303
- **Aliases:** GHSA-9475-xg6m-j7pw
- **Published:** 2020-04-21T15:30:37.000Z
- **Modified:** 2026-09-10T03:48:44.099Z

## Who should check

- Projects that depend on NuGet package Sustainsys.Saml2 (\< 1.0.2)
- Anyone running Sustainsys Saml2 \< 1.0.2; \>= 2.0.0, \<= 2.6.0

## Description

In Saml2 Authentication Services for ASP.NET versions before 1.0.2, and between 2.0.0 and 2.6.0, there is a vulnerability in how tokens are validated in some cases. Saml2 tokens are usually used as bearer tokens - a caller that presents a token is assumed to be the subject of the token. There is also support in the Saml2 protocol for issuing tokens that is tied to a subject through other means, e.g. holder-of-key where possession of a private key must be proved. The Sustainsys.Saml2 library incorrectly treats all incoming tokens as bearer tokens, even though they have another subject confirmation method specified. This could be used by an attacker that could get access to Saml2 tokens with another subject confirmation method than bearer. The attacker could then use such a token to create a log in session. This vulnerability is patched in versions 1.0.2 and 2.7.0.

## Affected and fixed versions

- NuGet `Sustainsys.Saml2`: affected \< 1.0.2; fixed 1.0.2, 2.7.0 (osv)
- Sustainsys Saml2: \< 1.0.2; \>= 2.0.0, \<= 2.6.0 (cvelist)

## Mitigation

- Upgrade Sustainsys.Saml2 to one of 1.0.2, 2.7.0 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2020-5268. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2020-5268.md
Affected: Sustainsys.Saml2 < 1.0.2
Fixed in: 1.0.2, 2.7.0

Steps:
1. Search this machine and project for Sustainsys.Saml2 (NuGet), Sustainsys Saml2: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2020-5268 being exploited?

There is no confirmed exploitation: CVE-2020-5268 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.09% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2020-5268?

Medium: CVSS 6.5 (v3.1, scored by CNA). Remote, login needed. A user has to take an action, such as opening a link, for the attack to work. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2020-5268?

Sustainsys.Saml2 \< 1.0.2.

### Is there a fix for CVE-2020-5268?

Yes. Fixed in 1.0.2, 2.7.0. Upgrade Sustainsys.Saml2 to one of 1.0.2, 2.7.0 (or later in the same release line).

### How do I check if I'm affected by CVE-2020-5268?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/Sustainsys/Saml2/security/advisories/GHSA-9475-xg6m-j7pw>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2020-5268>
- patch: <https://github.com/Sustainsys/Saml2/commit/e58e0a1aff2b1ead6aca080b7cdced55ee6d5241>
- other: <https://github.com/Sustainsys/Saml2/issues/712>
- other: <https://www.nuget.org/packages/Sustainsys.Saml2/>
- other: <https://www.nuget.org/packages/Sustainsys.Saml2>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2020-5268>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-9475-xg6m-j7pw> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2020-5268> · JSON: <https://flawdb.com/api/v1/entries/CVE-2020-5268>
