# CVE-2026-45116: MyBB: Profile field type confusion 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.43%, higher than 29% of CVEs (2026-11-30)
- Published: 2026-08-18T15:46:34.212Z
- 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 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.

(As written by CVE List.)

## Affected

- mybb mybb: < 1.8.40

## References

- <https://github.com/mybb/mybb/security/advisories/GHSA-4p6g-p3qh-559v>
- <https://github.com/mybb/mybb/commit/c32f0c22baab704a68b8d58fcdd2f26fadbbe19b>
- <https://github.com/mybb/mybb/releases/tag/mybb_1840>
- <https://mybb.com/versions/1.8.40>

## Sources

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

---

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