Live threats

All CVEs / Django-mfa2 Project

CVE-2022-42731Django-mfa2 Project Django-mfa2

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
1.4%
probability of exploitation in 30 days · percentile 73
Auth required
No
Published
Oct 11, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-294
SSVC (CISA)
Exploitation: none · Automatable: yes · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

What happens

mfa/FIDO2.py in django-mfa2 before 2.5.1 and 2.6.x before 2.6.1 allows a replay attack that could be used to register another device for a user. The device registration challenge is not invalidated after usage.

Original NVD text.

What to do

  1. Apply the vendor's security update for Django-mfa2.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI django-mfa2 < 2.5.1 2.5.1 pip install "django-mfa2>=2.5.1"
PyPI django-mfa2 ≥ 2.6.0 < 2.6.1 2.6.1 pip install "django-mfa2>=2.6.1"
PyPI django-mfa2 < 2.5.1 2.5.1 pip install "django-mfa2>=2.5.1"
PyPI django-mfa2 ≥ 2.6.0 < 2.6.1 2.6.1 pip install "django-mfa2>=2.6.1"

Per OSV / GitHub Advisories (GHSA-vw39-2wj9-4q86, PYSEC-2022-303). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
django-mfa2_projectdjango-mfa2< 2.5.1
django-mfa2_projectdjango-mfa2≥ 2.6.0 < 2.6.1

Official sources

References

Links published by the sources. Open them with care.