CVE-2026-45129

MyBB: ACP Recovery Codes CSRF

Published Aug 18, 2026 CVSS 3.1 · 4.6 Medium EPSS < 1% KEV · Not listed
Description
MyBB is free and open source forum software. Prior to 1.8.40, the Admin CP Recovery Codes module does not validate requests correctly, allowing same-site attackers to rotate a victim administrator's recovery codes with a specially crafted URL. The Admin CP Home, Preferences, Recovery Codes action=recovery_codes page regenerates Two-Factor Authentication recovery codes in mybb_adminoptions.recovery_codes on GET requests without request forgery protection. The uniquely identifying implementation details include admin/modules/home/preferences.php. This issue is fixed in version 1.8.40.

Analysis

AI-generated

Technical impact

The flaw resides in MyBB’s Admin CP Recovery Codes page, where a GET request to the recovery_codes action regenerates two‑factor authentication recovery codes without any CSRF protection. An attacker can send a malicious URL that triggers this GET request, causing the victim administrator’s recovery codes to be replaced. Because the new codes overwrite the old ones, the administrator loses trusted backup codes, potentially crippling 2‑factor authentication and creating a path for subsequent compromise. The vulnerability is characterised as a Cross‑Site Request Forgery (CWE‑352) and is rated as moderate severity by CVSS.

Affected Systems

Installations of MyBB released before version 1.8.40 are affected, particularly those that enable the Admin CP Recovery Codes module and lack CSRF token enforcement on the preferences page (admin/modules/home/preferences.php). The issue was addressed in MyBB 1.8.40, as documented by the commit and release notes linked in the advisory.

Risk and Exploitability

The CVSS score of 4.6 indicates moderate risk. EPSS data is unavailable and the vulnerability is not listed in the CISA KEV catalog, suggesting limited known exploitation. The likely attack vector is a same‑site request or embedded link that forces the adapter to regenerate recovery codes. An attacker only needs to get the administrator to visit the crafted URL or have the link embedded in content that the admin will view; no additional privileges are required. Successful exploitation leads to deletion of the admin’s existing recovery codes, hindering the administrator’s ability to authenticate via 2‑factor recovery ranges and creating a facilitation for account takeover if the attacker can obtain the new codes.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade MyBB to version 1.8.40 or later to apply the fix and re‑enable CSRF protection on the recovery code regeneration endpoint.
  • Move the recovery code regeneration operation to a POST request that requires a valid CSRF token in the admin interface configuration if an upgrade is not immediately possible.
  • Reset the administrator’s two‑factor recovery codes immediately after applying the patch to prevent an attacker from using any potentially compromised codes.

Generated by OpenCVE AI on August 18, 2026 at 19:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Mybb
Mybb mybb
Vendors & Products Mybb
Mybb mybb
Type Values Removed Values Added
Description MyBB is free and open source forum software. Prior to 1.8.40, the Admin CP Recovery Codes module does not validate requests correctly, allowing same-site attackers to rotate a victim administrator's recovery codes with a specially crafted URL. The Admin CP Home, Preferences, Recovery Codes action=recovery_codes page regenerates Two-Factor Authentication recovery codes in mybb_adminoptions.recovery_codes on GET requests without request forgery protection. The uniquely identifying implementation details include admin/modules/home/preferences.php. This issue is fixed in version 1.8.40.
Title MyBB: ACP Recovery Codes CSRF
Weaknesses CWE-352
References
Metrics cvssV3_1

{'score': 4.6, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:L'}

Weaknesses
  • CWE-352

    Cross-Site Request Forgery (CSRF)

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 18, 2026, 6:57 PM
Reserved
May 8, 2026, 8:08 PM
Status
Deferred
Published
Aug 18, 2026, 4:17 PM
Modified
Sep 8, 2026, 9:02 PM