CVE-2026-50202: CWE-668: Exposure of Resource to Wrong Sphere in SteeltoeOSS Steeltoe.Security.Authentication.CloudFoundryBase
A vulnerability in Steeltoe.Security.Authentication.CloudFoundryBase and related Steeltoe authentication libraries prior to certain versions allows improper caching of JWT signing keys. The cache uses the 'kid' value without namespacing by authority, causing keys from one identity provider to be incorrectly trusted for another in multi-scheme applications. Cached keys also do not expire, so revoked or rotated keys remain trusted until the application restarts. Fixed versions address this issue by properly namespacing and managing cache expiration.
AI Analysis
Technical Summary
CVE-2026-50202 describes a vulnerability in Steeltoe.Security.Authentication.CloudFoundryBase versions prior to 3.4.0, Steeltoe.Security.Authentication.JwtBearer prior to 4.2.0, and Steeltoe.Security.Authentication.OpenIdConnect prior to 4.2.0. The JWT signing key cache in the TokenKeyResolver class uses the 'kid' (key ID) as the sole cache key without differentiating by authority. This flaw allows a key fetched for one JwtBearer scheme to validate tokens for another scheme when multiple schemes with different identity providers are used in the same application. Additionally, cached keys do not expire, so rotated or revoked keys remain trusted until the application process restarts. The issue is patched in versions 3.4.0, 4.2.0, and 4.2.0 respectively. Workarounds include limiting to one JwtBearer scheme per application or restarting the application after key rotation.
Potential Impact
This vulnerability can lead to exposure of resources to the wrong authentication sphere, allowing tokens validated against one identity provider to be accepted by another, potentially enabling unauthorized access. The lack of cache expiration means revoked or rotated keys remain trusted, increasing the window of risk until application restart. The CVSS score of 5.9 (medium severity) reflects the network attack vector, high privileges required, and high impact on confidentiality and integrity without availability impact.
Mitigation Recommendations
A fix is available in 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. Users should upgrade to these versions to resolve the issue. If immediate upgrade is not feasible, mitigate by configuring only one JwtBearer scheme per application when using different identity providers, or restart the application process after identity provider signing key rotations to clear stale cached keys.
CVE-2026-50202: CWE-668: Exposure of Resource to Wrong Sphere in SteeltoeOSS Steeltoe.Security.Authentication.CloudFoundryBase
Description
A vulnerability in Steeltoe.Security.Authentication.CloudFoundryBase and related Steeltoe authentication libraries prior to certain versions allows improper caching of JWT signing keys. The cache uses the 'kid' value without namespacing by authority, causing keys from one identity provider to be incorrectly trusted for another in multi-scheme applications. Cached keys also do not expire, so revoked or rotated keys remain trusted until the application restarts. Fixed versions address this issue by properly namespacing and managing cache expiration.
CVSS v3.1
Score 5.9medium
Affected software
pkg:nuget/SteeltoeOSS/steeltoe.security.authentication.cloudfoundrybasepkg:nuget/SteeltoeOSS/steeltoe.security.authentication.jwtbearerpkg:nuget/SteeltoeOSS/steeltoe.security.authentication.openidconnectRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-50202 describes a vulnerability in Steeltoe.Security.Authentication.CloudFoundryBase versions prior to 3.4.0, Steeltoe.Security.Authentication.JwtBearer prior to 4.2.0, and Steeltoe.Security.Authentication.OpenIdConnect prior to 4.2.0. The JWT signing key cache in the TokenKeyResolver class uses the 'kid' (key ID) as the sole cache key without differentiating by authority. This flaw allows a key fetched for one JwtBearer scheme to validate tokens for another scheme when multiple schemes with different identity providers are used in the same application. Additionally, cached keys do not expire, so rotated or revoked keys remain trusted until the application process restarts. The issue is patched in versions 3.4.0, 4.2.0, and 4.2.0 respectively. Workarounds include limiting to one JwtBearer scheme per application or restarting the application after key rotation.
Potential Impact
This vulnerability can lead to exposure of resources to the wrong authentication sphere, allowing tokens validated against one identity provider to be accepted by another, potentially enabling unauthorized access. The lack of cache expiration means revoked or rotated keys remain trusted, increasing the window of risk until application restart. The CVSS score of 5.9 (medium severity) reflects the network attack vector, high privileges required, and high impact on confidentiality and integrity without availability impact.
Mitigation Recommendations
A fix is available in 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. Users should upgrade to these versions to resolve the issue. If immediate upgrade is not feasible, mitigate by configuring only one JwtBearer scheme per application when using different identity providers, or restart the application process after identity provider signing key rotations to clear stale cached keys.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-06-03T22:05:13.646Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a33211cf198dc38c11fab3a
Added to database: 06/17/2026, 22:35:08 UTC
Last enriched: 07/02/2026, 23:07:05 UTC
Last updated: 07/15/2026, 07:47:31 UTC
Views: 78
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.