Skip to main content
Vulnerability Database/CVE-2026-104083

CVE-2026-104083: SmarterMail Stored XSS Vulnerability

CVE-2026-104083 is a stored cross-site scripting flaw in SmarterMail that lets attackers inject malicious scripts through crafted calendar messages. This post covers technical details, affected versions, and mitigation.

Published:

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-104083 Overview

CVE-2026-104083 is a stored mutation cross-site scripting (mXSS) vulnerability in SmarterMail builds prior to 9777. The flaw resides in the webmail interface's custom HTML sanitizer, which incorrectly handles <style> elements nested inside MathML foreign content such as <math><mtext><mglyph>. The sanitizer treats the inner markup as inert CDATA text, but browsers reparse the same content as live HTML when rendering the message. Attackers can abuse this parsing discrepancy to execute arbitrary JavaScript in the recipient's authenticated webmail session.

Critical Impact

A remote, unauthenticated attacker can deliver a crafted iCalendar message that triggers JavaScript execution in the recipient's webmail session at /interface/message-iframe, enabling data exfiltration and session abuse against the permissive Content-Security-Policy.

Affected Products

  • SmarterTools SmarterMail builds before 9777
  • SmarterMail webmail interface (/interface/message-iframe endpoint)
  • Deployments relying on the built-in custom HTML sanitizer for inbound mail rendering

Discovery Timeline

  • 2026-10-08 - SmarterTools releases SmarterMail build 9777 with the fix
  • 2026-10-09 - CVE-2026-104083 published to NVD
  • 2026-10-13 - Last updated in NVD database

Technical Details for CVE-2026-104083

Vulnerability Analysis

The vulnerability is a classic mutation XSS (mXSS) issue rooted in parser differential behavior [CWE-79]. SmarterMail's server-side HTML sanitizer and the browser's HTML parser disagree on how to interpret <style> content that appears inside MathML foreign content. The sanitizer walks the DOM assuming the <style> block holds inert character data and allows the payload through. When the browser later renders the saved message inside the /interface/message-iframe document, it reparses the sanitized output and promotes the attacker-controlled text into live markup, including executable event handlers.

The iframe used to render messages inherits a permissive Content-Security-Policy, so injected scripts can issue same-origin requests against the webmail API. An attacker can read mailbox contents, exfiltrate authentication tokens, send messages as the victim, or pivot to administrative functionality if the recipient holds elevated privileges.

Root Cause

The sanitizer implements a context-insensitive traversal that does not account for HTML5 foreign content rules. Elements like <math> and <svg> switch the parser into foreign content mode, where <style> behaves differently than in the HTML namespace. The sanitizer strips or neutralizes payloads only in the HTML namespace path, leaving the MathML-nested variant intact.

Attack Vector

Exploitation requires the victim to open a crafted email, satisfying the user-interaction requirement in the CVSS vector. The attacker sends an iCalendar (.ics) invite containing an <img src=x onerror=...> payload wrapped in <math><mtext><mglyph><style>.... Once rendered in /interface/message-iframe, the mutated DOM fires the onerror handler and executes attacker-supplied JavaScript in the webmail origin.

No authenticated code or exploit from the vendor is required. The payload is described publicly in the Evan Lat blog post and the VulnCheck Security Advisory.

Detection Methods for CVE-2026-104083

Indicators of Compromise

  • Inbound email or .ics calendar attachments containing <math>, <mtext>, or <mglyph> elements wrapping <style> blocks.
  • Message bodies with <img src=x onerror=...> sequences adjacent to MathML foreign content tags.
  • Unexpected outbound XHR or fetch requests from /interface/message-iframe to attacker-controlled domains.

Detection Strategies

  • Inspect stored message bodies in SmarterMail mail stores for MathML-wrapped <style> payloads using regex such as <math[^>]*>.*?<style.
  • Monitor webmail browser telemetry for script execution originating from the message iframe context that performs API calls to /api/ endpoints shortly after a message is opened.
  • Correlate inbound SMTP logs with abnormal rendering errors or JavaScript console exceptions reported from webmail clients.

Monitoring Recommendations

  • Enable verbose logging on the SmarterMail webmail front-end and ship logs to a centralized SIEM for parser-anomaly review.
  • Track SmarterMail build versions across the fleet to confirm all hosts are on build 9777 or later.
  • Alert on new or anomalous outbound connections from user browsers immediately following inbound iCalendar deliveries.

How to Mitigate CVE-2026-104083

Immediate Actions Required

  • Upgrade all SmarterMail instances to build 9777 or later as published in the SmarterTools Release Notes.
  • Audit message stores for prior deliveries of MathML-based XSS payloads and purge or quarantine suspicious items.
  • Rotate webmail session tokens and administrative credentials for users who may have opened crafted messages.

Patch Information

SmarterTools fixed the sanitizer in SmarterMail build 9777, released October 8, 2026. The patch updates HTML sanitization to correctly handle MathML and SVG foreign content, preventing <style>-nested payloads from surviving sanitization. Review the VulnCheck Security Advisory for additional remediation context.

Workarounds

  • Restrict webmail access to trusted networks until the patch is deployed.
  • Tighten the Content-Security-Policy on /interface/message-iframe to disallow inline event handlers and remote script origins.
  • Disable automatic rendering of HTML calendar invitations and require users to view messages as plain text where feasible.
bash
# Verify SmarterMail build version on Windows host
Get-ItemProperty "HKLM:\SOFTWARE\SmarterTools\SmarterMail" | Select-Object Build, Version

# Expected result: Build >= 9777

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

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.