Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconRegister account with single-quote XSS username
-
DeliveryEstablish buddy/contact relationship with victim
-
ExploitVictim opens User CP Buddy list or composes Private Message
-
InstallVictim clicks attacker's username or confirms buddy removal
-
C2Unescaped single quote breaks HTML attribute context
-
ExecuteInjected JavaScript executes in victim's authenticated session
-
ImpactSession token or credentials exfiltrated to attacker
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 (low-privilege registered user) with a username containing a single-quote-based JavaScript payload. The victim must have previously added the attacker's account to their buddy or ignore list (User CP flow), OR the attacker's account must appear in the Private Messages Select Buddies AJAX popup (xmlhttp.php flow). Exploitation requires one of two specific victim actions: clicking 'Yes' in the 'Please Confirm' removal dialog for a buddy/ignored user in usercp.php, or clicking the attacker's crafted username via its onclick handler in the Select Buddies popup. Limiting factors include: the victim must have a prior social relationship with the attacker's account for the User CP path, active and deliberate user interaction with these specific UI elements is required in both paths, and the attack is scoped to forum members only - unauthenticated visitors cannot trigger the payload. |
| Impact | The CVSS 3.1 vector AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N and score of 8.7 accurately model the attack profile: network-accessible, low complexity, low-privilege account required, user interaction needed, with a scope change into the victim's authenticated session. The PR:L barrier is practically negligible on most public MyBB forums where open registration is the default, making the effective attack surface closer to unauthenticated in many deployments. The UI:R requirement limits opportunistic mass exploitation but does not prevent targeted attacks - an adversary who can socially engineer a victim into interacting with a buddy list or Private Messages can reliably trigger the payload. No EPSS data was provided in the input, so statistical exploitation probability cannot be assessed. KEV status is negative and no POC has been published, reducing urgency relative to actively exploited vulnerabilities. Overall, this is a genuine priority for any public-facing MyBB installation, particularly community forums where untrusted users can register freely. |
| Exploit ScenarioDerived | An attacker registers a MyBB account with a username crafted to escape single-quote attribute context - for example, |
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's Buddy/Ignore component prior to version 1.8.40 allows authenticated attackers to inject arbitrary JavaScript by registering usernames that survive the htmlspecialchars_uni() sanitization pass with unescaped single quotes intact. The payload fires in the victim's browser during two specific user interactions: clicking 'Yes' in the removal confirmation dialog within usercp.php, or selecting the crafted username via the onclick handler in the xmlhttp.php Private Messages Select Buddies popup. With a CVSS 8.7 rating reflecting a scope change (C:H, I:H), successful exploitation can yield full session hijacking or unauthorized actions on behalf of the victim. No public exploit has been identified at time of analysis.
RemediationAI
Upgrade to MyBB 1.8.40 - the vendor-released patch confirmed at https://github.com/mybb/mybb/releases/tag/mybb_1840 and https://mybb.com/versions/1.8.40. This is the only definitive fix; the remediation targets the htmlspecialchars_uni() call sites in usercp.php and xmlhttp.php to ensure single quotes are escaped. If an immediate upgrade is not possible, operators should disable open registration and require admin approval for new accounts, raising the attacker's access prerequisite and reducing the pool of potential malicious usernames. As an additional compensating control, adding a Content Security Policy (CSP) header that restricts inline script execution can prevent injected payloads from executing even if triggered - though this may break MyBB's own inline JavaScript and requires testing. There is no configuration toggle to disable the Buddy/Ignore or Private Messages features individually without patching.
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 an open-source PHP forum platform (CPE: cpe:2.3:a:mybb:mybb:*:*:*:*:*:*:*:*). The root cause is CWE-79 (Improper Neutralization of Input During Web Page Generation). PHP's htmlspecialchars() - and by extension MyBB's htmlspecialchars_uni() wrapper - escapes double quotes and angle brackets but leaves single quotes unescaped unless the ENT_QUOTES flag is explicitly passed. Username values rendered inside single-quote-delimited HTML attribute contexts (e.g., onclick='action("USERNAME")') can therefore break out of the attribute boundary with a payload such as x' onmouseover='malicious(). The payload is exposed in two distinct rendering contexts: the confirmation dialog in usercp.php (Buddy/Ignore management) and the AJAX-driven Select Buddies popup served by xmlhttp.php in the Private Messages flow. Both contexts pass usernames through the insufficient sanitizer before injecting them into the DOM.
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
Attacker needs a registered account (PR:L), victim must actively interact with Buddy UI or PM popup (UI:R), JavaScript executes across scope boundary into victim session (S:C), enabling session hijacking (C:H, I:H); no server availability impact.
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 Buddy/Ignore component does not sanitize usernames correctly, allowing attackers to perform JavaScript code injection through a specially crafted username. The User CP Buddy/Ignore list and the Select Buddies list in Private Messages pass usernames through htmlspecialchars_uni(), which may leave single quotes unescaped. The payload is triggered when a victim chooses Yes in Please Confirm while removing the username in usercp.php, or selects the username through the onclick handler in the xmlhttp.php Select Buddies popup. The uniquely identifying implementation details include Private Messages Select Buddies list, and unescaped single quotes. This issue is fixed in version 1.8.40.
Executive ViewAI
MyBB versions prior to 1.8.40 contain a stored cross-site scripting vulnerability in the Buddy/Ignore component that allows authenticated users to execute malicious scripts in other users' browsers, potentially enabling session hijacking and unauthorized account actions. Organizations running affected MyBB instances should immediately assess their exposure and implement compensating controls, as no vendor patch is currently available.
Implement enhanced input validation to reject usernames containing problematic single-quote patterns; harden output encoding for buddy list display in usercp.php and xmlhttp.php; consider disabling Buddy/Ignore functionality if not operationally critical; establish monitoring for suspicious buddy list additions and clicks; deploy web application firewall rules to detect and block XSS patterns if available; educate users not to interact with newly added buddies from untrusted sources pending patch availability.
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-61005
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB