All vulnerabilities

Servers and applications

CVE-2026-45118

Contact page reflected XSS

Severity
Medium
Published
28 May 2026
Last changed
28 May 2026
Added to UpHeron
3 Nov 2026
Fixed in
1.8.40
Exploit chance
0.5% in the next 30 daysHigher than 46% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
CWE-83
Also known as
GHSA-wf92-5q5h-qr53
Sources
Project advisories (GitHub)

Description

The Contact module does not validate the input URL or protocol correctly, resulting in an open redirect and JavaScript code injection (reflected XSS) vulnerability.

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

The contact.php component accepts the redirect URL from HTTP parameter from ($mybb->input['from']) or HTTP header Referer ($_SERVER['HTTP_REFERER']) that is passed to the redirect() function without sufficient verification.

In addition to the open redirect weakness, javascript: scheme URIs are accepted, resulting in a reflected XSS vulnerability. While browsers don't execute such payloads in redirection context, the URI is the target of the rendered _Click here if you don't want to wait any longer_ link on the redirect page that is displayed regardless of settings or user preferences ($force_redirect = true).

$redirect_url population at https://github.com/mybb/mybb/blob/mybb_1839/contact.php#L294-L305 redirect() calls at…

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