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-103647 Overview
CVE-2026-103647 is a cross-site scripting (XSS) vulnerability [CWE-79] in the webmail component of Progressive Robot hMailServer versions 6.3.2 through 6.3.5. The flaw allows a remote attacker who can deliver an encrypted message to a user to execute script in the webmail's origin under that user's session. The webmail renders decrypted Secure/Multipurpose Internet Mail Extensions (S/MIME) attachments (from version 6.3.2) and OpenPGP attachments (from version 6.3.4) as blob URLs using the media type the message declared. When a user opens an attachment declared as text/html in a new tab, the browser renders it as a document of the webmail's origin.
Critical Impact
An attacker who sends a crafted encrypted message can execute script that reads the victim's mailbox, sends mail, and modifies the account through the REST API when the user opens an attachment in a new tab.
Affected Products
- Progressive Robot hMailServer 6.3.2 (S/MIME decryption path)
- Progressive Robot hMailServer 6.3.3
- Progressive Robot hMailServer 6.3.4 and 6.3.5 (S/MIME and OpenPGP decryption paths)
Discovery Timeline
- 2026-10-08 - CVE-2026-103647 published to the National Vulnerability Database (NVD)
- 2026-10-08 - Last updated in NVD database
Technical Details for CVE-2026-103647
Vulnerability Analysis
The vulnerability resides in how the hMailServer webmail client handles decrypted attachments from end-to-end encrypted messages. When the webmail decrypts an S/MIME or OpenPGP message in the browser, it builds a blob URL for each attachment using the Multipurpose Internet Mail Extensions (MIME) type the message itself declared. A single click on the attachment triggers a file save and is safe. Opening the same attachment in a new browser tab, however, instructs the browser to render the blob as a document.
If the attacker declared the attachment part as text/html, the browser parses the content as HyperText Markup Language (HTML) and executes any embedded script. Because blob URLs inherit the origin of the document that created them, the script runs with full access to the webmail origin and the authenticated session. The script can read messages, send mail, and change account settings through the REST Application Programming Interface (API). The webmail interface is served only when the REST API is enabled, which is not the default configuration.
Root Cause
The webmail trusts the attacker-controlled MIME type embedded in the encrypted message when constructing the blob URL. There is no server-side sanitization of the decrypted part, no restriction against active content types such as text/html, and no sandboxing of the blob rendering context.
Attack Vector
Exploitation requires an attacker to send an encrypted message addressed to the target. The attacker crafts an S/MIME or OpenPGP message containing a part declared as text/html with embedded JavaScript. The victim must decrypt the message in the webmail, locate the attachment, and open it in a new tab rather than saving it. The confidentiality boundary between the encrypted-message origin and the webmail session is broken when the blob renders in the webmail origin. See the GitLab hMailServer Work Item #52 for upstream analysis.
Detection Methods for CVE-2026-103647
Indicators of Compromise
- Inbound S/MIME or OpenPGP messages containing attachment parts declared with the text/html MIME type where the content embeds <script> tags or event handlers.
- Unexpected REST API calls originating from authenticated webmail sessions shortly after a user opens an encrypted message, especially calls that enumerate mail, send messages, or modify account settings.
- Browser history or proxy logs showing navigation to blob: URLs under the webmail origin.
Detection Strategies
- Inspect decrypted MIME structures at the mail gateway or endpoint for encrypted parts whose declared type is text/html and flag them for review.
- Correlate webmail REST API activity with recent message-decryption events to surface anomalous bulk reads or outbound sends tied to a single session.
- Monitor hMailServer version strings in deployment inventories to identify instances running 6.3.2 through 6.3.5 with the REST API enabled.
Monitoring Recommendations
- Enable verbose logging of REST API requests, including source session identifiers, requested endpoints, and response sizes.
- Alert on sudden spikes in GET requests against mailbox listing endpoints or POST requests to send-mail endpoints from a single user session.
- Record browser user-agent navigation patterns from webmail users to detect blob URL rendering tied to new-tab actions on encrypted attachments.
How to Mitigate CVE-2026-103647
Immediate Actions Required
- Upgrade hMailServer to version 6.3.6, which addresses the attachment-rendering flaw. See the GitLab hMailServer Release 6.3.6 notes.
- Disable the REST API on hMailServer instances that do not require webmail access, since the webmail is served only when the API is enabled.
- Notify webmail users to save encrypted attachments to disk rather than opening them in a new browser tab until patching is complete.
Patch Information
Progressive Robot addressed the vulnerability in hMailServer 6.3.6. Administrators should apply the release and verify that the webmail no longer renders attacker-declared text/html blobs in the webmail origin. The upstream fix and discussion are tracked in GitLab hMailServer Work Item #52.
Workarounds
- Keep the REST API disabled, which also suppresses the webmail interface and removes the exposed attack surface.
- Restrict S/MIME and OpenPGP decryption to desktop mail clients where attachment handling is not browser-rendered.
- Apply a Content-Security-Policy at any reverse proxy fronting the webmail to block inline script execution within blob URLs served from the webmail origin.
# Example: block the hMailServer REST API at the network edge until patching
# (adjust interface, port, and source ranges to match the deployment)
iptables -A INPUT -p tcp --dport 8080 -j DROP
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

