CVE-2026-45115: MyBB: Buddy/ignore list username XSS

Published Aug 18, 2026
·
Updated

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 htmlspecialcharsuni(), 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.

Affected Software

1 affected component
MyBB Group MyBB<1.8.40

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade MyBB Buddy/Ignore list to a version that resolves this vulnerability.

    Fixed in 1.8.40

Event History

Aug 18, 2026
CVE Published
via MITRE·03:46 PM
Data Sourced
via MITRE·03:46 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which MyBB deployments are affected?

MyBB installations running versions prior to 1.8.40 are affected. The vulnerable paths are the User CP Buddy/Ignore list and the Private Messages Select Buddies popup.

2

What does exploitation require?

An attacker needs an account or another ability to create a username containing a specially crafted payload. A victim must then either confirm removal of that username from the Buddy/Ignore list or select it in the Private Messages Select Buddies popup.

3

What remediation is available?

Upgrade MyBB to version 1.8.40, which fixes the issue. The provided information does not specify a workaround for installations that cannot yet be upgraded.

4

How can I look for possible exploitation attempts?

Review MyBB usernames and the affected Buddy/Ignore and Select Buddies interfaces for usernames containing single quotes or suspicious script-like content. The issue is specifically associated with usernames that are insufficiently escaped by the affected components.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203