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

wagtail-2fa Updated 02 Oct 2025

Summary

13/03/2020
Yes i
Moderate
7.6

CVE-2020-5240: 2FA bypass through deleting devices in wagtail-2fa. Affects wagtail-2fa versions < 1.4.1. Fixed in 1.4.1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The package under scrutiny is wagtail-2fa, which is an open-source Python package available on PyPI. It provides two-factor authentication (2FA) functionality for the Wagtail CMS. This package allows users to add an extra layer of security to their Wagtail CMS by requiring a second form of authentication, in addition to the password, to access the system.

Vulnerability Detail

The vulnerability identified as CVE-2020-5240 allows any user with access to the CMS to view and delete other users' 2FA devices by navigating to a specific path. This vulnerability does not require any special permissions and can be exploited by any user with access to the CMS. By deleting another user's device, an attacker can disable their 2FA devices and potentially compromise their account if they can also obtain the user's password.

How To Fix

Latest published version: 1.8.0 as of 22 Oct 2026

pip install --upgrade "wagtail-2fa==1.8.0"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

1.4.1

This is the first release that contains the fix.

pip install --upgrade "wagtail-2fa==1.4.1"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no known workaround for this vulnerability. Users are strongly advised to upgrade to the patched version as soon as possible.

Conclusion

The vulnerability in wagtail-2fa allows unauthorized users to view and delete other users' 2FA devices, potentially compromising their accounts. It is crucial for users to upgrade to the patched version (1.4.1) to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for wagtail-2fa →

Share this vulnerability

FAQ

The vulnerability allows an attacker to view and delete other users' 2FA devices, potentially compromising their accounts.

Any user with access to the CMS can exploit this vulnerability.

No, attackers do not require special permissions to exploit this vulnerability.

The Common Vulnerability Scoring System (CVSS) score for this vulnerability is 7.6, indicating a high severity.

Yes, the vulnerability has been patched in version 1.4.1 of the wagtail-2fa package.

Related vulnerabilities

Recent vulnerabilities recorded for wagtail-2fa.

How To Fix

Latest published version: 1.8.0 as of 22 Oct 2026

pip install --upgrade "wagtail-2fa==1.8.0"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

1.4.1

This is the first release that contains the fix.

pip install --upgrade "wagtail-2fa==1.4.1"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback