NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · NuGet

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

mediumCVSS 3.1 5.9GHSA-7fqc-p256-7pwj

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.

Published Jul 2, 2026

Affected packages

Steeltoe.Security.Authentication.JwtBearer

Ecosystem
NuGet
Affected
<= 4.1.0
Fixed in
4.2.0
Check
dotnet list package --include-transitive

Steeltoe.Security.Authentication.OpenIdConnect

Ecosystem
NuGet
Affected
<= 4.1.0
Fixed in
4.2.0
Check
dotnet list package --include-transitive

Steeltoe.Security.Authentication.CloudFoundryBase

Ecosystem
NuGet
Affected
<= 3.3.0
Fixed in
3.4.0
Check
dotnet list package --include-transitive

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology