All vulnerabilities

Servers and applications

CVE-2026-45116

Profile field type confusion 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 37% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Cross-site scripting (CWE-79)
Also known as
GHSA-4p6g-p3qh-559v
Sources
Project advisories (GitHub)

Description

The user datahandler does not properly validate certain profile field types (Type Confusion), resulting in a JavaScript code injection (XSS) vulnerability.

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

The validation in UserDataHandler::verify_profile_fields() for types checkbox (_Check Boxes_ Field Type) and multiselect (_Multiple Option Selection Box_ Field Type) only runs when the provided value is an array (is_array($profile_fields[$field])).

A specially crafted request with a non-array value (e.g. profile_fields[fidX]=...) — instead of the expected profile_fields[fidX][]=... shape — triggers generic text field handling, in which the unverified value is stored.

The stored value for the affected field types is rendered directly rather than being processed with the MyCode parser used for field types that accept arbitrary input.

Missed validation at: https://github.com/mybb/mybb/blob/mybb_1839/inc/datahandlers/user.php#L554

From mybb/mybb's security advisory. Shortened; the full text is there.

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