# CVE-2022-42731: django-mfa2 vulnerable to MFA Replay attack

- Severity: High 7.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.51%, higher than 75% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-10-11T00:00:00.000Z
- Modified: 2026-06-17T05:05:12.303Z
- Also known as: GHSA-vw39-2wj9-4q86, PYSEC-2022-303
- Weaknesses: CWE-294
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- django-mfa2 (PyPI): before 2.5.1; from 2.6.0 before 2.6.1
- django-mfa2_project django-mfa2: before 2.5.1; from 2.6.0 before 2.6.1

## Every score

- CISA-ADP: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- GitHub: CVSS:4.0 High `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: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`

## References

- <https://github.com/mkalioby/django-mfa2/blob/0936ea253354dd95cb127f09d0efa31324caef27/mfa/FIDO2.py#L58> (exploit, evidence, third-party-advisory, web)
- <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)

## Sources

- CVE List: [CVE-2022-42731](https://www.cve.org/CVERecord?id=CVE-2022-42731), CVE Terms of Use, modified 2025-05-20
- GitHub Advisory Database: [GHSA-vw39-2wj9-4q86](https://github.com/advisories/GHSA-vw39-2wj9-4q86), CC-BY-4.0, modified 2026-06-10
- NVD: [CVE-2022-42731](https://nvd.nist.gov/vuln/detail/CVE-2022-42731), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2022-303](https://osv.dev/vulnerability/PYSEC-2022-303), CC-BY-4.0, modified 2026-06-10

---

Page: https://cve.day/CVE-2022-42731 · Whole record: https://cve.day/CVE-2022-42731.json · Rebuilt by cve.day 2026-11-25T22:58:15.526Z
