Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-100741 Overview
CVE-2026-100741 is an eval injection vulnerability [CWE-95] in the JScript event-script dispatcher of Progressive Robot Ltd's hMailServer, affecting versions 6.0.0 through 6.3.3 on Windows. A remote, unauthenticated attacker can execute arbitrary JScript inside the hMailServer service process by sending a password containing a backslash followed by an apostrophe during any logon attempt (SMTP AUTH, POP3, or IMAP) that names an existing active account. The injected script runs with the privileges of the hMailServer service account. Exploitation requires a non-default configuration where event scripting is enabled, the script language is set to JScript, and an OnClientValidatePassword handler is defined.
Critical Impact
Successful exploitation yields command execution as the service account via COM objects such as WScript.Shell, enabling full compromise of the mail server host.
Affected Products
- Progressive Robot Ltd hMailServer 6.0.0 through 6.3.3 on Windows
- hMailServer deployments with JScript event scripting enabled and an OnClientValidatePassword handler defined
- hMailServer deployments with OnExternalAccountDownload or OnDeliveryFailed JScript handlers defined
Discovery Timeline
- 2026-09-27 - CVE-2026-100741 published to NVD
- 2026-09-29 - Last updated in NVD database
Technical Details for CVE-2026-100741
Vulnerability Analysis
The flaw resides in how the hMailServer event-script dispatcher constructs JScript handler invocations. When invoking an event handler such as OnClientValidatePassword, the server writes event values into the handler call as JScript string literals. The dispatcher escapes apostrophes but does not escape backslashes. An attacker-supplied value containing \' therefore terminates the string literal, and the remaining input is parsed as JScript code.
The same primitive is reachable through three distinct event handlers. The OnClientValidatePassword path accepts attacker-controlled passwords during SMTP AUTH, POP3, or IMAP logon. The OnExternalAccountDownload path accepts message UIDs returned by a remote POP3 server. The OnDeliveryFailed path accepts error reply text returned by a remote SMTP server during a rejected delivery.
Before version 6.2.25, injected script could instantiate any COM object. From 6.2.25 onward, the default ScriptAllowedObjects value of * preserves the same capability. Instantiating WScript.Shell yields arbitrary command execution under the service account identity.
Root Cause
The root cause is incomplete output encoding when building a dynamically evaluated JScript expression. Only the apostrophe delimiter is escaped; the backslash escape character is passed through verbatim, allowing attacker input to break out of the intended string context.
Attack Vector
The vulnerability is reachable over the network without authentication. An attacker submits a crafted password to any exposed SMTP, POP3, or IMAP service that references a valid active account name. Alternative vectors involve controlling a remote POP3 or SMTP peer whose protocol responses are consumed by hMailServer event handlers. VBScript event scripts and Linux builds of hMailServer are not affected.
The vulnerability is described in prose because no verified proof-of-concept code is available. See the GitLab commit notification for the fix details.
Stop Remote Code Execution Before It Runs
Singularity™ Endpoint detects and blocks exploit attempts at machine speed, including zero-days and novel attack techniques.
Stop Exploit AttemptsDetection Methods for CVE-2026-100741
Indicators of Compromise
- Authentication log entries containing passwords with the \' sequence targeting SMTP AUTH, POP3, or IMAP endpoints
- Unexpected child processes spawned by the hMailServer service, particularly cscript.exe, wscript.exe, cmd.exe, or powershell.exe
- Outbound network connections initiated by the hMailServer service account to unfamiliar destinations
- Modifications to event script files or hMailServer configuration enabling JScript handlers without administrator approval
Detection Strategies
- Inspect SMTP, POP3, and IMAP protocol logs for authentication attempts whose password field contains backslash-apostrophe sequences against known valid accounts
- Audit hMailServer configuration for ScriptLanguage set to JScript and the presence of OnClientValidatePassword, OnExternalAccountDownload, or OnDeliveryFailed handlers
- Enable process creation auditing on mail server hosts and alert on scripting-host or shell processes parented by the hMailServer service
Monitoring Recommendations
- Forward Windows process-creation events and hMailServer application logs to a central analytics platform for correlation
- Track COM object instantiation attempts tied to the hMailServer service account, with particular attention to WScript.Shell
- Alert on new or modified event script files under the hMailServer installation directory
How to Mitigate CVE-2026-100741
Immediate Actions Required
- Upgrade hMailServer to version 6.3.4 or later on all Windows hosts
- If immediate patching is not possible, disable event scripting or switch the configured script language from JScript to VBScript
- Remove or neutralize OnClientValidatePassword, OnExternalAccountDownload, and OnDeliveryFailed JScript handlers until patching is complete
- Restrict the hMailServer service account to the minimum privileges required for mail operation
Patch Information
Progressive Robot Ltd released a fix in hMailServer version 6.3.4. The corrective change properly escapes backslash characters when building JScript handler invocations. See the hMailServer v6.3.4 release notes and the upstream commit for details.
Workarounds
- Set event scripting to disabled in the hMailServer administrative console if business logic does not require it
- Convert existing JScript event scripts to VBScript, which is not affected by this flaw
- Restrict ScriptAllowedObjects to an explicit allowlist that excludes WScript.Shell and other command-execution-capable COM objects
- Place SMTP, POP3, and IMAP listeners behind network controls that limit exposure to trusted sources where feasible
# Configuration example: disable event scripting via hMailServer COM administration
# (run on the hMailServer host with administrative credentials)
cscript //NoLogo disable_events.vbs
# disable_events.vbs contents:
# Set oApp = CreateObject("hMailServer.Application")
# Call oApp.Authenticate("Administrator", "<admin-password>")
# oApp.Settings.ScriptingEnabled = False
# oApp.Settings.Save()
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

