{"id":"CVE-2022-42731","aliases":["CVE-2022-42731","GHSA-vw39-2wj9-4q86","PYSEC-2022-303"],"related":[],"kind":"vulnerability","state":"published","title":"django-mfa2 vulnerable to MFA Replay attack","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"El archivo mfa/FIDO2.py en django-mfa2 versiones anteriores a 2.5.1 y 2.6.x anteriores a 2.6.1, permite un ataque de repetición que podría ser usado para registrar otro dispositivo para un usuario. El desafío de registro del dispositivo no es invalidado después de su uso","source":"nvd"}],"published":"2022-10-11T00:00:00.000Z","modified":"2026-06-17T05:05:12.303Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"}],"cwes":["CWE-294"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.5.1"}],"ecosystem":"PyPI","package":"django-mfa2","purl":"pkg:pypi/django-mfa2","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.6.0","status":"affected","fixed":"2.6.1"}],"ecosystem":"PyPI","package":"django-mfa2","purl":"pkg:pypi/django-mfa2","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2.5.1"},{"status":"affected","introduced":"2.6.0","fixed":"2.6.1"}],"vendor":"django-mfa2_project","product":"django-mfa2","cpe":"cpe:2.3:a:django-mfa2_project:django-mfa2:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.5.1"},{"type":"ecosystem","introduced":"2.6.0","status":"affected","fixed":"2.6.1"}],"ecosystem":"PyPI","package":"django-mfa2","purl":"pkg:pypi/django-mfa2","source":"pysec"}],"references":[{"url":"https://github.com/mkalioby/django-mfa2/blob/0936ea253354dd95cb127f09d0efa31324caef27/mfa/FIDO2.py#L58","tags":["evidence","exploit","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/mkalioby/django-mfa2/releases/tag/v2.5.1-release","tags":["release-notes","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/mkalioby/django-mfa2/releases/tag/v2.6.1-release","tags":["release-notes","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-42731","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/mkalioby/django-mfa2/commit/54db5a513bcafa97a36e9f6dfa31d3c61fa8217b","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/mkalioby/django-mfa2/commit/5fbb505e98ecdd409330a5c336ad5ec49631b0db","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/mkalioby/django-mfa2","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/django-mfa2/PYSEC-2022-303.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-vw39-2wj9-4q86","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2025-05-20T14:11:00.920Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-42731","url":"https://www.cve.org/CVERecord?id=CVE-2022-42731","licence":"CVE Terms of Use","modified":"2025-05-20T14:11:23.800Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-vw39-2wj9-4q86","url":"https://github.com/advisories/GHSA-vw39-2wj9-4q86","licence":"CC-BY-4.0","modified":"2026-06-10T18:44:18.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-42731","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-42731","licence":"Public domain","modified":"2026-06-17T05:05:12.303Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2022-303","url":"https://osv.dev/vulnerability/PYSEC-2022-303","licence":"CC-BY-4.0","modified":"2026-06-10T17:00:49.634Z"}],"updatedAt":"2026-11-25T22:58:15.526Z","epss":{"score":0.01507,"percentile":0.75121,"date":"2026-12-01T12:00:22.000Z"}}