GitHub Advisoryadvisory · NuGet

GHSA-7fqc-p256-7pwj Steeltoe's static JWKS cache shared across schemes and never invalidated

MEDIUM Published 2026-07-02 Modified 2026-07-02 Official page ↗
Aliases
CVE-2026-50202
Ecosystem
NuGet
Packages
Steeltoe.Security.Authentication.JwtBearer, Steeltoe.Security.Authentication.OpenIdConnect, Steeltoe.Security.Authentication.CloudFoundryBase
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:N
Weaknesses
CWE-668
Reviewed
2026-07-02

Affected packages

• NuGet Steeltoe.Security.Authentication.JwtBearer: < 4.2.0 → fixed in 4.2.0 • NuGet Steeltoe.Security.Authentication.OpenIdConnect: < 4.2.0 → fixed in 4.2.0 • NuGet Steeltoe.Security.Authentication.CloudFoundryBase: < 3.4.0 → fixed in 3.4.0

Description

Summary 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. Impact In multi-scheme deployments, an attacker who controls one identity provider's signing key can forge tokens accepted by other schemes within the same application. For all applications using `TokenKeyResolver`, a signing key removed from the identity provider's JWKS endpoint remains trusted indefinitely. Mitigations If an immediate upgrade is not possible: • In multi-scheme deployments, configure only one `JwtBearer` scheme per application when different identity providers are required. • Restart the application process after an identity provider signing key rotation to clear stale cached keys.

Related

Alias · CVE (1)

  • CVE-2026-50202 Steeltoe is an open source project that provides a collection of libraries that helps users build cloud-native applications. vulnerability

Weakness · CWE (1)

  • CWE-668 Exposure of Resource to Wrong Sphere weakness

References