All CVEs / Django-mfa2 Project
CVE-2022-42731Django-mfa2 Project Django-mfa2
High 7.5 No auth needed
Follow: this CVE · Django-mfa2 Project · Django-mfa2 Project Django-mfa2 We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for Django-mfa2.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| django-mfa2_project | django-mfa2 | < 2.5.1 |
| django-mfa2_project | django-mfa2 | ≥ 2.6.0 < 2.6.1 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Exploit Third Party Advisory
- github.com Release Notes Third Party Advisory
- github.com Release Notes Third Party Advisory