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.
Published: 2026-08-18
Score: 4.6 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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 yet.

History

Tue, 18 Aug 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Tue, 18 Aug 2026 18:15:00 +0000

Type Values Removed Values Added
First Time appeared Mybb
Mybb mybb
Vendors & Products Mybb
Mybb mybb

Tue, 18 Aug 2026 16:00:00 +0000

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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-18T18:57:46.576Z

Reserved: 2026-05-08T20:08:17.209Z

Link: CVE-2026-45129

cve-icon Vulnrichment

Updated: 2026-08-18T18:57:42.886Z

cve-icon NVD

Status : Received

Published: 2026-08-18T16:17:08.223

Modified: 2026-08-18T19:16:50.433

Link: CVE-2026-45129

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-18T19:30:04Z

Weaknesses
  • CWE-352

    Cross-Site Request Forgery (CSRF)