Skip to main content
CVE-2023-6520VulnerabilityPublished Updated

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

0

Not known to be exploited · CVSS 4.3 Medium.

Data as of 25 Oct 2026, 19:02 UTC

CVSS 3.1 base score
4.3Medium
How severe the flaw is on the 0–10 CVSS scale.
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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 11 Jan 2024

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
melapress WP 2FA – Two-factor authentication for WordPressAffected
  • *
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

Community reviews

Loading reviews…