{
 "id": "WPSEC-2026-0529",
 "url": "https://wpsec.com/vuln/WPSEC-2026-0529/",
 "json_url": "https://wpsec.com/vuln/WPSEC-2026-0529/advisory.json",
 "markdown_url": "https://wpsec.com/vuln/WPSEC-2026-0529/index.md",
 "title": "WP 2FA – Two-factor authentication for WordPress <= 4.1.0 - Unauthenticated Two-Factor Authentication Bypass via Flywheel Direct Login Handling",
 "description": "The WP 2FA plugin for WordPress is vulnerable to Two-Factor Authentication Bypass in versions 2.5.0 up to, and including, 4.1.0. The Flywheel direct-login check in the login handler processed request-supplied values without validation or error handling, so malformed input could end the request with a fatal error after WordPress had already issued the authentication cookies and before the plugin withdrew them for the second-factor challenge. This makes it possible for unauthenticated attackers who know a user's password to obtain a logged-in session without completing the second factor on sites where the FW_DIRECT_LOGIN_SHARED_KEY constant is defined (Flywheel hosting).",
 "plugin": {
  "slug": "wp-2fa",
  "name": "WP 2FA – Two-factor authentication for WordPress",
  "full_name": "WP 2FA – Two-factor authentication for WordPress",
  "wordpress_org": "https://wordpress.org/plugins/wp-2fa/",
  "advisories_url": "https://wpsec.com/vuln/plugin/wp-2fa/",
  "attacksurface": "https://attacksurface.wpsec.com/plugin/wp-2fa"
 },
 "type": "AUTHBYPASS",
 "cwe": [
  "CWE-287"
 ],
 "cve": [],
 "cvss": {
  "version": "3.1",
  "score": 8.1,
  "vector": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H",
  "severity": "High"
 },
 "affected": {
  "ranges": [
   {
    "from": "2.5.0",
    "from_inclusive": true,
    "to": "4.2.0",
    "to_inclusive": false
   }
  ],
  "text": [
   "from 2.5.0 before 4.2.0"
  ]
 },
 "introduced_in": "2.5.0",
 "fixed_in": "4.2.0",
 "remediation": "Update to 4.2.0 or later.",
 "fix_released": "2026-10-06T12:19:29+00:00",
 "published": "2026-10-07T12:46:23+00:00",
 "updated": "2026-10-06T19:48:17.074567+00:00",
 "also_published_as": null,
 "references": [
  "https://wpsec.com/vuln/WPSEC-2026-0529/",
  "https://plugins.svn.wordpress.org/wp-2fa/tags/4.2.0/",
  "https://wordpress.org/plugins/wp-2fa/"
 ],
 "attacksurface_url": "https://attacksurface.wpsec.com/plugin/wp-2fa",
 "source": "WPSec",
 "license": {
  "name": "CC BY 4.0",
  "url": "https://creativecommons.org/licenses/by/4.0/"
 },
 "usage": {
  "plugin": "Low",
  "affected_versions": "Low",
  "as_of": "2026-10-07"
 }
}