@auth0/auth0-spa-js is vulnerable to Incorrect Authorization
50
CVE Score
Medium
Incorrect Authorization
The public methods loginWithCustomTokenExchange() and deprecated exchangeToken() exchange a subject_token for Auth0 tokens and cache an authenticated session, including an organization taken from the call or from authorizationParams.organization. That organization is sent on the token request but, before the fix, is not passed as additionalParameters to _requestToken, so _verifyIdToken never compares the ID token org_id or org_name claim with the requested organization. The fix passes the resolved organization into _requestToken, and _verifyIdToken rejects a missing or mismatched organization claim before the session is saved.
Upgrade the @auth0/auth0-spa-js library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and you call loginWithCustomTokenExchange or exchangeToken while an organization is set on that call or on authorizationParams.organization.
2.11.0 - 2.28.2
Fixed in 2.28.3@auth0/auth0-spa-js is vulnerable to Incorrect Authorization in versions 2.11.0 - 2.28.2.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.