SuperTokens Core: SAML callback accepts a replayed RelayState + SAMLResponse, minting a fresh authorization code on each replay
CVE-2026-123801Published 9 Nov 2026, 18:18 UTC
Real-world risk
3.1/ 10Low
Routine
PreliminaryFrom the CVSS vector only · confidence low
CVSS
7.4
scored by the vendor (CNA), CVSS 3.1
In plain words
No plain-language summary yet. The original description is below.
Original description (from GitHub_M)
SuperTokens Core is an open source authentication server. From 11.3.0 until 11.3.8, 11.4.8, 12.0.11, 12.1.2, 12.2.1, and 12.3.1, SAML.handleCallback does not consume RelayState, record assertion identifiers, or enforce Response.InResponseTo. In the SP-initiated flow, an attacker who obtains a legitimately issued, still-valid SAML response and its matching RelayState can resubmit the pair to /recipe/saml/callback before the assertion's NotOnOrAfter time; in the IdP-initiated flow, the assertion can be replayed without RelayState. The missing Response.InResponseTo check also permits an in-progress login to be completed with an assertion for a different identity and fails to enforce allowIDPInitiatedLogin=false. The callback does not validate Destination or SubjectConfirmationData Recipient and NotOnOrAfter, and each accepted callback mints a fresh, independently redeemable authorization code carrying the captured user's identity. This issue is fixed in versions 11.3.8, 11.4.8, 12.0.11, 12.1.2, 12.2.1, and 12.3.1.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| supertokens-coreNiche | >= 11.3.0, < 11.3.8; >= 11.4.0, < 11.4.8; >= 12.0.0, < 12.0.11; >= 12.1.0, < 12.1.2; >= 12.2.0, < 12.2.1; >= 12.3.0, < 12.3.1 | 11.3.8, 11.4.8, 12.0.11, 12.1.2, 12.2.1, 12.3.1 |
What to do
Update to a fixed version: 11.3.8, 11.4.8, 12.0.11, 12.1.2, 12.2.1, 12.3.1.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Major data exposureReads secrets, credentials, databases, arbitrary files | From the CVSS vector | 0.80 |
| Attacker position | InternetAnyone on the Internet can reach a typical deployment | From the CVSS vector | 1.00 |
| Privileges needed | NoneNo account | From the CVSS vector | 1.00 |
| Victim interaction | NoneNothing | From the CVSS vector | 1.00 |
| Configuration | DefaultOut-of-the-box installs are vulnerable | From the CVSS vector | 1.00 |
| Reliability | HardNarrow race, needs an extra info leak, needs a man-in-the-middle position, or must be chained with another bug | From the CVSS vector | 0.45 |
Threat level T1: Nothing known (× 0.85)
The default for a new disclosure
EPSS 0.4% chance of exploitation in 30 days (percentile 34), as of 2026-12-06.
The arithmetic
- Prerequisites multiplied together0.450
- Threat T1: Nothing known0.850
- 10 × impact 0.8 × prerequisites 0.45 × threat 0.853.060
- Rounded to one decimal between 0.1 and 103.1
Exploitation and evidence timeline
- 9 Nov 2026 Published
- 3 Dec 2026 Risk 3.1 (cvss fallback)
Weakness
CWE-294, CWE-346, CWE-384
References
- https://github.com/supertokens/supertokens-core/security/advisories/GHSA-3r7x-rhvc-fw28vendor-advisory
- https://github.com/supertokens/supertokens-core/commit/075655222f5e72f3683a127e45c83c4174fbd4f7misc
- https://github.com/supertokens/supertokens-core/commit/4e05d8cf60287e9d2720140031a8b8f4430d056fmisc
- https://github.com/supertokens/supertokens-core/commit/557835406547d269f5d0e33159630a1873461c38misc
- https://github.com/supertokens/supertokens-core/commit/5c42f02e98f67174c6a5a800dd9f8bd5b6e98486misc
- https://github.com/supertokens/supertokens-core/commit/b6730e608b2d4562939cd4f41ea07df5f841dfe5misc
- https://github.com/supertokens/supertokens-core/commit/ca2bca9bc900c2fd399d508818ad026cc977dcf6misc
- https://github.com/supertokens/supertokens-core/releases/tag/v11.3.8misc
- https://github.com/supertokens/supertokens-core/releases/tag/v11.4.8misc
- https://github.com/supertokens/supertokens-core/releases/tag/v12.0.11misc
- https://github.com/supertokens/supertokens-core/releases/tag/v12.1.2misc
- https://github.com/supertokens/supertokens-core/releases/tag/v12.2.1misc
- https://github.com/supertokens/supertokens-core/releases/tag/v12.3.1misc
- CVE-2026-123801 on CVE.org