CVE-2026-45115

MyBB: Buddy/ignore list username XSS

Published Aug 18, 2026 CVSS 3.1 · 8.7 High EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

MyBB forum software allows the Buddy/Ignore component to render usernames without proper escaping, enabling attackers to inject JavaScript code into the page. The injection can be triggered when a victim confirms removal of a nickname in usercp.php or selects a nickname via the onclick handler in the Select Buddies popup. Successful exploitation results in client‑side code execution in the victim’s browser, which can lead to theft of session cookies, access token hijacking, or defacement of the site. The weakness is a Cross‑Site Scripting flaw (CWE‑79).

Affected Systems

MyBB Forum software, versions prior to 1.8.40. The vulnerability exists in the Buddy/Ignore module and the Private Messages Select Buddies list where usernames are displayed. Upgrading to version 1.8.40 or later resolves the issue.

Risk and Exploitability

The CVSS score of 8.7 classifies the flaw as high severity, and the EPSS score is not available, indicating no current quantitative analysis of exploitation probability. It is not listed in the CISA KEV catalog. Exploitation requires the attacker to create or own a username containing malicious code and for a victim to view that username in a context that triggers the unsanitized output. Once a victim’s browser processes the injected script, the attacker can hijack the user session or execute arbitrary client‑side actions. The attack vector is a web application attack via the user interface. The need for a vulnerable username means social engineering or targeted phishing may be necessary to attract victims to the affected page.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Deploy the official MyBB 1.8.40 release or later to eliminate the unsanitized username rendering.
  • Remove or sanitize any existing usernames that contain unescaped single quotes or other potential scripting content from the database.
  • Ensure that all code paths rendering usernames perform output encoding, such as using htmlspecialchars_uni() or a reliable HTML escaping function, to guard against future XSS vectors.

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

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Mybb
Mybb mybb
Vendors & Products Mybb
Mybb mybb
Type Values Removed Values Added
Description 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.
Title MyBB: Buddy/ignore list username 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'}

Weaknesses
  • CWE-79

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

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 18, 2026, 5:55 PM
Reserved
May 8, 2026, 8:08 PM
Status
Deferred
Published
Aug 18, 2026, 4:17 PM
Modified
Sep 8, 2026, 9:02 PM