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
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft contact.php link with javascript: in 'from'
  2. Delivery
    Deliver link to authenticated victim
  3. Exploit
    Victim submits form and clicks fallback link
  4. Execution
    Script executes in victim session
  5. Impact
    Steal 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

MyBB < 1.8.40

Affected Packages

euvd mybb fix: 1.8.40

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

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

2
Patch available
Aug 18, 2026 - 17:17 EUVD
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.

Executive ViewAI

Why It Matters

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.

Business Impact: Severe
Compensating Controls

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

EPSS Score
0.4%
Top 68% exploitable
Prevalence
Medium
popular open-source forum platform, common but not ubiquitous
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
Very High
Technical Impact
Total

Priority Score

46
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +46
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

More in Mybb

View all
CVE-2022-24734 HIGH POC
7.2 Mar 09

MyBB is a free and open source forum software. Rated high severity (CVSS 7.2), this vulnerability is remotely exploitabl

CVE-2017-16780 CRITICAL POC
9.8 Nov 10

The installer in MyBB before 1.8.13 allows remote attackers to execute arbitrary code by writing to the configuration fi

CVE-2021-27946 HIGH POC
8.8 Mar 15

SQL Injection vulnerability in MyBB before 1.8.26 via poll vote count. Rated high severity (CVSS 8.8), this vulnerabilit

CVE-2021-27890 HIGH POC
8.8 Mar 15

SQL Injection vulnerablity in MyBB before 1.8.26 via theme properties included in theme XML files. Rated high severity (

CVE-2019-12830 HIGH POC
8.7 Jun 15

In MyBB before 1.8.21, an attacker can exploit a parsing flaw in the Private Message / Post renderer that leads to [vide

CVE-2026-58054 HIGH POC
8.6 Jun 28

Privilege escalation in MyBB 1.8.40 lets a limited Admin Control Panel (ACP) user who holds only the delegated user-mana

CVE-2017-7566 HIGH POC
7.7 Apr 06

MyBB before 1.8.11 allows remote attackers to bypass an SSRF protection mechanism. Rated high severity (CVSS 7.7), this

CVE-2014-9240 HIGH POC
7.5 Dec 03

SQL injection vulnerability in member.php in MyBB (aka MyBulletinBoard) 1.8.x before 1.8.2 allows remote attackers to ex

CVE-2025-29458 HIGH POC
7.6 Apr 17

An issue in MyBB 1.8.38 allows a remote attacker to obtain sensitive information via the Change Avatar function. Rated h

CVE-2025-29457 HIGH POC
7.6 Apr 17

An issue in MyBB 1.8.38 allows a remote attacker to obtain sensitive information via the Import a Theme function. Rated

CVE-2025-29459 HIGH POC
7.6 Apr 17

An issue in MyBB 1.8.38 allows a remote attacker to obtain sensitive information via the Mail function. Rated high sever

CVE-2013-6936 HIGH POC
7.5 Dec 04

Multiple SQL injection vulnerabilities in ajaxfs.php in the Ajax forum stat (Ajaxfs) Plugin 2.0 for MyBB (aka MyBulletin

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