{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "1.41.0"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "9118867f6cbadc7291cf913beb4fede91ed5d374"
            },
            {
              "fixed": "91e55698a42f99438cd41ec2b16a1fc51dbdab8a"
            }
          ],
          "repo": "https://github.com/logto-io/logto",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-6wj7-c66m-6c82"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-294"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/55xxx/CVE-2026-55370.json"
  },
  "details": "Logto is the modern, open-source auth infrastructure for SaaS and AI apps. Prior to 1.41.0, Logto's existing TOTP verification accepted a successfully used TOTP code again while the code remained inside the RFC 6238 acceptance window because the verifier used otplib's stateless check with window = 1 and did not persist or compare the accepted TOTP time-step counter. An attacker who has the victim's first factor and captures a live TOTP value can replay that value to satisfy MFA during the same acceptance window. This issue is fixed in version 1.41.0.",
  "id": "CVE-2026-55370",
  "modified": "2026-07-15T01:49:22.077245306Z",
  "published": "2026-07-10T19:56:53.317Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/logto-io/logto/releases/tag/v1.41.0"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/55xxx/CVE-2026-55370.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/logto-io/logto/security/advisories/GHSA-6wj7-c66m-6c82"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-55370"
    },
    {
      "type": "FIX",
      "url": "https://github.com/logto-io/logto/commit/9118867f6cbadc7291cf913beb4fede91ed5d374"
    },
    {
      "type": "FIX",
      "url": "https://github.com/logto-io/logto/pull/9109"
    }
  ],
  "schema_version": "1.8.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Logto: TOTP code can be replayed within the RFC 6238 validity window (one-time use violation)"
}