Skip to main content

MyBB CVE-2026-45118

| EUVDEUVD-2026-61021 CRITICAL
Improper Neutralization of Script in Attributes in a Web Page (CWE-83)
2026-08-18 GitHub_M
9.3
CVSS 3.1 · Vendor: GitHub_M
Share

Severity by source

Vendor (GitHub_M) PRIMARY
9.3 CRITICAL
AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N
vuln.today AI
6.1 MEDIUM

Remote, low-complexity, unauthenticated delivery but requires a victim click (UI:R); reflected XSS impact is scope-changing into the browser (S:C) yet realistically bounded to the victim's session, so C:L/I:L rather than H.

3.1 AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:A/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
High
Integrity
High
Availability
None

Lifecycle Timeline

4
Patch available
Aug 18, 2026 - 17:17 EUVD
Source Code Evidence Fetched
Aug 18, 2026 - 16:46 vuln.today
Analysis Generated
Aug 18, 2026 - 16:46 vuln.today
CVE Published
Aug 18, 2026 - 15:55 cve.org
CRITICAL 9.3

DescriptionCVE.org

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.

AnalysisAI

Reflected JavaScript injection and open redirect in MyBB forum software before 1.8.40 lets a remote attacker execute script in a victim's browser session. The Contact module (contact.php) takes a redirect target from the 'from' request parameter or the Referer header and passes it to redirect() without validating the URL scheme, so a javascript: URI can be delivered as the destination of the post-submission 'Click here if you don't want to wait any longer' link. CVSS is 9.3; no public exploit identified at time of analysis, and the flaw requires the victim to click the crafted link.

Technical ContextAI

MyBB is a widely used PHP-based open-source forum application. The root cause is CWE-83 (Improper Neutralization of Scripts in Attributes / failure to sanitize a redirect target), a variant of cross-site scripting arising from unvalidated URL scheme handling. contact.php reads the redirect destination from $mybb->input['from'] (the 'from' HTTP parameter) or from $_SERVER['HTTP_REFERER'] and forwards it to the framework's redirect() helper. Because $force_redirect is true, MyBB renders a manual fallback link whose href is the attacker-controlled value; the code accepts a javascript: pseudo-protocol URI rather than restricting to http/https or relative paths, converting an open redirect into DOM-context script execution. The affected component is identified by CPE cpe:2.3:a:mybb:mybb:*, i.e. the core MyBB product across versions prior to 1.8.40.

RemediationAI

Vendor-released patch: 1.8.40 - upgrade MyBB to 1.8.40, which corrects contact.php to validate the redirect URL and reject non-http(s) schemes; follow the release notes at https://github.com/mybb/mybb/releases/tag/mybb_1840 and the advisory GHSA-wf92-5q5h-qr53. If an immediate upgrade is not possible, restrict or disable the Contact module (Admin CP setting to turn off the contact form / 'Contact' link) to remove the vulnerable code path, at the cost of losing the site's contact functionality. As a broader compensating control, deploy a Content-Security-Policy that forbids inline and javascript: URI execution (e.g. a restrictive script-src without 'unsafe-inline'), which blunts script execution but may break themes or plugins relying on inline scripts; a WAF rule blocking 'from' parameters and Referer values containing 'javascript:' can also reduce exposure but is bypass-prone and should not be treated as a substitute for the patch.

More in PHP

View all
CVE-2019-11043 CRITICAL POC
9.8 Oct 28

In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it

CVE-2012-1823 CRITICAL POC
9.8 May 11

sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not

CVE-2016-1555 CRITICAL POC
9.8 Apr 21

(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear

CVE-2018-11138 CRITICAL POC
9.8 May 31

The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by

CVE-2024-11680 CRITICAL POC
9.8 Nov 26

ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2017-9841 CRITICAL POC
9.8 Jun 27

Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c

CVE-2025-0108 HIGH POC
8.8 Feb 12

Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers

CVE-2021-25298 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2021-25296 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2013-4983 CRITICAL POC
10.0 Sep 10

The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

Share

CVE-2026-45118 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy