CVE-2023-6520: WP 2FA – Two-factor authentication for WordPress · Cross-Site Request Forgery (CSRF)
Affects WP 2FA – Two-factor authentication for WordPressSource CVE Database V5
Not known to be exploited · CVSS 4.3 Medium.
Data as of 25 Oct 2026, 19:02 UTC
- EPSS
- 0.2% chance of exploitation in 30 days – higher than 15% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:NExploitation evidence
Disclosed: evidence found.
CVE published 11 Jan 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-25.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| melapress WP 2FA – Two-factor authentication for WordPress | Affected
| Fixed in– |
AI-suggested
European organizations should prioritize the following mitigation steps: 1) Immediately check if their WordPress installations use the WP 2FA plugin version 2.5.0 or earlier and plan for an upgrade once a patched version is released by melapress. 2) Until a patch is available, implement web application firewall (WAF) rules to detect and block suspicious POST requests to the send_backup_codes_email endpoint, especially those missing nonce parameters. 3) Educate administrators and registered users about the risk of clicking unsolicited or unexpected links, emphasizing caution with emails that prompt actions related to two-factor authentication or account recovery. 4) Monitor outgoing email logs for unusual activity that could indicate exploitation attempts. 5) Consider disabling the send_backup_codes_email functionality temporarily if feasible, or restrict access to trusted IP ranges. 6) Employ Content Security Policy (CSP) headers and anti-CSRF tokens in custom integrations to reduce the risk of CSRF attacks. 7) Maintain regular backups and incident response plans to quickly address any phishing or social engineering incidents stemming from this vulnerability.
Description
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.
References
- wordfence.com/threat-intel/vulnerabilities/id/0af451be-2477-453c-a230-7f3fb804398b?source=cve (opens in a new tab)
- plugins.trac.wordpress.org/browser/wp-2fa/trunk/includes/classes/Admin/class-setup-wizard.php?rev=2940688 (opens in a new tab)
- plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&old=3009922%40wp-2fa&new=3009922%40wp-2fa&sfp_email=&sfph_mail= (opens in a new tab)