Skip to content
Laskyr

Plugins · wp-2fa · data as of 2026-11-04

Is WP 2FA safe? Known vulnerabilities and latest version

No known unpatched vulnerabilities in the latest version (4.2.1)

As of 2026-11-04. 13 issues are on record for older versions; version 4.2.0 or newer fixes all of them that state a fix.

Latest version
4.2.1
Last updated
2026-10-14
Active installs
100,000+
Known issues on record
13
Unpatched in latest
0
Tested up to WP
7.1.4 · PHP 7.4+

Get better WordPress login security; add two-factor authentication (2FA) for all your users with this easy-to-use plugin. — by Melapress

What to do

  1. Update to the latest version (4.2.1). Anything older than 4.2.0 has at least one known issue listed below. Dashboard → Updates, or Plugins → “update now”.
  2. If you cannot update right away, deactivate it until you can.
  3. Turn on auto-updates for it: Plugins → “Enable auto-updates” on its row.
  4. If you ran a vulnerable version and something looks off (spam pages, strange admins, redirects), run the free scan.

With WP-CLI: wp plugin get wp-2fa --field=version shows what you run; wp plugin update wp-2fa updates it.

Check your version

Known vulnerabilities

13 on record, newest first. “Affected” is the version range the source gives; “fixed in” is the version the source names, or (marked *) the first wordpress.org release after the last affected version.

low 2.7 CVE-2026-108066 · published 2026-10-14

Missing authorization check in WP 2FA (older than 4.2.0)

Affected
older than 4.2.0
Fixed in
4.2.0
Access needed (per CVSS)
Needs an admin-level account
Range from
CVE record (the advisory publisher) · score by CISA ADP
Details from the advisory

The WP 2FA WordPress plugin before 4.2.0 does not perform an object-level capability check before removing a user's two-factor authentication configuration, allowing a site administrator on WordPress Multisite to remove the 2FA configuration of users outside their own site, including accounts they are not permitted to edit. On single-site installs an administrator can already manage all users, so this crosses a trust boundary only on Multisite.

NVD CVE-2026-108066WPScan advisory

high 8.8 CVE-2026-62142 · published 2026-10-08

Cross-site request forgery (CSRF) in WP 2FA (4.1.0 and older)

Affected
4.1.0 and older
Fixed in
4.2.0
Access needed (per CVSS)
No login needed; someone on the site has to click a link or open a page
Range from
CVE record (the advisory publisher) · score by Patchstack
Details from the advisory

Cross-Site Request Forgery (CSRF) vulnerability in Melapress WP 2FA wp-2fa allows Cross Site Request Forgery.This issue affects WP 2FA: from n/a through 4.1.0.

NVD CVE-2026-62142Patchstack advisory

high 7.5 CVE-2026-103514 · published 2026-10-03

Authentication bypass in WP 2FA (older than 4.1.0)

Affected
older than 4.1.0
Fixed in
4.1.0
Access needed (per CVSS)
Needs a low-level account (e.g. subscriber)
Range from
CVE record (the advisory publisher) · score by CISA ADP
Details from the advisory

The WP 2FA WordPress plugin before 4.1.0 does not invalidate a time-based one-time passcode once it has been used, allowing an attacker who knows an account's password and has observed a valid code within its validity window to replay it and bypass two-factor authentication, including on administrator accounts.

NVD CVE-2026-103514WPScan advisory

high 7.5 CVE-2026-15372 · published 2026-08-05

Authentication bypass in WP 2FA (older than 4.1.0)

Affected
older than 4.1.0
Fixed in
4.1.0
Access needed (per CVSS)
No login needed
Range from
CVE record (the advisory publisher) · score by CISA ADP
Details from the advisory

The WP 2FA WordPress plugin before 4.1.0 does not validate the second authentication factor when one of its supported methods is selected at login, allowing an attacker who already knows a user's password to bypass two-factor authentication and fully access the account, including administrator accounts.

NVD CVE-2026-15372WPScan advisory

medium 6.4 CVE-2026-12988 · published 2026-07-14

Missing authorization check in WP 2FA (older than 3.1.1.2)

Affected
older than 3.1.1.2
Fixed in
3.1.1.2
Access needed (per CVSS)
Needs a low-level account (e.g. subscriber)
Range from
CVE record (the advisory publisher) · score by CISA ADP
Details from the advisory

The WP 2FA WordPress plugin before 3.1.1.2 does not verify that the email address supplied during two-factor authentication setup belongs to the user, allowing an attacker who has obtained a user's credentials to redirect the setup verification code to an attacker-controlled email address and take over the account.

NVD CVE-2026-12988WPScan advisory

medium 6.3 CVE-2025-12628 · published 2025-11-24

Security issue in WP 2FA (older than 3.0.0)

Affected
older than 3.0.0
Fixed in
3.0.0
Access needed (per CVSS)
Needs a low-level account (e.g. subscriber)
Range from
CVE record (the advisory publisher) · score by CISA ADP
Details from the advisory

The WP 2FA WordPress plugin does not generate backup codes with enough entropy, which could allow attackers to bypass the second factor by brute forcing them

NVD CVE-2025-12628WPScan advisory

high 7.5 CVE-2022-44587 · published 2024-06-21

Information disclosure in WP 2FA (2.6.3 and older)

Affected
2.6.3 and older
Fixed in
2.6.4
Access needed (per CVSS)
No login needed
Range from
CVE record (the advisory publisher) · score by NVD
Details from the advisory

Insertion of Sensitive Information into Log File vulnerability in WP 2FA allows Accessing Functionality Not Properly Constrained by ACLs.This issue affects WP 2FA: from n/a through 2.6.3.

NVD CVE-2022-44587Patchstack advisory

medium 6.1 CVE-2024-32568 · published 2024-04-18

Cross-site scripting (XSS) in WP 2FA (2.6.2 and older)

Affected
2.6.2 and older
Fixed in
2.6.3
Access needed (per CVSS)
No login needed; someone on the site has to click a link or open a page
Range from
CVE record (the advisory publisher) · score by NVD
Details from the advisory

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in Melapress WP 2FA wp-2fa.This issue affects WP 2FA: from n/a through <= 2.6.2.

NVD CVE-2024-32568Patchstack advisoryPatchstack advisory

medium 5.3 CVE-2022-44595 · published 2024-03-21

Authentication bypass in WP 2FA (2.2.0 and older)

Affected
2.2.0 and older
Fixed in
2.2.1
Access needed (per CVSS)
No login needed
Range from
CVE record (the advisory publisher) · score by NVD
Details from the advisory

Improper Authentication vulnerability in Melapress WP 2FA allows Authentication Bypass.This issue affects WP 2FA: from n/a through 2.2.0.

NVD CVE-2022-44595Patchstack advisory

medium 4.3 CVE-2023-6520 · published 2024-01-11

Cross-site request forgery (CSRF) in WP 2FA (2.5.0 and older)

Affected
2.5.0 and older
Fixed in
2.6.0 *
Access needed (per CVSS)
No login needed; someone on the site has to click a link or open a page
Range from
CVE record (the advisory publisher) · score by NVD
Details from the advisory

The WP 2FA – Two-factor authentication for WordPress plugin for WordPress is vulnerable to Cross-Site Request Forgery in all versions up to, and including, 2.5.0. This is due to missing or incorrect nonce validation on the send_backup_codes_email function. This makes it possible for unauthenticated attackers to send emails with arbitrary content to registered users via a forged request granted they can trick a site administrator or other registered user into performing an action such as clicking on a link. While a nonce check is present, it is only executed if a nonce is set. By omitting a nonce from the request, the check can be bypassed.

NVD CVE-2023-6520Wordfence advisoryCode change (fix)Plugin source

medium 4.3 CVE-2023-6506 · published 2024-01-11

Missing authorization check in WP 2FA (2.5.0 and older)

Affected
2.5.0 and older
Fixed in
2.6.0 *
Access needed (per CVSS)
Needs a low-level account (e.g. subscriber)
Range from
CVE record (the advisory publisher) · score by NVD
Details from the advisory

The WP 2FA – Two-factor authentication for WordPress plugin for WordPress is vulnerable to Insecure Direct Object Reference in all versions up to, and including, 2.5.0 via the send_backup_codes_email due to missing validation on a user controlled key. This makes it possible for subscriber-level attackers to email arbitrary users on the site.

NVD CVE-2023-6506Wordfence advisoryCode change (fix)Plugin source

medium 5.9 CVE-2022-2891 · published 2022-10-10

Security issue in WP 2FA (older than 2.3.0)

Affected
older than 2.3.0
Fixed in
2.3.0
Access needed (per CVSS)
No login needed
Range from
CVE record (the advisory publisher) · score by NVD
Details from the advisory

The WP 2FA WordPress plugin before 2.3.0 uses comparison operators that don't mitigate time-based attacks, which could be abused to leak information about the authentication codes being compared.

NVD CVE-2022-2891WPScan advisory

medium 6.1 CVE-2022-1527 · published 2022-05-30

Reflected cross-site scripting (XSS) in WP 2FA (older than 2.2.1)

Affected
older than 2.2.1
Fixed in
2.2.1
Access needed (per CVSS)
No login needed; someone on the site has to click a link or open a page
Range from
NVD analysis · score by NVD
Details from the advisory

The WP 2FA WordPress plugin before 2.2.1 does not sanitise and escape a parameter before outputting it back in an admin page, leading to a Reflected Cross-Site Scripting

NVD CVE-2022-1527WPScan advisory

Recent activity

Browse vulnerabilities

Where this data comes from

Badge for your site or docs (states facts with a date, not a verdict):
WP 2FA vulnerability status badge
<a href="https://laskyr.com/plugins/wp-2fa"><img src="https://laskyr.com/plugins/wp-2fa/badge.svg" alt="WP 2FA vulnerability status"></a>

← Check another plugin · Free hacked-site scan

First hour checklist

If the site was just hacked, read the emergency kit before you delete files. The page is free. Email is optional.

Read the emergency kit