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

- Severity: High 8.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.29%, higher than 23% of CVEs (2026-12-01)
- Published: 2026-08-18T15:46:00.862Z
- Modified: 2026-09-08T21:02:26.047Z
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- mybb mybb: < 1.8.40

## References

- <https://github.com/mybb/mybb/security/advisories/GHSA-p766-qqxv-rfc2>
- <https://github.com/mybb/mybb/releases/tag/mybb_1840>
- <https://mybb.com/versions/1.8.40>

## Sources

- CVE List: [CVE-2026-45115](https://www.cve.org/CVERecord?id=CVE-2026-45115), CVE Terms of Use, modified 2026-08-18
- NVD: [CVE-2026-45115](https://nvd.nist.gov/vuln/detail/CVE-2026-45115), Public domain, modified 2026-09-08

---

Page: https://cve.day/CVE-2026-45115 · Whole record: https://cve.day/CVE-2026-45115.json · Rebuilt by cve.day 2026-11-25T22:59:33.499Z
