MyBB: Profile field type confusion XSS
MyBB is free and open source forum software. Prior to 1.8.40, the user datahandler does not properly validate checkbox and multiselect profile field types, resulting in stored JavaScript code injection. UserDataHandler::verify_profile_fields() only performs the specialized validation when is_array($profile_fields[$field]) is true. A non-array profile_fields[fidX] value instead of the expected profile_fields[fidX][] shape falls through to generic text handling and is stored without verification. The affected value is then rendered directly by member.php and inc/functions_post.php rather than processed by the MyCode parser. The uniquely identifying implementation details include inc/datahandlers/user.php. This issue is fixed in version 1.8.40.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-45116
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 4 Nov 2026, 03:25 UTC · Revision 1
Source evidence
MyBB is free and open source forum software. Prior to 1.8.40, the user datahandler does not properly validate checkbox and multiselect profile field types, resulting in stored JavaScript code injection. UserDataHandler::verify_profile_fields() only performs the specialized validation when is_array($profile_fields[$field]) is true. A non-array profile_fields[fidX] value instead of the expected profile_fields[fidX][] shape falls through to generic text handling and is stored without verification. The affected value is then rendered directly by member.php and inc/functions_post.php rather than processed by the MyCode parser. The uniquely identifying implementation details include inc/datahandlers/user.php. This issue is fixed in version 1.8.40.
osv:CVE-2026-45116
Complete source record
{
"id": "498adcda4be06f891865364ec4cba7c11273155af81bc6a69dd476928018db53",
"url": "https://osv.dev/vulnerability/CVE-2026-45116",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "MyBB: Profile field type confusion XSS",
"summary": "MyBB is free and open source forum software. Prior to 1.8.40, the user datahandler does not properly validate checkbox and multiselect profile field types, resulting in stored JavaScript code injection. UserDataHandler::verify_profile_fields() only performs the specialized validation when is_array($profile_fields[$field]) is true. A non-array profile_fields[fidX] value instead of the expected profile_fields[fidX][] shape falls through to generic text handling and is stored without verification. The affected value is then rendered directly by member.php and inc/functions_post.php rather than processed by the MyCode parser. The uniquely identifying implementation details include inc/datahandlers/user.php. This issue is fixed in version 1.8.40.",
"evidence": "osv:CVE-2026-45116",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2026-45116",
"aliases": [
"CVE-2026-45116",
"GHSA-4p6g-p3qh-559v"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/mybb/mybb",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "c32f0c22baab704a68b8d58fcdd2f26fadbbe19b"
},
{
"fixed": "e9942c6d19ac1709b3df7357cfb8810774c8d3ac"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"fixed": "c32f0c22baab704a68b8d58fcdd2f26fadbbe19b"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "e9942c6d19ac1709b3df7357cfb8810774c8d3ac"
}
],
"source": "REFERENCES_TAG",
"original_tag": "mybb_1840"
}
]
}
}
],
"versions": [
"mybb_1839",
"mybb_1839_build",
"mybb_1838",
"mybb_1838_build",
"mybb_1837",
"mybb_1837_build",
"mybb_1836",
"mybb_1835_build",
"mybb_1835",
"mybb_1834",
"mybb_1834_build",
"mybb_1833",
"mybb_1833_build",
"mybb_1832",
"mybb_1832_build",
"mybb_1831",
"mybb_1831_build",
"mybb_1829",
"mybb_1828",
"mybb_1828_build",
"mybb_1827_build",
"mybb_1827",
"mybb_1823_build",
"mybb_1823",
"mybb_1822",
"mybb_1822_build",
"mybb_1821pl1",
"mybb_1821",
"mybb_1821_build",
"mybb_1817_build",
"mybb_1817",
"mybb_1820",
"mybb_1820_build",
"mybb_1820-rc",
"mybb_1819",
"mybb_1818",
"mybb_1819_build",
"mybb_1818_build",
"mybb_1816",
"mybb_1816_build",
"mybb_1815",
"mybb_1815_build",
"mybb_1814",
"mybb_1813",
"mybb_1812",
"mybb_1811",
"mybb_1810",
"mybb_1809",
"mybb_1808",
"mybb_1807",
"mybb_1806",
"mybb_1805",
"mybb_1804",
"mybb_1800",
"mybb_1801"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-45116.json"
}
}
],
"modified": "2026-10-28T02:30:32.925274547Z",
"provider": "osv",
"references": [
"https://github.com/mybb/mybb/releases/tag/mybb_1840",
"https://mybb.com/versions/1.8.40",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45116.json",
"https://github.com/mybb/mybb/security/advisories/GHSA-4p6g-p3qh-559v",
"https://nvd.nist.gov/vuln/detail/CVE-2026-45116",
"https://github.com/mybb/mybb/commit/c32f0c22baab704a68b8d58fcdd2f26fadbbe19b"
],
"provider_metadata": {
"cwe_ids": [
"CWE-79"
],
"cna_assigner": "GitHub_M",
"unresolved_ranges": [
{
"extracted_events": [
{
"range": [
{
"fixed": "1.8.40"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
}
]
},
{
"extracted_events": [
{
"range": [
{
"fixed": "1.8.40"
},
{
"fixed": "1.8.40"
}
],
"source": "DESCRIPTION"
}
]
}
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45116.json"
}
},
"related_cves": [
{
"value": "CVE-2026-45116",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 500013,
"published_at": "2026-08-18T15:46:34.212+00:00"
}