Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. django-mfa2
  4. ›
  5. CVE-2022-42731

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

October 11, 2022 (updated September 16, 2024)

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.

References

  • github.com/advisories/GHSA-vw39-2wj9-4q86
  • github.com/mkalioby/django-mfa2
  • github.com/mkalioby/django-mfa2/blob/0936ea253354dd95cb127f09d0efa31324caef27/mfa/FIDO2.py
  • github.com/mkalioby/django-mfa2/commit/54db5a513bcafa97a36e9f6dfa31d3c61fa8217b
  • github.com/mkalioby/django-mfa2/commit/5fbb505e98ecdd409330a5c336ad5ec49631b0db
  • github.com/mkalioby/django-mfa2/releases/tag/v2.5.1-release
  • github.com/mkalioby/django-mfa2/releases/tag/v2.6.1-release
  • github.com/pypa/advisory-database/tree/main/vulns/django-mfa2/PYSEC-2022-303.yaml
  • nvd.nist.gov/vuln/detail/CVE-2022-42731

Code Behaviors & Features

Detect and mitigate CVE-2022-42731 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 2.5.1, all versions starting from 2.6.0 before 2.6.1

Fixed versions

  • 2.5.1
  • 2.6.1

Solution

Upgrade to versions 2.5.1, 2.6.1 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-294: Authentication Bypass by Capture-replay

Source file

pypi/django-mfa2/CVE-2022-42731.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:51 +0000.