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.
Security readout for executives and security teams
Plain-English summary
MyBB versions before 1.8.40 contain a contact-page flaw that can send users to an attacker-controlled destination and execute browser script after they select a redirect link. Successful abuse could expose sensitive browser-accessible information or enable actions in the user’s forum session. User interaction is required.
Executive priority
Treat this as an urgent internet-facing application update. Patch public MyBB forums promptly, prioritizing systems with administrative use or sensitive session data. Although no active exploitation is established in the supplied evidence, the critical score, unauthenticated reachability, and potential browser-session impact justify accelerated remediation.
Technical view
The Contact module accepts a redirect target from the HTTP “from” parameter or Referer header and passes it to redirect() without adequate URL or protocol validation. With forced redirects enabled, an unsafe URI can populate the fallback link, creating open-redirect and reflected script-injection behavior. MyBB 1.8.40 fixes the issue.
Likely exposure
Internet-accessible MyBB installations running versions earlier than 1.8.40 are potentially exposed when contact.php is reachable. Risk is greatest where authenticated administrators or other privileged users could be persuaded to follow a crafted request and select the displayed redirect link. The supplied sources do not quantify affected deployments.
Exploitation context
The CVSS 3.1 score is 9.3, reflecting network reachability, low complexity, no required privileges, user interaction, and cross-scope confidentiality and integrity impact. The supplied bundle says this CVE is not in KEV and provides no evidence of active exploitation. Exploitation still requires a victim to select the redirect link.
Researcher notes
The issue is identified as CWE-83. Relevant input sources are $mybb->input['from'] and $_SERVER['HTTP_REFERER']; the sink is redirect() with forced redirect behavior. The fallback link is the interaction point. The bundle does not provide exploitation telemetry, affected deployment counts, or detailed patch internals, so those points remain unverified.
Mitigation direction
Upgrade affected MyBB installations to version 1.8.40 or later.
Prioritize public forums and installations used by privileged administrators.
Review the MyBB advisory and release guidance before applying the update.
Limit contact.php exposure temporarily if upgrading cannot be completed promptly.
Validation and detection
Inventory MyBB installations and confirm their deployed versions.
Verify every installation is running MyBB 1.8.40 or later.
Identify whether contact.php is reachable from untrusted networks.
After upgrading, confirm redirect targets receive the vendor’s intended validation.
Review relevant web logs for unusual contact-page requests and external redirect values.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · low confidence lookup
CWE-83: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
1CVSS vectors
3Timeline events
1ADP providers
4Source links
SSVC decision data
CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: noneAutomatable: noTechnical Impact: total
CVSS vector scores
1 official score
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-83 · source CWE mapping
Improper Neutralization of Script in Attributes in a Web Page
Improper Neutralization of Script in Attributes in a Web Page represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.