# CVE-2026-50202: Steeltoe's static JWKS cache shared across schemes and never invalidated

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

- **Severity:** MEDIUM 5.9
- **CVSS:** 5.9 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: High; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.47% (percentile 33, 2026-11-26)
- **CWE:** CWE-668
- **Aliases:** GHSA-7fqc-p256-7pwj
- **Published:** 2026-06-17T21:53:38.208Z
- **Modified:** 2026-07-02T20:56:33.604Z

## Who should check

- Projects that depend on NuGet package Steeltoe.Security.Authentication.JwtBearer (\< 4.2.0)
- Projects that depend on NuGet package Steeltoe.Security.Authentication.OpenIdConnect (\< 4.2.0)
- Projects that depend on NuGet package Steeltoe.Security.Authentication.CloudFoundryBase (\< 3.4.0)
- Anyone running SteeltoeOSS Steeltoe.Security.Authentication.CloudFoundryBase \< 3.4.0
- Anyone running SteeltoeOSS Steeltoe.Security.Authentication.JwtBearer \< 4.2.0
- Anyone running SteeltoeOSS Steeltoe.Security.Authentication.OpenIdConnect \< 4.2.0

## Description

Steeltoe is an open source project that provides a collection of libraries that helps users build cloud-native applications. In Steeltoe.Security.Authentication.CloudFoundryBase prior to version 3.4.0, Steeltoe.Security.Authentication.JwtBearer prior to version 4.2.0, and Steeltoe.Security.Authentication.OpenIdConnect prior to version 4.2.0, the JWT signing key cache in \`TokenKeyResolver\` uses \`kid\` as the sole cache key without namespacing by authority. In applications with multiple \`JwtBearer\` schemes pointing to different identity providers, a key fetched for one scheme can satisfy token validation for another. Additionally, cached keys have no expiration, so rotated or revoked keys remain trusted until the application process restarts. Steeltoe.Security.Authentication.CloudFoundryBase version 3.4.0, Steeltoe.Security.Authentication.JwtBearer version 4.2.0, and Steeltoe.Security.Authentication.OpenIdConnect version 4.2.0 patch the issue. If an immediate upgrade is not possible: In multi-scheme deployments, configure only one \`JwtBearer\` scheme per application when different identity providers are required; and/or restart the application process after an identity provider signing key rotation to clear stale cached keys.

## Affected and fixed versions

- NuGet `Steeltoe.Security.Authentication.JwtBearer`: affected \< 4.2.0; fixed 4.2.0 (osv)
- NuGet `Steeltoe.Security.Authentication.OpenIdConnect`: affected \< 4.2.0; fixed 4.2.0 (osv)
- NuGet `Steeltoe.Security.Authentication.CloudFoundryBase`: affected \< 3.4.0; fixed 3.4.0 (osv)
- SteeltoeOSS Steeltoe.Security.Authentication.CloudFoundryBase: \< 3.4.0 (cvelist)
- SteeltoeOSS Steeltoe.Security.Authentication.JwtBearer: \< 4.2.0 (cvelist)
- SteeltoeOSS Steeltoe.Security.Authentication.OpenIdConnect: \< 4.2.0 (cvelist)

## Mitigation

- Upgrade Steeltoe.Security.Authentication.JwtBearer to 4.2.0 or later.
- Upgrade Steeltoe.Security.Authentication.OpenIdConnect to 4.2.0 or later.
- Upgrade Steeltoe.Security.Authentication.CloudFoundryBase to 3.4.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-50202.md
Affected: Steeltoe.Security.Authentication.JwtBearer < 4.2.0; Steeltoe.Security.Authentication.OpenIdConnect < 4.2.0; Steeltoe.Security.Authentication.CloudFoundryBase < 3.4.0
Fixed in: 4.2.0, 3.4.0

Steps:
1. Search this machine and project for Steeltoe.Security.Authentication.JwtBearer (NuGet), Steeltoe.Security.Authentication.OpenIdConnect (NuGet), Steeltoe.Security.Authentication.CloudFoundryBase (NuGet), SteeltoeOSS Steeltoe.Security.Authentication.CloudFoundryBase, SteeltoeOSS Steeltoe.Security.Authentication.JwtBearer, SteeltoeOSS S…: 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-2026-50202 being exploited?

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

### How serious is CVE-2026-50202?

Medium: CVSS 5.9 (v3.1, scored by CNA). Remote, login needed. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2026-50202?

Steeltoe.Security.Authentication.JwtBearer \< 4.2.0; Steeltoe.Security.Authentication.OpenIdConnect \< 4.2.0; Steeltoe.Security.Authentication.CloudFoundryBase \< 3.4.0.

### Is there a fix for CVE-2026-50202?

Yes. Fixed in 4.2.0, 3.4.0. Upgrade Steeltoe.Security.Authentication.JwtBearer to 4.2.0 or later. Upgrade Steeltoe.Security.Authentication.OpenIdConnect to 4.2.0 or later. Upgrade Steeltoe.Security.Authentication.CloudFoundryBase to 3.4.0 or later.

### How do I check if I'm affected by CVE-2026-50202?

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/SteeltoeOSS/security-advisories/security/advisories/GHSA-7fqc-p256-7pwj>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-50202>
- patch: <https://github.com/SteeltoeOSS/Steeltoe/commit/04db2ace3b806bfe0260bb7d4bda340f241eff48>
- patch: <https://github.com/SteeltoeOSS/Steeltoe/commit/17b27b8be546ae3f83a2f6e91d45e0c84c5314b7>
- other: <https://github.com/SteeltoeOSS/security-advisories>

## 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-2026-50202>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-7fqc-p256-7pwj> (license: <https://creativecommons.org/licenses/by/4.0/>)

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