Description
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.
Published: 2026-07-10
Score: 6.4 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Logto’s TOTP verification logic incorrectly allowed a valid one‑time password to be used again within the RFC 6238 acceptance window because the otplib checker was stateless and did not store the time‑step counter. This flaw, identified as CWE‑294 (Improper Handling of Time‑Based One‑Time Password), permits an attacker who obtains a legitimate TOTP value while the user is authenticating to replay that value later in the same window, thereby bypassing multi‑factor authentication and gaining unauthorized access to the victim’s account.

Affected Systems

Any deployment of logto‑io:logto running a version earlier than 1.41.0 is affected. The 1.41.0 release and newer versions contain a fix that enforces single‑use TOTP validation, eliminating the replayability issue.

Risk and Exploitability

The CVSS score of 6.4 reflects a moderate to high impact. An EPSS score of less than 1% indicates a low likelihood of exploitation in the wild, and the vulnerability is not listed in CISA’s KEV catalog. Exploitation requires the attacker to have the victim’s primary authentication factor and to intercept or capture a live TOTP value, which can be obtained through device compromise, phishing, or other manual collection methods. Once a code is captured, it can be replayed during the same validity window to satisfy MFA and impersonate the victim.

Generated by OpenCVE AI on July 29, 2026 at 10:13 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to Logto 1.41.0 or later to enforce single‑use TOTP validation
  • Temporarily disable TOTP‑based MFA for accounts that have not yet been upgraded to mitigate the replay risk
  • Add an additional second‑factor method or enforce session‑based MFA to further reduce the window for replay attacks

Generated by OpenCVE AI on July 29, 2026 at 10:13 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 13 Jul 2026 15:15:00 +0000

Type Values Removed Values Added
First Time appeared Logto-io
Logto-io logto
Vendors & Products Logto-io
Logto-io logto

Fri, 10 Jul 2026 21:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Fri, 10 Jul 2026 20:00:00 +0000

Type Values Removed Values Added
Description 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.
Title Logto: TOTP code can be replayed within the RFC 6238 validity window (one-time use violation)
Weaknesses CWE-294
References
Metrics cvssV3_1

{'score': 6.4, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-10T20:14:41.325Z

Reserved: 2026-06-16T18:57:40.181Z

Link: CVE-2026-55370

cve-icon Vulnrichment

Updated: 2026-07-10T20:14:37.931Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-29T10:15:06Z

Weaknesses
  • CWE-294

    Authentication Bypass by Capture-replay