Intel

AIKIDO-2026-733243

@auth0/auth0-spa-js is vulnerable to Incorrect Authorization

Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Oct 27, 2026
October 27, 2026

50

CVE Score

Medium

Incorrect Authorization

Are you affected? Scan for Free

TL;DR

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.

How do I fix this?

Upgrade the @auth0/auth0-spa-js library to the patch version.

Who does this affect?

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.

Versions

2.11.0 - 2.28.2

Fixed in 2.28.3

Background info

@auth0/auth0-spa-js is vulnerable to Incorrect Authorization in versions 2.11.0 - 2.28.2.

Get secure today,
quickly and for free.

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.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea