CVE-2026-45116

MyBB: Profile field type confusion XSS

Published Aug 18, 2026 CVSS 3.1 · 8.7 High EPSS < 1% KEV · Not listed
Description
MyBB is free and open source forum software. Prior to 1.8.40, the user datahandler does not properly validate checkbox and multiselect profile field types, resulting in stored JavaScript code injection. UserDataHandler::verify_profile_fields() only performs the specialized validation when is_array($profile_fields[$field]) is true. A non-array profile_fields[fidX] value instead of the expected profile_fields[fidX][] shape falls through to generic text handling and is stored without verification. The affected value is then rendered directly by member.php and inc/functions_post.php rather than processed by the MyCode parser. The uniquely identifying implementation details include inc/datahandlers/user.php. This issue is fixed in version 1.8.40.

Analysis

AI-generated

Technical impact

MyBB forum software versions prior to 1.8.40 do not validate checkbox and multiselect profile field data correctly. During profile updates, the UserDataHandler::verify_profile_fields() routine only performs specialized validation when the field value is an array; when the value is a single string it passes through generic text handling and is stored without verification. The stored string is later rendered directly by member.php and inc/functions_post.php without passing through the MyCode parser. As a result, if a malicious user stores JavaScript code in a checkbox or multiselect profile field, that code will be executed in the browser of any user who views the affected profile or post, constituting a stored cross‑site scripting flaw.

Affected Systems

The issue affects MyBB installations running any version earlier than 1.8.40. It targets users who have checkbox or multiselect profile fields configured and use the standard UserDataHandler::verify_profile_fields() routine to process those fields. Every user of an affected MyBB instance is at risk, regardless of the specific profile fields or site configuration.

Risk and Exploitability

The CVSS score of 8.7 indicates a high‑severity vulnerability. EPSS data is unavailable and the flaw is not listed in CISA’s KEV catalog, suggesting no confirmed large‑scale exploitation yet. Attackers can exploit the flaw by creating or editing a checkbox or multiselect profile field with a malicious JavaScript payload; the payload is stored without sanitation and executed when the stored content is rendered. The attack is enabled for anyone who can modify the profile fields and for any visitor who views the rendered data.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade MyBB to version 1.8.40 or later, which includes the validation fix.
  • If an upgrade is not immediately possible, disable or remove any checkbox or multiselect profile fields that accept user input, or replace them with sanitized text fields.
  • Encode any remaining profile field input before rendering and consider enabling the MyCode parser for those fields to provide an additional sanitization layer.

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

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Mybb
Mybb mybb
Vendors & Products Mybb
Mybb mybb
Metrics ssvc

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

Type Values Removed Values Added
Description MyBB is free and open source forum software. Prior to 1.8.40, the user datahandler does not properly validate checkbox and multiselect profile field types, resulting in stored JavaScript code injection. UserDataHandler::verify_profile_fields() only performs the specialized validation when is_array($profile_fields[$field]) is true. A non-array profile_fields[fidX] value instead of the expected profile_fields[fidX][] shape falls through to generic text handling and is stored without verification. The affected value is then rendered directly by member.php and inc/functions_post.php rather than processed by the MyCode parser. The uniquely identifying implementation details include inc/datahandlers/user.php. This issue is fixed in version 1.8.40.
Title MyBB: Profile field type confusion XSS
Weaknesses CWE-79
References
Metrics cvssV3_1

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

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

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