XSS in Mybb
CVE-2026-45118
MyBB is free and open source forum software. Prior to 1.8.40, the Contact module does not validate a redirect URL or protocol correctly, resulting in an open redirect and reflected JavaScript code injection. contact.php accepts the redirect target from the from HTTP parameter in $mybb->input['from'] or the Referer HTTP header in $_SERVER['HTTP_REFERER'] and passes it to redirect() without sufficient verification. A javascript: URI becomes the target of the `Click here if you don't want to wait any longer` link because $force_redirect is true, allowing script execution when a victim selects the link. This issue is fixed in version 1.8.40.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.3 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N.
EPSS exploit prediction
EPSS: 0.005 (43.9th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 44th percentile — 43.9% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.004 · newest: 0.005 · change: +0.002
Affected products
- Mybb — versions < 1.8.40
Weakness classification (CWE)
References
Frequently asked questions
- What is CVE-2026-45118?
- CVE-2026-45118 is a critical-severity vulnerability in Mybb, classified under Improper Neutralization of Script in Attributes in a Web Page. CVSS score: 9.3/10. Published 2026-08-18.
- How severe is CVE-2026-45118?
- Critical severity. CVSS v3 base score is 9.3 out of 10.