Skip to main content

MyBB CVE-2026-45116

| EUVDEUVD-2026-61006 HIGH
Cross-site Scripting (XSS) (CWE-79)
2026-08-18 GitHub_M
8.7
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Register low-privilege forum account
  2. Delivery
    Submit scalar XSS string as checkbox/multiselect profile field
  3. Exploit
    Bypass is_array() gate in verify_profile_fields()
  4. Install
    Payload stored unencoded in database
  5. C2
    Victim administrator views attacker profile or post sidebar
  6. Execute
    JavaScript executes in victim browser
  7. Impact
    Exfiltrate 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

MyBB < 1.8.40

Affected Packages

euvd mybb fix: 1.8.40

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

Vendor (GitHub_M) PRIMARY 8.7 HIGH
AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
vuln.today AI 8.7 HIGH

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.

3.1 AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:H/VA:N/SC:H/SI:H/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
Required
Scope
Changed
Confidentiality
High
Integrity
High
Availability
None

Lifecycle Timeline

2
Patch available
Aug 18, 2026 - 17:17 EUVD
CVE Published
Aug 18, 2026 - 15:46 cve.org
HIGH 8.7

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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.3%
Top 77% exploitable
Prevalence
Medium
popular open-source forum software with significant but niche deployment
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

More in Mybb

View all
CVE-2022-24734 HIGH POC
7.2 Mar 09

MyBB is a free and open source forum software. Rated high severity (CVSS 7.2), this vulnerability is remotely exploitabl

CVE-2017-16780 CRITICAL POC
9.8 Nov 10

The installer in MyBB before 1.8.13 allows remote attackers to execute arbitrary code by writing to the configuration fi

CVE-2021-27946 HIGH POC
8.8 Mar 15

SQL Injection vulnerability in MyBB before 1.8.26 via poll vote count. Rated high severity (CVSS 8.8), this vulnerabilit

CVE-2021-27890 HIGH POC
8.8 Mar 15

SQL Injection vulnerablity in MyBB before 1.8.26 via theme properties included in theme XML files. Rated high severity (

CVE-2019-12830 HIGH POC
8.7 Jun 15

In MyBB before 1.8.21, an attacker can exploit a parsing flaw in the Private Message / Post renderer that leads to [vide

CVE-2026-58054 HIGH POC
8.6 Jun 28

Privilege escalation in MyBB 1.8.40 lets a limited Admin Control Panel (ACP) user who holds only the delegated user-mana

CVE-2017-7566 HIGH POC
7.7 Apr 06

MyBB before 1.8.11 allows remote attackers to bypass an SSRF protection mechanism. Rated high severity (CVSS 7.7), this

CVE-2014-9240 HIGH POC
7.5 Dec 03

SQL injection vulnerability in member.php in MyBB (aka MyBulletinBoard) 1.8.x before 1.8.2 allows remote attackers to ex

CVE-2025-29458 HIGH POC
7.6 Apr 17

An issue in MyBB 1.8.38 allows a remote attacker to obtain sensitive information via the Change Avatar function. Rated h

CVE-2025-29457 HIGH POC
7.6 Apr 17

An issue in MyBB 1.8.38 allows a remote attacker to obtain sensitive information via the Import a Theme function. Rated

CVE-2025-29459 HIGH POC
7.6 Apr 17

An issue in MyBB 1.8.38 allows a remote attacker to obtain sensitive information via the Mail function. Rated high sever

CVE-2013-6936 HIGH POC
7.5 Dec 04

Multiple SQL injection vulnerabilities in ajaxfs.php in the Ajax forum stat (Ajaxfs) Plugin 2.0 for MyBB (aka MyBulletin

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy