# CVE-2021-41866: MyBB before 1.8.28 allows stored XSS because the displayed Template Name value in the Admin CP's theme management is not escaped properly.

- Severity: Medium 5.4 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/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.57%, higher than 48% of CVEs (2026-12-01)
- Published: 2021-10-26T21:25:47.000Z
- Modified: 2026-06-17T04:09:02.003Z
- Weaknesses: CWE-79
- Assigned by: mitre

## Description

MyBB before 1.8.28 allows stored XSS because the displayed Template Name value in the Admin CP's theme management is not escaped properly.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- mybb mybb: before 1.8.28

## Every score

- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 3.5 Low `AV:N/AC:M/Au:S/C:N/I:P/A:N`

## References

- <https://github.com/mybb/mybb/security/advisories/> (third-party-advisory)
- <https://github.com/mybb/mybb/security/advisories/GHSA-gxhv-r3m5-6qv7> (patch, third-party-advisory)

## Sources

- CVE List: [CVE-2021-41866](https://www.cve.org/CVERecord?id=CVE-2021-41866), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2021-41866](https://nvd.nist.gov/vuln/detail/CVE-2021-41866), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-41866 · Whole record: https://cve.day/CVE-2021-41866.json · Rebuilt by cve.day 2026-11-25T22:58:05.212Z
