GHSA-7fqc-p256-7pwj
Steeltoe's static JWKS cache shared across schemes and never invalidated
Quick fix
GHSA-7fqc-p256-7pwj — Steeltoe.Security.Authentication.JwtBearer: upgrade to the fixed version with the command below.
dotnet add package Steeltoe.Security.Authentication.JwtBearer --version 4.2.0Details
### 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.
Are you affected?
Enter the version of the package you're using.
Affected packages
0Fixed in: 4.2.0dotnet add package Steeltoe.Security.Authentication.JwtBearer --version 4.2.00Fixed in: 4.2.0dotnet add package Steeltoe.Security.Authentication.OpenIdConnect --version 4.2.00Fixed in: 3.4.0dotnet add package Steeltoe.Security.Authentication.CloudFoundryBase --version 3.4.0References
- https://github.com/SteeltoeOSS/security-advisories/security/advisories/GHSA-7fqc-p256-7pwj[WEB]
- https://nvd.nist.gov/vuln/detail/CVE-2026-50202[ADVISORY]
- https://github.com/SteeltoeOSS/Steeltoe/commit/04db2ace3b806bfe0260bb7d4bda340f241eff48[WEB]
- https://github.com/SteeltoeOSS/Steeltoe/commit/17b27b8be546ae3f83a2f6e91d45e0c84c5314b7[WEB]
- https://github.com/SteeltoeOSS/security-advisories[PACKAGE]