Skip to main content

SuperTokens Core CVE-2026-123804

| EUVDEUVD-2026-120229 MEDIUM
Race Condition (CWE-362)
2026-11-09 security-advisories@github.com
6.8
CVSS 3.1 · Vendor: github
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Control a linked login method
  2. Delivery
    Begin createNewSession, read primary user id
  3. Exploit
    Race against concurrent unlinkAccounts revocation
  4. Execution
    Insert session row after revocation snapshot
  5. Impact
    Retain signed refreshable session as former primary identity

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V15 - Secure Coding and Architecture Concurrency control, locking
MITRE ATT&CK

1 technique across 1 tactic: Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires: (1) an authenticated attacker who controls at least one linked login method on a SuperTokens Core user account (versions 7.0.0 through the listed fixed releases); (2) a concurrent unlinkAccounts operation on that method, with the attacker's createNewSession call interleaved precisely in the window between the primary-user read and the session-row insert, after unlink's revocation has enumerated existing sessions; and (3) database-backed session verification, since the advisory notes the surviving session is accepted because 'the row is found' on lookup. Limiting factors that reduce realistic risk: the attacker must win a narrow TOCTOU race (reflected as AC:H), must already hold a controlled linked login method (PR:L, not an unauthenticated outsider), and the attack coincides only with an unlink event. The token is core-signed, so this is not forgery. Per the advisory there is no configuration-level workaround; shortening session lifetimes only reduces exposure window, and updating to a fixed version is the complete fix.

Impact

This is a legitimate but moderate-priority issue, consistent with its 6.8 CVSS score and the vuln.today 'this_month' decision label (not act_now or emergency). The CVSS vector (AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N) captures the key tension: high confidentiality and integrity impact, but gated by high attack complexity (AC:H, a TOCTOU race window) and required low-level privileges (PR:L - the attacker must already control a linked login method on the target account). No EPSS score was supplied and the CVE is NOT on CISA KEV, so there is no_signal of mass or active exploitation. No PoC or exploit reference is present in the input - only vendor patch commits and the GHSA advisory - so there is no public exploit identified at time of analysis. The practical risk is targeted rather than widespread: exploitation requires an authenticated user who controls a linked login method to win a narrow timing race against an unlink operation. It is a real correctness/authentication-lifecycle flaw worth patching within a normal cycle, not a drop-everything emergency. One gap to note: the GHSA package table lists the >= 7.0.0, < 11.0.0 branch as 'not yet patched' at advisory time, while the CVE description states all branches are fixed - verify fix availability for any 7.x-10.x deployment with the vendor.

Exploit ScenarioDerived

An attacker who already controls one linked login method on a multi-method SuperTokens user account initiates session creation at the same moment an administrator (or automated flow) unlinks that method from the primary user. By hitting the window between createNewSession reading the primary user id and inserting the session row, the attacker obtains a core-signed, database-backed, refreshable session as the former primary identity that survives the unlink's session revocation. No public exploit code is identified; success depends on repeatedly timing the race (AC:H) and holding control of a linked login method (PR:L).

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 09, 2026

Session revocation bypass in SuperTokens Core allows a user who already controls a linked login method to keep a signed, database-backed, refreshable session as the former primary identity even after that login method is unlinked. The flaw is a race between createNewSession, which reads the primary user and later inserts the session row without taking the account lock, and unlinkAccounts, which detaches the method, commits and only then enumerates and revokes existing sessions - a session inserted after that revocation snapshot survives until expiry or explicit revocation. Affected releases are 7.0.0 through 11.0.9, 11.1.4, 11.2.4, 11.3.8, 11.4.8, 12.0.11, 12.1.2, 12.2.1 and 12.3.1; exploitation requires winning a narrow timing window during an unlink event, which is reflected in the 6.8 score and high attack complexity, and no public exploit has been identified at time of analysis.

RemediationAI

Vendor-released patch: 11.0.9, 11.1.4, 11.2.4, 11.3.8, 11.4.8, 12.0.11, 12.1.2, 12.2.1 and 12.3.1 - upgrade to the fixed release matching your deployment branch; note that the advisory's package table lists the >= 7.0.0, < 11.0.0 range as not yet patched, so lines older than 11.0 must move to a fixed release rather than expect a backport. The fixes are visible in the referenced commits to src/main/java/io/supertokens/authRecipe/AuthRecipe.java and src/main/java/io/supertokens/session/Session.java (for example 182b39454ac44649cdef22d87f296a38a0b1a602 and 378e1157dc26232a518d2c360ee60cf93c2fd8a2), with release notes at https://github.com/supertokens/supertokens-core/releases/tag/v11.0.9 and the advisory at https://github.com/supertokens/supertokens-core/security/advisories/GHSA-2pc4-vw9j-454c. Per the advisory there is no configuration-level workaround; keeping session lifetimes short only reduces the exposure window and does not close it, so updating to a fixed version is the complete fix, and the advisory cautions that post-insert read-and-delete compensating logic is insufficient because it opens another TOCTOU window.

Affected VersionsENISA

supertokens-core 11.0.0, < 11.0.9
supertokens-core 11.1.0, < 11.1.4
supertokens-core 11.3.0, < 11.3.8
supertokens-core 12.3.0, < 12.3.1
supertokens-core 11.4.0, < 11.4.8
supertokens-core 12.0.0, < 12.0.11
supertokens-core 7.0.0, < 11.0.0
supertokens-core 12.1.0, < 12.1.2
supertokens-core 11.2.0, < 11.2.4
supertokens-core 12.2.0, < 12.2.1

Affected Packages

euvd supertokens_core fix: 11.0.0, 11.0.9, 11.1.4, 11.2.4, 11.3.8, 11.4.8, 12.0.11, 12.1.2, 12.2.1, 12.3.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

SuperTokens Core is an open source authentication server (Java, source paths under src/main/java/io/supertokens/) that issues and verifies signed session tokens backed by database rows for the Session and AuthRecipe (account linking) recipes. The root cause is a time-of-check/time-of-use condition mapped to CWE-362 (concurrent execution using shared resource with improper synchronization) and, in the upstream GitHub advisory GHSA-2pc4-vw9j-454c, additionally CWE-613 (insufficient session expiration). unlinkAccounts detaches a login method under a per-user lock, commits, and then revokes sessions; createNewSession resolves the current primary user, signs a token, and inserts the session row without acquiring that same lock. An interleaving in which session creation reads the stale primary user id, unlink commits and its revocation enumerates and deletes the sessions it can see, and session creation then inserts its row after that snapshot, yields a core-signed (not forged) token whose row is found by database-backed verification and whose refresh token remains usable. The upstream fix serializes identity resolution and row insertion under the same user lock as link/unlink within one transaction and deletes sessions by recipe user id inside unlink's own transaction; the advisory explicitly notes that a post-insert read-and-delete approach would leave another TOCTOU window and is insufficient. The supplied commit diffs touch AuthRecipe.java (unlinkAccounts) and Session.java (createNewSession), including removal of a transaction/audit annotation that had described serialization against account link/unlink.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (github) PRIMARY 6.8 MEDIUM
AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
vuln.today AI 6.8 MEDIUM

Network-reachable API but a narrow TOCTOU race (AC:H) and prior control of a linked login method (PR:L); surviving session grants account access (C:H/I:H), no availability effect (A:N).

3.1 AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
4.0 AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Network
Attack Complexity
High
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

Lifecycle Timeline

1
Patch available
Nov 09, 2026 - 20:03 EUVD

DescriptionCVE.org

SuperTokens Core is an open source authentication server. From 7.0.0 until 11.0.9, 11.1.4, 11.2.4, 11.3.8, 11.4.8, 12.0.11, 12.1.2, 12.2.1, and 12.3.1, createNewSession can resolve a primary user before unlinkAccounts detaches a login method and then insert the session after unlink has enumerated and revoked the existing sessions. A user who controls the linked login method can exploit this race to retain a signed, database-backed, refreshable session as the former primary identity after that method is unlinked; the session persists until expiry or explicit revocation. This issue is fixed in versions 11.0.9, 11.1.4, 11.2.4, 11.3.8, 11.4.8, 12.0.11, 12.1.2, 12.2.1, and 12.3.1.

Threat Intelligence Overview

EPSS Score
0.4%
Top 69% exploitable
Prevalence
Medium
popular open-source auth server, common but not ubiquitous in deployments
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

34
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Race conditions occur when multiple concurrent requests exploit the brief time gap between checking a condition and acting upon it (TOCTOU - Time of Check, Time of Use).

References

Advisories & patches
REF https://github.com/supertokens/supertokens-core/commit/182b39454ac44649cdef22d87f296a38a0b1a602 REF https://github.com/supertokens/supertokens-core/commit/378e1157dc26232a518d2c360ee60cf93c2fd8a2 REF https://github.com/supertokens/supertokens-core/commit/5aec64aca6d765cde491658210e6922e291742fd REF https://github.com/supertokens/supertokens-core/commit/b1c569ed59fffe16c2f657da1754abcae47d2761 REF https://github.com/supertokens/supertokens-core/commit/b44f1e1418206f411e541501c2e5b9b147add0d9 REF https://github.com/supertokens/supertokens-core/commit/bb6d5f8d1b79770e3cc37f214ba94c3e36e9c3b8 REF https://github.com/supertokens/supertokens-core/commit/c0b7f5eda20840f63f6b0f171d22bd49a7a609a1 REF https://github.com/supertokens/supertokens-core/commit/c8b48e843b323cd749dcb17b6b81c190e7882a43 REF https://github.com/supertokens/supertokens-core/commit/c950a01794cf0983ebd62412976cb80756bf5dd0 REF https://github.com/supertokens/supertokens-core/commit/d456dfbc02f2f7d68be7c05d876bdaa086f9a5b5 REF https://github.com/supertokens/supertokens-core/commit/fc273f5157d3e96f147aa42773607d627d3b495f REF https://github.com/supertokens/supertokens-core/releases/tag/v11.0.9 REF https://github.com/supertokens/supertokens-core/releases/tag/v11.1.4 REF https://github.com/supertokens/supertokens-core/releases/tag/v11.2.4 REF https://github.com/supertokens/supertokens-core/releases/tag/v11.3.8 REF https://github.com/supertokens/supertokens-core/releases/tag/v11.4.8 REF https://github.com/supertokens/supertokens-core/releases/tag/v12.0.11 REF https://github.com/supertokens/supertokens-core/releases/tag/v12.1.2 REF https://github.com/supertokens/supertokens-core/releases/tag/v12.2.1 REF https://github.com/supertokens/supertokens-core/releases/tag/v12.3.1 REF https://github.com/supertokens/supertokens-core/security/advisories/GHSA-2pc4-vw9j-454c

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy