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

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.

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

Remediation

No vendor fix or workaround currently provided.

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

History

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

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


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


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-18T17:55:31.261Z

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

Link: CVE-2026-45116

cve-icon Vulnrichment

Updated: 2026-08-18T17:55:26.654Z

cve-icon NVD

Status : Received

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

Modified: 2026-08-18T18:17:34.500

Link: CVE-2026-45116

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-18T18:15:04Z

Weaknesses
  • CWE-79

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