All vulnerabilities

Servers and applications

CVE-2026-45115

Buddy/ignore list username XSS

Severity
High
Published
28 May 2026
Last changed
28 May 2026
Added to UpHeron
3 Nov 2026
Fixed in
1.8.40
Exploit chance
0.4% in the next 30 daysHigher than 36% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Cross-site scripting (CWE-79)
Also known as
GHSA-p766-qqxv-rfc2
Sources
Project advisories (GitHub)

Description

The Buddy/Ignore component does not sanitize usernames correctly, allowing attackers to perform JavaScript code injection (XSS) via specially crafted username value.

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N

The Buddy/Ignore list feature in the User CP, and the Select Buddies list in Private Messages, does not sanitize certain special characters in usernames.

https://github.com/mybb/mybb/blob/mybb_1839/usercp.php#L3204 https://github.com/mybb/mybb/blob/mybb_1839/xmlhttp.php#L1068-L1078

Usernames passed through htmlspecialchars_uni() may still contain unescaped single quotes '.

Triggers:

  • choosing _Yes_ in _Please Confirm_ when removing user with payload username from Buddy/Ignore list (usercp.php)
  • selecting (onclick) user with payload username in _Select Buddies_ popup when composing a Private Message (xmlhttp.php)
From mybb/mybb's security advisory.

Affected software

SoftwareAffected versions
MyBBServers and applications · github:mybb/mybb
  • Every version before 1.8.40

About MyBB

open-source forum software

From Wikidata, CC0 1.0.
Docker Hub pulls
195,687Docker Hub, 15 Nov 2026
GitHub stars
1,251GitHub, 15 Nov 2026
Forks
445GitHub, 15 Nov 2026
Latest release
mybb_1841GitHub, 15 Nov 2026
Released
16 Sept 2026GitHub
License
GNU General Public License, version 3.0, GNU Lesser General Public License, version 3.0Wikidata
Written in
PHPWikidata
First released
2002Wikidata
First published on GitHub
13 Jun 2012GitHub

References