Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft contact.php link with javascript: in 'from'
-
DeliveryDeliver link to authenticated victim
-
ExploitVictim submits form and clicks fallback link
-
ExecutionScript executes in victim session
-
ImpactSteal session or act as victim
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Attribute value escaping
|
| Exploitation Conditions | Exploitation requires the target forum to have the Contact module (contact.php) enabled - MyBB's default configuration - and requires the victim to actively click the 'Click here if you don't want to wait any longer' fallback link that is rendered because $force_redirect is true. The attacker supplies the malicious javascript: destination via the 'from' HTTP parameter ($mybb->input['from']) or the Referer header ($_SERVER['HTTP_REFERER']). No authentication is needed to craft or deliver the payload (PR:N), but the limiting factors are the mandatory user interaction (UI:R) and that meaningful impact requires luring an authenticated - ideally administrative - user; forums with the contact form disabled are not exploitable via this path. |
| Impact | The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N) drives the 9.3 rating largely through the scope-change and high confidentiality/integrity flags typical of client-side script execution, but the UI:R requirement is the key tempering factor: exploitation is not automatic and depends on a victim clicking a crafted link, so this behaves more like targeted phishing-assisted XSS than a wormable, self-propagating flaw. No CISA KEV listing and no POC are present in the supplied intelligence, and no EPSS score was provided, so there is no evidence of active or automated exploitation despite the high base score. In practice the impact for reflected XSS is usually bounded to the victim's authenticated session (session/cookie theft, forced actions such as posting or settings changes, and admin takeover if an administrator is lured), which is why the true severity is meaningful but arguably lower than 9.3 suggests. Because MyBB commonly runs on public-facing community forums where admins routinely follow user-supplied links, even a mid-sized operator running a modest community board should treat patching to 1.8.40 as a near-term priority rather than deferring it. |
| Exploit ScenarioDerived | An attacker crafts a link to the target forum's contact.php with the 'from' parameter set to a javascript: URI (or sends a request that seeds a malicious Referer) and lures a logged-in user - ideally an administrator - to submit the contact form and then click the 'Click here if you don't want to wait any longer' fallback link. The script runs in the victim's authenticated session, enabling cookie/session theft or actions performed as that user. No public exploit is identified at time of analysis, and success depends on the victim's click (UI:R) though attack complexity is low. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 18, 2026
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.
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.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
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.
Know when Mybb gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N
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.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.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.
Executive ViewAI
MyBB forum software before version 1.8.40 contains a critical vulnerability allowing attackers to inject malicious JavaScript code into user browser sessions through specially crafted links in the forum's Contact module. If forum users click an attacker-controlled link, their sessions and credentials are at risk of compromise, potentially exposing community data and damaging organizational trust. Organizations operating MyBB must immediately assess exposure and implement interim protections pending availability of a vendor patch.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Restrict or disable the Contact module if operationally feasible; (2) Deploy WAF rules to block requests with 'javascript:' in the 'from' parameter or Referer header to contact.php; (3) Implement strict Content Security Policy headers prohibiting unsafe inline script execution; (4) Enable enhanced logging and monitoring for suspicious redirects in contact.php; (5) Conduct user awareness training on risks of clicking forum links from untrusted sources; (6) Apply endpoint security controls to administrator and moderator accounts; (7) Consider network segmentation limiting forum user access to sensitive systems.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
MyBB is a free and open source forum software. Rated high severity (CVSS 7.2), this vulnerability is remotely exploitabl
The installer in MyBB before 1.8.13 allows remote attackers to execute arbitrary code by writing to the configuration fi
SQL Injection vulnerability in MyBB before 1.8.26 via poll vote count. Rated high severity (CVSS 8.8), this vulnerabilit
SQL Injection vulnerablity in MyBB before 1.8.26 via theme properties included in theme XML files. Rated high severity (
In MyBB before 1.8.21, an attacker can exploit a parsing flaw in the Private Message / Post renderer that leads to [vide
Privilege escalation in MyBB 1.8.40 lets a limited Admin Control Panel (ACP) user who holds only the delegated user-mana
MyBB before 1.8.11 allows remote attackers to bypass an SSRF protection mechanism. Rated high severity (CVSS 7.7), this
SQL injection vulnerability in member.php in MyBB (aka MyBulletinBoard) 1.8.x before 1.8.2 allows remote attackers to ex
An issue in MyBB 1.8.38 allows a remote attacker to obtain sensitive information via the Change Avatar function. Rated h
An issue in MyBB 1.8.38 allows a remote attacker to obtain sensitive information via the Import a Theme function. Rated
An issue in MyBB 1.8.38 allows a remote attacker to obtain sensitive information via the Mail function. Rated high sever
Multiple SQL injection vulnerabilities in ajaxfs.php in the Ajax forum stat (Ajaxfs) Plugin 2.0 for MyBB (aka MyBulletin
EUVD-2026-61021
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB