Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconRegister low-privilege forum account
-
DeliverySubmit scalar XSS string as checkbox/multiselect profile field
-
ExploitBypass is_array() gate in verify_profile_fields()
-
InstallPayload stored unencoded in database
-
C2Victim administrator views attacker profile or post sidebar
-
ExecuteJavaScript executes in victim browser
-
ImpactExfiltrate session cookie and hijack privileged session
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The attacker must hold a valid MyBB forum account at member privilege level or above (PR:L); unauthenticated exploitation is not possible. The target installation must have at least one custom profile field of type checkbox or multiselect defined and enabled in the Admin Control Panel - if no such fields exist, the vulnerable code path in verify_profile_fields() is never reached. Exploitation is passive: the attacker stores the payload, but a separate victim user must subsequently load a page that renders the attacker's profile fields (UI:R), such as the profile view page or a forum post with profile sidebar enabled. The MyBB installation must be running a version prior to 1.8.40. Factors limiting exploitation: the forum must have checkbox/multiselect profile fields configured (non-default unless explicitly set up by an admin); impact escalation to administrative compromise requires an administrator to view the attacker's content. |
| Impact | The CVSS 8.7 score is well-supported by the vector metrics: network-accessible, low-complexity exploitation requiring only a registered forum account (PR:L), with victim page view as the sole friction (UI:R). The Changed scope (S:C) elevates real-world impact significantly - the attacker's injected script executes in the security context of other users' browsers, enabling session cookie theft, CSRF, and administrative action hijacking even from a member-level account. High C and I ratings reflect these consequences accurately. The primary limiting factor is UI:R: the payload is passive and requires organic or social-engineered traffic to the compromised profile. No EPSS data was provided in the source intelligence, and there is no CISA KEV listing, meaning exploitation probability cannot be quantified from available signals. No public POC has been identified, though the commit diff provides sufficient detail for a competent attacker to reproduce the issue independently. The CVSS vector and vulnerability description are fully consistent - no conflicting signals. Any forum installation with checkbox or multiselect profile fields configured and open registration should treat this as a high-priority patch given the low barrier to exploitation and the elevated impact when an administrator is the victim. |
| Exploit ScenarioDerived | An attacker registers a low-privilege forum account and submits a POST request to the profile update endpoint with a crafted scalar string value - such as a script tag or event handler payload - in a checkbox or multiselect profile field parameter, bypassing the array type check and storing the raw JavaScript in the database. When an administrator or moderator later visits the attacker's profile page or views a post where the profile sidebar is rendered, the stored payload executes in the victim's browser, exfiltrating their session cookie to an attacker-controlled server and granting the attacker full impersonation of the privileged account. No public POC has been identified, but the vulnerability is mechanically straightforward and the commit diff fully discloses the bypass condition. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 18, 2026
Stored cross-site scripting in MyBB before 1.8.40 allows any registered forum member to inject persistent JavaScript into checkbox and multiselect profile fields by submitting a scalar string value instead of the expected array shape, bypassing type-specific sanitization in UserDataHandler::verify_profile_fields(). The unsanitized payload is written to the database and rendered verbatim in member.php and inc/functions_post.php when other users view the attacker's profile or posts displaying profile fields. With a Changed scope (S:C) and high confidentiality and integrity impact, successful exploitation against an administrator enables full session hijacking and privileged action takeover; no active exploitation or public POC has been identified at time of analysis.
RemediationAI
Upgrade to MyBB 1.8.40 immediately; this is the vendor-released patch confirmed by the GitHub release tag at https://github.com/mybb/mybb/releases/tag/mybb_1840, the security advisory at https://github.com/mybb/mybb/security/advisories/GHSA-4p6g-p3qh-559v, and commit c32f0c22baab704a68b8d58fcdd2f26fadbbe19b. If immediate upgrade is not feasible, a targeted compensating control is to disable all custom profile fields of type checkbox and multiselect through the MyBB ACP (Admin Panel > Configuration > Custom Profile Fields), which eliminates the vulnerable input path entirely at the cost of those field types being unavailable to users. A secondary compensating control is to disable public user registration and restrict profile editing to administrator-reviewed accounts, which raises the bar for exploitation but does not eliminate risk from existing accounts. Output-encoding patches to member.php and inc/functions_post.php are part of the 1.8.40 fix and cannot be selectively backported without the full upgrade.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
MyBB is a PHP-based open-source forum platform. The vulnerability lives in inc/datahandlers/user.php within UserDataHandler::verify_profile_fields(), which validates custom profile fields submitted during registration or profile edits. Checkbox and multiselect field types expect array-shaped POST data (profile_fields[fidX][]), and the pre-fix code gated type-specific sanitization on is_array($profile_fields[$field]) being true. Submitting a scalar string value for these fields caused the condition to evaluate false, falling through to generic text handling that applied no XSS-specific sanitization before the value was stored. The stored value was then output verbatim in member.php (profile display) and inc/functions_post.php (post sidebar rendering), bypassing the MyCode parser that would otherwise have processed it safely. The fix in commit c32f0c22baab704a68b8d58fcdd2f26fadbbe19b applies two independent defenses: forcing non-array inputs to an empty array in the handler (removing the bypass path entirely) and adding htmlspecialchars_uni() output encoding at both render points in member.php and inc/functions_post.php. CWE-79 (Stored XSS) accurately classifies this as a failure to neutralize user-controlled input before it reaches an HTML rendering context.
Know when Mybb gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
Network-delivered stored XSS exploitable by any registered member, requiring victim page view; scope change and high C/I reflect cross-context session hijacking potential.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
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.
Executive ViewAI
MyBB versions before 1.8.40 contain a stored cross-site scripting vulnerability in user profile fields that allows any registered forum member to inject persistent malicious code; no public exploit identified at time of analysis. Organizations deploying MyBB for internal or customer-facing communities face direct risk of administrative account compromise, session hijacking, and unauthorized privileged actions. The absence of an available vendor patch requires immediate interim mitigation and continuous monitoring.
Disable user profile field editing capability until patch availability; restrict member profile visibility to administrators only; implement web application firewall rules blocking JavaScript payloads in profile submission endpoints; monitor access logs and profile modification events for indicators of exploitation; reduce non-administrator user account privileges to minimize attack surface.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
MyBB is a free and open source forum software. Rated high severity (CVSS 7.2), this vulnerability is remotely exploitabl
The installer in MyBB before 1.8.13 allows remote attackers to execute arbitrary code by writing to the configuration fi
SQL Injection vulnerability in MyBB before 1.8.26 via poll vote count. Rated high severity (CVSS 8.8), this vulnerabilit
SQL Injection vulnerablity in MyBB before 1.8.26 via theme properties included in theme XML files. Rated high severity (
In MyBB before 1.8.21, an attacker can exploit a parsing flaw in the Private Message / Post renderer that leads to [vide
Privilege escalation in MyBB 1.8.40 lets a limited Admin Control Panel (ACP) user who holds only the delegated user-mana
MyBB before 1.8.11 allows remote attackers to bypass an SSRF protection mechanism. Rated high severity (CVSS 7.7), this
SQL injection vulnerability in member.php in MyBB (aka MyBulletinBoard) 1.8.x before 1.8.2 allows remote attackers to ex
An issue in MyBB 1.8.38 allows a remote attacker to obtain sensitive information via the Change Avatar function. Rated h
An issue in MyBB 1.8.38 allows a remote attacker to obtain sensitive information via the Import a Theme function. Rated
An issue in MyBB 1.8.38 allows a remote attacker to obtain sensitive information via the Mail function. Rated high sever
Multiple SQL injection vulnerabilities in ajaxfs.php in the Ajax forum stat (Ajaxfs) Plugin 2.0 for MyBB (aka MyBulletin
EUVD-2026-61006
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB