Cross-site scriptingin MyBB.
No public exploit found; not on exploited lists.
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.
- Upgrade mybb to 1.8.40 or later.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 8 May 2026CVE ID reserved by GitHub_M.
- 18 Aug 2026Published in the CVE List.
- 18 Aug 2026CVE record last updated.
Attack code anyone can find
Exploit maturity: No public exploit found. CISA assessment (SSVC): exploitation none.
Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.
Report a link
Nothing on this page links to exploit code right now. To report anything else, write to the contact point in the legal notice.
Other MyBB vulnerabilities
Same weakness: Cross-site scripting
- github.com x_refsource_CONFIRM
- github.com x_refsource_MISC
- mybb.com x_refsource_MISC
Patchminder. CVE-2026-45115: Cross-site scripting in MyBB. https://patchminder.com/cve/cve-2026-45115/ (accessed 5 December 2026).