SuperTokens Core: SAML callback accepts a replayed RelayState + SAMLResponse, minting a fresh authorization code on each replay

Summary

CVECVE-2026-123801
StatePUBLISHED
AssignerGitHub_M
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-11-09 19:16:46 UTC
Updated2026-11-09 19:16:46 UTC
DescriptionSuperTokens 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.

Risk And Classification

Primary CVSS: v3.1 7.4 HIGH from [email protected]

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N

Problem Types: CWE-294 | CWE-346 | CWE-384 | CWE-294 CWE-294: Authentication Bypass by Capture-replay | CWE-346 CWE-346: Origin Validation Error | CWE-384 CWE-384: Session Fixation


VersionSourceTypeScoreSeverityVector
3.1[email protected]Secondary7.4HIGHCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
3.1CNADECLARED7.4HIGHCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N

CVSS v3.1 Breakdown

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

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Supertokens Supertokens-core affected >= 11.3.0, < 11.3.8 Not specified
CNA Supertokens Supertokens-core affected >= 11.4.0, < 11.4.8 Not specified
CNA Supertokens Supertokens-core affected >= 12.0.0, < 12.0.11 Not specified
CNA Supertokens Supertokens-core affected >= 12.1.0, < 12.1.2 Not specified
CNA Supertokens Supertokens-core affected >= 12.2.0, < 12.2.1 Not specified
CNA Supertokens Supertokens-core affected >= 12.3.0, < 12.3.1 Not specified

References

ReferenceSourceLinkTags
github.com/supertokens/supertokens-core/releases/tag/v12.2.1 [email protected] github.com
github.com/supertokens/supertokens-core/security/advisories/GHSA-3r7x-rh... [email protected] github.com
github.com/supertokens/supertokens-core/releases/tag/v12.3.1 [email protected] github.com
github.com/supertokens/supertokens-core/releases/tag/v12.0.11 [email protected] github.com
github.com/supertokens/supertokens-core/commit/ca2bca9bc900c2fd399d50881... [email protected] github.com
github.com/supertokens/supertokens-core/commit/075655222f5e72f3683a127e4... [email protected] github.com
github.com/supertokens/supertokens-core/commit/5c42f02e98f67174c6a5a800d... [email protected] github.com
github.com/supertokens/supertokens-core/commit/557835406547d269f5d0e3315... [email protected] github.com
github.com/supertokens/supertokens-core/releases/tag/v11.4.8 [email protected] github.com
github.com/supertokens/supertokens-core/releases/tag/v11.3.8 [email protected] github.com
github.com/supertokens/supertokens-core/commit/4e05d8cf60287e9d272014003... [email protected] github.com
github.com/supertokens/supertokens-core/releases/tag/v12.1.2 [email protected] github.com
github.com/supertokens/supertokens-core/commit/b6730e608b2d4562939cd4f41... [email protected] github.com
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report