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

Source: https://junglewise.ai/threats/cve-2019-16766-2fa-bypass-in-wagtail-through-new-device-path  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2019-11-29  
License: CC BY 4.0 with a link back

CVE-2019-16766 · Severity: low · CVSS 3.1 · Published 2019-11-29

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.

Technologies: [wagtail-2fa (PyPI)](https://junglewise.ai/threats/technologies/wagtail-2fa). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2019-16766 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2019-16766 being exploited in the wild.

**How severe is CVE-2019-16766?** Low severity, with a CVSS score of 3.1, published 29 November 2019.

**Which products and versions are affected?** wagtail-2fa (PyPI) ECOSYSTEM:introduced=0,fixed=1.3.0, GIT:introduced=0,fixed=13b12995d35b566df08a17257a23863ab6efb0ca,fixed=a6711b29711729005770ff481b22675b35ff5c81|ECOSYSTEM:introduced=0,fixed=1.3.0.

**Is there a fix for CVE-2019-16766?** Yes. wagtail-2fa (PyPI): upgrade to 1.3.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2019-16766?** Check whether you run wagtail-2fa (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- wagtail-2fa (PyPI): upgrade to 1.3.0 or later

  ```sh
  pip install "wagtail-2fa>=1.3.0"
  ```


## Affected products

- wagtail-2fa (PyPI) ECOSYSTEM:introduced=0,fixed=1.3.0, GIT:introduced=0,fixed=13b12995d35b566df08a17257a23863ab6efb0ca,fixed=a6711b29711729005770ff481b22675b35ff5c81|ECOSYSTEM:introduced=0,fixed=1.3.0

## Identifiers

- CVE-2019-16766
- GHSA-89px-ww3j-g2mm
- PYSEC-2019-135

## Related threats

- [2FA bypass through deleting devices in wagtail-2fa](https://junglewise.ai/threats/cve-2020-5240-2fa-bypass-through-deleting-devices-in-wagtail-2fa)
- [PYSEC-2019-65 - When using wagtail-2fa before 1.3.0, if someone gains access to someone's Wagtail login credentials…](https://junglewise.ai/threats/pysec-2019-65-when-using-wagtail-2fa-before-1-3-0-if-someone-gains-c372df29)
