Description
MyBB is free and open source forum software. Prior to 1.8.40, the Email User controller does not sanitize sender names correctly, resulting in mail header injection. member.php?action=do_emailuser accepts the fromname HTTP parameter for guests or the stored username for authenticated users when the cansendemail group permission is enabled. When mail_handler is set to the default PHP mail value, the sender name is used without sanitization in Return-Path and Reply-To headers, allowing arbitrary headers to be injected with CRLF sequences. This issue is fixed in version 1.8.40.
Published: 2026-08-18
Score: 5.3 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability arises from the Email User controller that fails to sanitize the sender name field when the mail_handler defaults to PHP mail. It allows an attacker to inject arbitrary CRLF sequences into the Return-Path and Reply‑To headers, effectively forging email headers. This could be abused to send spam, phishing emails, or manipulate the origin of notifications sent by the forum. The flaw is an instance of Header Injection, identified as CWE‑93.

Affected Systems

The affected product is MyBB, specifically the forum software versions prior to 1.8.40. Users with the cansendemail permission (both guests and authenticated users) are subject to this bug. The fix is included in MyBB 1.8.40 and later releases, which properly sanitizes the sender name.

Risk and Exploitability

The CVSS base score is 5.3, indicating moderate impact. While an exploit does not grant arbitrary code execution, it does enable manipulation of outbound email, which can be used for phishing or spam. The EPSS score is not available, and the vulnerability is not listed in CISA’s KEV catalog. The attack vector is likely web‑based, exploiting the member.php?action=do_emailuser endpoint. Without additional mitigations, the vulnerability could be leveraged by any user with permission to send emails via the forum.

Generated by OpenCVE AI on August 18, 2026 at 17:53 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Install the latest MyBB release (1.8.40 or newer) to apply the patch that sanitizes the sender name field.
  • Limit the cansendemail permission to trusted users or groups to reduce the number of potential injection vectors.
  • Audit the mail_handler configuration; if the default PHP mail is used, consider switching to a library that validates headers or disabling return‑path manipulation.

Generated by OpenCVE AI on August 18, 2026 at 17:53 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 18 Aug 2026 18:30:00 +0000

Type Values Removed Values Added
First Time appeared Mybb
Mybb mybb
Vendors & Products Mybb
Mybb mybb

Tue, 18 Aug 2026 16:00:00 +0000

Type Values Removed Values Added
Description MyBB is free and open source forum software. Prior to 1.8.40, the Email User controller does not sanitize sender names correctly, resulting in mail header injection. member.php?action=do_emailuser accepts the fromname HTTP parameter for guests or the stored username for authenticated users when the cansendemail group permission is enabled. When mail_handler is set to the default PHP mail value, the sender name is used without sanitization in Return-Path and Reply-To headers, allowing arbitrary headers to be injected with CRLF sequences. This issue is fixed in version 1.8.40.
Title MyBB: Email User CRLF injection
Weaknesses CWE-93
References
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-18T17:46:25.763Z

Reserved: 2026-05-08T20:08:17.208Z

Link: CVE-2026-45125

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-18T16:17:07.667

Modified: 2026-08-18T18:17:36.450

Link: CVE-2026-45125

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-18T18:15:04Z

Weaknesses
  • CWE-93

    Improper Neutralization of CRLF Sequences ('CRLF Injection')