{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "11.3.0"
                  },
                  {
                    "fixed": "11.3.8"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StringRangeExpression"
              },
              {
                "range": [
                  {
                    "introduced": "11.4.0"
                  },
                  {
                    "fixed": "11.4.8"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StringRangeExpression"
              },
              {
                "range": [
                  {
                    "introduced": "12.0.0"
                  },
                  {
                    "fixed": "12.0.11"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StringRangeExpression"
              },
              {
                "range": [
                  {
                    "introduced": "12.1.0"
                  },
                  {
                    "fixed": "12.1.2"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StringRangeExpression"
              },
              {
                "range": [
                  {
                    "introduced": "12.2.0"
                  },
                  {
                    "fixed": "12.2.1"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StringRangeExpression"
              },
              {
                "range": [
                  {
                    "introduced": "12.3.0"
                  },
                  {
                    "fixed": "12.3.1"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StringRangeExpression"
              },
              {
                "range": [
                  {
                    "fixed": "075655222f5e72f3683a127e45c83c4174fbd4f7"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "range": [
                  {
                    "fixed": "4e05d8cf60287e9d2720140031a8b8f4430d056f"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "range": [
                  {
                    "fixed": "557835406547d269f5d0e33159630a1873461c38"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "range": [
                  {
                    "fixed": "5c42f02e98f67174c6a5a800dd9f8bd5b6e98486"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "range": [
                  {
                    "fixed": "b6730e608b2d4562939cd4f41ea07df5f841dfe5"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "range": [
                  {
                    "fixed": "ca2bca9bc900c2fd399d508818ad026cc977dcf6"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "original_tag": "v11.3.8",
                "range": [
                  {
                    "fixed": "62731e844563c1ec122d092cb43f0dc4c2aa5464"
                  }
                ],
                "source": "REFERENCES_TAG"
              },
              {
                "original_tag": "v11.4.8",
                "range": [
                  {
                    "fixed": "b70c3acf216445bdc1465c35524fce134a1c68f6"
                  }
                ],
                "source": "REFERENCES_TAG"
              },
              {
                "original_tag": "v12.0.11",
                "range": [
                  {
                    "fixed": "ff2eeb172e4e027d739579499ae38c1eea462215"
                  }
                ],
                "source": "REFERENCES_TAG"
              },
              {
                "original_tag": "v12.1.2",
                "range": [
                  {
                    "fixed": "d45830a1fbafb5135a54c7ab7cf9e896f86fdec3"
                  }
                ],
                "source": "REFERENCES_TAG"
              },
              {
                "original_tag": "v12.2.1",
                "range": [
                  {
                    "fixed": "78c5d6cf2caa370d6466c76481b57bb7349fecbd"
                  }
                ],
                "source": "REFERENCES_TAG"
              },
              {
                "original_tag": "v12.3.1",
                "range": [
                  {
                    "fixed": "a22c757f62ddc7db6c150ae755e9633792c1b581"
                  }
                ],
                "source": "REFERENCES_TAG"
              }
            ]
          },
          "events": [
            {
              "introduced": "c9e8287b300658af79ee7de2e5d2f7102d8ae144"
            },
            {
              "fixed": "62731e844563c1ec122d092cb43f0dc4c2aa5464"
            },
            {
              "introduced": "2b65d24196c2218e2d44f2b709695050d8097f52"
            },
            {
              "fixed": "b70c3acf216445bdc1465c35524fce134a1c68f6"
            },
            {
              "introduced": "957d9fa4256bf1f5de4624948bbca12c72894428"
            },
            {
              "fixed": "ff2eeb172e4e027d739579499ae38c1eea462215"
            },
            {
              "introduced": "8aade538381f889b58b706d35b112ff6d9e1a4f5"
            },
            {
              "fixed": "d45830a1fbafb5135a54c7ab7cf9e896f86fdec3"
            },
            {
              "introduced": "b2219c4aa019a501e4dfea76cf06ef802ca93fc0"
            },
            {
              "fixed": "78c5d6cf2caa370d6466c76481b57bb7349fecbd"
            },
            {
              "introduced": "3be4a276b773cf3ededa56df52967f17760317b4"
            },
            {
              "fixed": "a22c757f62ddc7db6c150ae755e9633792c1b581"
            },
            {
              "fixed": "075655222f5e72f3683a127e45c83c4174fbd4f7"
            },
            {
              "fixed": "4e05d8cf60287e9d2720140031a8b8f4430d056f"
            },
            {
              "fixed": "557835406547d269f5d0e33159630a1873461c38"
            },
            {
              "fixed": "5c42f02e98f67174c6a5a800dd9f8bd5b6e98486"
            },
            {
              "fixed": "b6730e608b2d4562939cd4f41ea07df5f841dfe5"
            },
            {
              "fixed": "ca2bca9bc900c2fd399d508818ad026cc977dcf6"
            }
          ],
          "repo": "https://github.com/supertokens/supertokens-core",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-3r7x-rhvc-fw28"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-294",
      "CWE-346",
      "CWE-384"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/123xxx/CVE-2026-123801.json"
  },
  "details": "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.",
  "id": "CVE-2026-123801",
  "modified": "2026-11-14T02:31:01.245906005Z",
  "published": "2026-11-09T18:18:47.322Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/supertokens/supertokens-core/releases/tag/v11.3.8"
    },
    {
      "type": "WEB",
      "url": "https://github.com/supertokens/supertokens-core/releases/tag/v11.4.8"
    },
    {
      "type": "WEB",
      "url": "https://github.com/supertokens/supertokens-core/releases/tag/v12.0.11"
    },
    {
      "type": "WEB",
      "url": "https://github.com/supertokens/supertokens-core/releases/tag/v12.1.2"
    },
    {
      "type": "WEB",
      "url": "https://github.com/supertokens/supertokens-core/releases/tag/v12.2.1"
    },
    {
      "type": "WEB",
      "url": "https://github.com/supertokens/supertokens-core/releases/tag/v12.3.1"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/123xxx/CVE-2026-123801.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/supertokens/supertokens-core/security/advisories/GHSA-3r7x-rhvc-fw28"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-123801"
    },
    {
      "type": "FIX",
      "url": "https://github.com/supertokens/supertokens-core/commit/075655222f5e72f3683a127e45c83c4174fbd4f7"
    },
    {
      "type": "FIX",
      "url": "https://github.com/supertokens/supertokens-core/commit/4e05d8cf60287e9d2720140031a8b8f4430d056f"
    },
    {
      "type": "FIX",
      "url": "https://github.com/supertokens/supertokens-core/commit/557835406547d269f5d0e33159630a1873461c38"
    },
    {
      "type": "FIX",
      "url": "https://github.com/supertokens/supertokens-core/commit/5c42f02e98f67174c6a5a800dd9f8bd5b6e98486"
    },
    {
      "type": "FIX",
      "url": "https://github.com/supertokens/supertokens-core/commit/b6730e608b2d4562939cd4f41ea07df5f841dfe5"
    },
    {
      "type": "FIX",
      "url": "https://github.com/supertokens/supertokens-core/commit/ca2bca9bc900c2fd399d508818ad026cc977dcf6"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "SuperTokens Core: SAML callback accepts a replayed RelayState + SAMLResponse, minting a fresh authorization code on each replay"
}