/

CVE-2026-123800

Severity:

CRITICAL RISK

(9.9)

Authorization Bypass (CWE-863) in SuperTokens Core

CVE-2026-123800

Deferred

Vulnerability type

Category:

Authorization Bypass

CWE:

CWE-639, CWE-863

Impact:

Cross-tenant access and authentication configuration tampering

Severity:

CRITICAL RISK

(9.9)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

A flaw in SuperTokens Core's multitenancy authorization checks can let a valid application API key update settings beyond that application's permitted scope. In qualifying licensed multi-tenant deployments, this can expose sibling applications; a separate base-tenant path can let requests without an identifier change authentication settings.

Affected context

The issue affects SuperTokens Core multitenant deployments using the affected create-or-update handlers. The higher-impact parent-domain scenario requires multiple applications under one non-default connection URI domain, separate API keys, and an attacker with a valid key for one application. A distinct base-tenant scenario occurs when the optional identifier is omitted; that path can bypass permission and enterprise-feature checks for certain settings, but does not establish key theft or allow changes to coreConfig.

Exploit preconditions

  • Attack surface: SuperTokens Core's multitenancy create-or-update API handlers.
  • Required access: A valid API key for one application for the parent-domain scenario; the base-tenant path is triggered by a request that omits the optional identifier.
  • Deployment conditions: The parent-domain scenario requires a licensed multi-tenant deployment with multiple applications under one non-default connection URI domain and separate API keys.
  • Trigger point: An update targeting the parent domain, or a create-or-update request targeting the base tenant by omitting the identifier.
  • Why exploitation is possible: Authorization checks do not adequately constrain parent-domain updates to a public source application and tenant; the base-tenant target skips relevant permission branches and the enterprise-feature gate.

Why this happens

The authorization logic does not consistently bind an update target to the caller's authorized application and tenant. In the parent-domain branch, the target domain is checked without the required public-source constraints, allowing an application API key to affect a broader scope. In the base-tenant case, omitting the optional identifier leads to a target that bypasses permission branches and an enterprise-feature gate. These are authorization enforcement failures, mapping primarily to CWE-863: Incorrect Authorization; the ability to affect resources through a caller-controlled target also relates to CWE-639.

Potential impact

  • An attacker with the required application API key may be able to replace the parent-domain API key and then alter sibling application keys.
  • Sibling application users may be exposed to unauthorized reading or modification.
  • An attacker may be able to obtain sessions as sibling users or establish persistence through a sibling dashboard user.
  • A sibling application may be locked out when its key is replaced.
  • Base-tenant updates may change first factors, required secondary factors, or recipe-enabled flags, potentially disrupting login integrity or availability.

General mitigation guidance

Defensive approaches center on enforcing authorization against the complete target scope before applying any update.

  • Bind each operation to the authenticated application's permitted tenant and domain, and explicitly authorize parent-scope changes.
  • Apply permission checks and feature-entitlement checks consistently to base-tenant and identified-tenant targets.
  • Treat omitted identifiers as an explicit, well-defined target rather than allowing them to bypass authorization logic.
  • Limit API-key scope and privileges, protect key changes with narrowly scoped controls, and monitor administrative configuration changes.
  • Validate requested changes against an explicit allowlist and preserve least privilege for applications and operators.

How teams detect issues like this

  • Review authorization branches for inconsistent checks across parent-domain, base-tenant, and identified-tenant targets.
  • Use static analysis or targeted code review to trace caller identity and API-key scope through create-or-update handlers to each modified resource.
  • Test requests with omitted identifiers and cross-application targets, including checks that permission and feature gates apply on every path.
  • Enforce policy checks in CI for tenant-boundary invariants, and monitor for unexpected changes to domain settings, API keys, factors, and recipe flags.

Sources

SourceLink
github.comgithub.com/supertokens/supertokens-core/commit/13c3de170dd40dd217db0f6bd2bded0948476a42
github.comgithub.com/supertokens/supertokens-core/commit/1cc02b971f064c2fa2d9bc74b9e85795fdc6a7e5
github.comgithub.com/supertokens/supertokens-core/commit/1d9dcb03ce0691d9b8abee48f86cc2729a6008cb
github.comgithub.com/supertokens/supertokens-core/commit/337bb3eba812a5ee52d57854701820a0580b6050
github.comgithub.com/supertokens/supertokens-core/commit/4902b713f31306ca41148070d10b6185f0e85201
github.comgithub.com/supertokens/supertokens-core/commit/4d1ef0e177681f4f74995e4a25a17d224effe115
github.comgithub.com/supertokens/supertokens-core/commit/61bfd3ebde1cf4b092da85ee884fa15e288aad51
github.comgithub.com/supertokens/supertokens-core/commit/64dfa92c50a2ec288fe787ee5c2fad45548a6475
github.comgithub.com/supertokens/supertokens-core/commit/8db9b0c39f97f240e116821434d4eb3c907faccf
github.comgithub.com/supertokens/supertokens-core/commit/8e48ef856becbaaeb50ad4c915be1d7ce279416b
github.comgithub.com/supertokens/supertokens-core/commit/9b0d3a9fdbdcb48dd7dd9d520075bbefbae3cf9b
github.comgithub.com/supertokens/supertokens-core/commit/a186f1013c784de8a796a732e925e1870fec0f40
github.comgithub.com/supertokens/supertokens-core/commit/b58bc3d03549d20495df71c03ef5478799c184db
github.comgithub.com/supertokens/supertokens-core/commit/bf6184f027a99bd1b3b1df3d20e376dda6521399
github.comgithub.com/supertokens/supertokens-core/commit/c6d7dc7d73b9bb3075b3f7a1a0c0c5780430c292
github.comgithub.com/supertokens/supertokens-core/commit/df79f3b4399ef31aea4cb44cc7b65761a2cb94a7
github.comgithub.com/supertokens/supertokens-core/commit/e616f4002c31d256f9ff6cb3d3685b924ef53a6d
github.comgithub.com/supertokens/supertokens-core/commit/ff9ca3ec53861a91996c4e9581fa6f2e01331736
github.comgithub.com/supertokens/supertokens-core/releases/tag/v10.0.8
github.comgithub.com/supertokens/supertokens-core/releases/tag/v10.1.9
github.comgithub.com/supertokens/supertokens-core/releases/tag/v11.0.9
github.comgithub.com/supertokens/supertokens-core/releases/tag/v11.1.4
github.comgithub.com/supertokens/supertokens-core/releases/tag/v11.2.4
github.comgithub.com/supertokens/supertokens-core/releases/tag/v11.3.8
github.comgithub.com/supertokens/supertokens-core/releases/tag/v11.4.8
github.comgithub.com/supertokens/supertokens-core/releases/tag/v12.0.11
github.comgithub.com/supertokens/supertokens-core/releases/tag/v12.1.2
github.comgithub.com/supertokens/supertokens-core/releases/tag/v12.2.1
github.comgithub.com/supertokens/supertokens-core/releases/tag/v12.3.1
github.comgithub.com/supertokens/supertokens-core/releases/tag/v6.0.24
github.comgithub.com/supertokens/supertokens-core/releases/tag/v7.0.23
github.comgithub.com/supertokens/supertokens-core/releases/tag/v8.0.7
github.comgithub.com/supertokens/supertokens-core/releases/tag/v9.0.6
github.comgithub.com/supertokens/supertokens-core/releases/tag/v9.1.6
github.comgithub.com/supertokens/supertokens-core/releases/tag/v9.2.7
github.comgithub.com/supertokens/supertokens-core/releases/tag/v9.3.5
github.comgithub.com/supertokens/supertokens-core/security/advisories/GHSA-4rf2-xqvf-8rcx

Frequently asked

questions

It can be triggered through the affected API handlers when the attacker has the necessary API-key access and deployment conditions. The parent-domain scenario is not an unauthenticated attack.

The parent-domain scenario requires a valid API key for one application in the specified licensed multi-tenant arrangement. The separate base-tenant issue involves a request that omits the optional identifier.

Authorize every operation against the caller's identity and the exact tenant or domain being changed, including base-tenant targets, before applying updates.

Test authorization consistently across target-selection branches, treat missing identifiers explicitly, and enforce tenant-scoped API-key privileges and policy checks.

Find out what's already
exploitable in your codebase.