# CVE-2020-5240: 2FA bypass through deleting devices in wagtail-2fa

- Severity: High 7.6 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/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.00%, higher than 63% of CVEs (2026-12-02)
- Published: 2020-03-13T21:18:55.000Z
- Modified: 2026-09-10T03:48:29.719Z
- Also known as: GHSA-9gjv-6qq6-v7qm, PYSEC-2020-219
- Weaknesses: CWE-285, CWE-863
- Assigned by: GitHub_M

## Description

In wagtail-2fa before 1.4.1, any user with access to the CMS can view and delete other users 2FA devices by going to the correct path. The user does not require special permissions in order to do so. By deleting the other users device they can disable the target users 2FA devices and potentially compromise the account if they figure out their password. The problem has been patched in version 1.4.1.

(As written by CVE List.)

## Affected

- Lab Digital wagtail-2fa: < 1.4.1
- wagtail-2fa (PyPI): before 1.4.1; before ac23550d33b7436e90e3beea904647907eba5b74
- labdigital wagtail-2fa: before 1.4.1

## Every score

- GitHub_M: CVSS:3.1 7.6 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:H/A:N`
- GitHub: CVSS:3.1 7.6 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:H/A:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:H/SA:N`
- NVD: CVSS:3.1 8.5 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:H/A:N`
- NVD: CVSS:2.0 5.5 Medium `AV:N/AC:L/Au:S/C:P/I:P/A:N`

## References

- <https://github.com/labd/wagtail-2fa/security/advisories/GHSA-9gjv-6qq6-v7qm> (advisory, third-party-advisory, web)
- <https://github.com/labd/wagtail-2fa/commit/ac23550d33b7436e90e3beea904647907eba5b74> (fix, patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-5240> (advisory)
- <https://github.com/labd/wagtail-2fa> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/wagtail-2fa/PYSEC-2020-219.yaml> (web)

## Sources

- CVE List: [CVE-2020-5240](https://www.cve.org/CVERecord?id=CVE-2020-5240), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-9gjv-6qq6-v7qm](https://github.com/advisories/GHSA-9gjv-6qq6-v7qm), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2020-5240](https://nvd.nist.gov/vuln/detail/CVE-2020-5240), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2020-219](https://osv.dev/vulnerability/PYSEC-2020-219), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2020-5240 · Whole record: https://cve.day/CVE-2020-5240.json · Rebuilt by cve.day 2026-11-25T22:57:51.418Z
