CVE-2026-50202: CWE-668: Exposure of Resource to Wrong Sphere in SteeltoeOSS Steeltoe.Security.Authentication.CloudFoundryBase
Steeltoe.Security.Authentication.CloudFoundryBase and related Steeltoe authentication libraries prior to specified versions have a vulnerability where the JWT signing key cache uses the 'kid' value as the sole cache key without differentiating by authority. This can cause tokens from one identity provider to be validated by keys from another in multi-scheme deployments. Additionally, cached keys do not expire, so revoked or rotated keys remain trusted until the application restarts. Fixed versions are available that address this issue.
AI Analysis
Technical Summary
CVE-2026-50202 affects Steeltoe.Security.Authentication.CloudFoundryBase versions prior to 3.4.0, Steeltoe.Security.Authentication.JwtBearer versions prior to 4.2.0, and Steeltoe.Security.Authentication.OpenIdConnect versions prior to 4.2.0. The vulnerability arises because the JWT signing key cache in TokenKeyResolver uses the '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 incorrectly validate tokens for another scheme. Furthermore, cached keys lack expiration, causing rotated or revoked keys to 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 when multiple identity providers are used or restarting the application after key rotation to clear stale cache entries.
Potential Impact
The vulnerability can lead to exposure of resources to the wrong authentication sphere, allowing tokens validated by one identity provider to be accepted by another, potentially enabling unauthorized access. The lack of cache expiration means that revoked or rotated keys remain trusted until application restart, prolonging the window of risk. The CVSS score of 5.9 (medium severity) reflects the network attack vector, high privileges required, and high impact on confidentiality and integrity without affecting availability.
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 remediate the vulnerability. If immediate upgrade is not possible, mitigate by configuring only one JwtBearer scheme per application when multiple identity providers are used, and restart the application process after any identity provider signing key rotation to clear stale cached keys.
CVE-2026-50202: CWE-668: Exposure of Resource to Wrong Sphere in SteeltoeOSS Steeltoe.Security.Authentication.CloudFoundryBase
Description
Steeltoe.Security.Authentication.CloudFoundryBase and related Steeltoe authentication libraries prior to specified versions have a vulnerability where the JWT signing key cache uses the 'kid' value as the sole cache key without differentiating by authority. This can cause tokens from one identity provider to be validated by keys from another in multi-scheme deployments. Additionally, cached keys do not expire, so revoked or rotated keys remain trusted until the application restarts. Fixed versions are available that address this issue.
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 affects Steeltoe.Security.Authentication.CloudFoundryBase versions prior to 3.4.0, Steeltoe.Security.Authentication.JwtBearer versions prior to 4.2.0, and Steeltoe.Security.Authentication.OpenIdConnect versions prior to 4.2.0. The vulnerability arises because the JWT signing key cache in TokenKeyResolver uses the '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 incorrectly validate tokens for another scheme. Furthermore, cached keys lack expiration, causing rotated or revoked keys to 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 when multiple identity providers are used or restarting the application after key rotation to clear stale cache entries.
Potential Impact
The vulnerability can lead to exposure of resources to the wrong authentication sphere, allowing tokens validated by one identity provider to be accepted by another, potentially enabling unauthorized access. The lack of cache expiration means that revoked or rotated keys remain trusted until application restart, prolonging the window of risk. The CVSS score of 5.9 (medium severity) reflects the network attack vector, high privileges required, and high impact on confidentiality and integrity without affecting availability.
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 remediate the vulnerability. If immediate upgrade is not possible, mitigate by configuring only one JwtBearer scheme per application when multiple identity providers are used, and restart the application process after any identity provider signing key rotation 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: 6/17/2026, 10:35:08 PM
Last enriched: 6/17/2026, 10:50:17 PM
Last updated: 6/18/2026, 12:14:10 AM
Views: 5
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.