eduMFA token reuse via incorrect InnoDB snapshot isolation

Severity: high · CVSS 7.1 · Published 2026-05-18

eduMFA is a multi-factor authentication (MFA) solution. A vulnerability in how it handles database transactions could allow an attacker to reuse one-time security tokens (like TOTP or HOTP) that should expire after a single use. This could potentially allow an unauthorized user to bypass authentication protections if they can successfully time their requests during a login attempt.

Technologies: edumfa (PyPI). Vendors: PyPI.

Quick answers

Is This vulnerability exploited in the wild?
No. Junglewise Threat Intelligence has no report of This vulnerability being exploited in the wild.
How severe is This vulnerability?
High severity, with a CVSS score of 7.1, published 18 May 2026.
Which products and versions are affected?
edumfa (PyPI) < 2.9.1.
Is there a fix for This vulnerability?
No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.
How is This vulnerability attacked?
It is attacked over the network, in a software library.
Am I affected?
Check whether you run edumfa (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

Technical details

A race condition exists in eduMFA due to incorrect InnoDB snapshot isolation when using MySQL or certain versions of MariaDB. The application fails to properly isolate database transactions, which can allow a single-use token (TOTP, HOTP, or WebAuthn) to be validated multiple times if multiple authentication requests are processed simultaneously. This occurs when 'innodb_snapshot_isolation' is disabled or unavailable in the underlying database. The vulnerability is fixed in version 2.9.1 by implementing explicit row-level locking using 'SELECT FOR UPDATE' before performing write operations. A database-level workaround involves enabling 'innodb_snapshot_isolation' where supported.

Affected products

  • eduMFA eduMFA < 2.9.1

Timeline

  • 2026-05-11: disclosed
  • 2026-05-18: advisory

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.