CVE-2022-42731
HIGH 7.5CVSS 3.1django-mfa2 vulnerable to MFA Replay attack
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.
- Published
- 11 Oct 2022
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-294
- Also known as
- GHSA-vw39-2wj9-4q86PYSEC-2022-303
- Sources
- NVDJSONOSV GHSA-vw39-2wj9-4q86JSONOSV PYSEC-2022-303JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | django-mfa2_project | django-mfa2cpe:2.3:a:django-mfa2_project:django-mfa2:*:*:*:*:*:*:*:* |
< 2.5.1 | 2.5.1 |
| NVD | django-mfa2_project | django-mfa2cpe:2.3:a:django-mfa2_project:django-mfa2:*:*:*:*:*:*:*:* |
>= 2.6.0, < 2.6.1 | 2.6.1 |
| OSV | PyPI | django-mfa2 | < 2.5.1 | 2.5.1 |
| OSV | PyPI | django-mfa2 | >= 2.6.0, < 2.6.1 | 2.6.1 |
| OSV | PyPI | django-mfa2 | < 2.5.1; >= 2.6.0, < 2.6.1 | 2.5.1, 2.6.1 |
References
- https://github.com/mkalioby/django-mfa2/blob/0936ea253354dd95cb127f09d0efa31324caef27/mfa/FIDO2.py#L58 · Exploit, Third Party Advisory, WEB, EVIDENCE
- https://github.com/mkalioby/django-mfa2/releases/tag/v2.5.1-release · Release Notes, Third Party Advisory, WEB
- https://github.com/mkalioby/django-mfa2/releases/tag/v2.6.1-release · Release Notes, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-42731 · ADVISORY
- https://github.com/mkalioby/django-mfa2/commit/54db5a513bcafa97a36e9f6dfa31d3c61fa8217b · WEB
- https://github.com/mkalioby/django-mfa2/commit/5fbb505e98ecdd409330a5c336ad5ec49631b0db · WEB
- https://github.com/mkalioby/django-mfa2 · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/django-mfa2/PYSEC-2022-303.yaml · WEB
- https://github.com/advisories/GHSA-vw39-2wj9-4q86 · ADVISORY
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 11 Oct 2022)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 11 Oct 2022)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 11 Oct 2022)