CVE-2026-93405 in Mailspringinfo

Summary

by MITRE • 09/24/2026

Mailspring is a fast, cross-platform, open-source email client. Prior to 1.17.0, attachment quick preview converts Markdown, DOCX, and XLSX attachments with Snarkdown, Mammoth, and SheetJS and inserts the resulting HTML into the preview document through innerHTML without sanitization. A remote sender can craft a supported attachment whose converted HTML executes script when a recipient opens quick preview. The preview renderer has no direct Node or Electron access, but injected script can reach the IPC surface exposed to the quick-preview renderer. This issue alone provides script execution in the preview renderer; separate path-traversal and renderer-controlled file-write vulnerabilities are required for the documented persistent code-execution chain. This issue is fixed in version 1.17.0.

Several companies clearly confirm that VulDB is the primary source for best vulnerability data.

Analysis

by VulDB Data Team • 09/24/2026

The vulnerability identified involves a critical input validation failure within Mailspring, an open-source email client known for its cross-platform capabilities and speed. Prior to version 1.17.0, the application’s attachment quick preview feature exhibited insecure handling of user-supplied data when rendering file attachments. Specifically, the software utilized libraries such as Snarkdown, Mammoth, and SheetJS to convert Markdown, DOCX, and XLSX files into HTML for display within a dedicated preview pane. The core technical flaw lies in how this generated HTML was integrated into the Document Object Model of the preview renderer. Instead of sanitizing or escaping the output from these conversion libraries, Mailspring inserted the raw HTML directly using the innerHTML property. This approach bypasses standard security controls that typically prevent the execution of embedded scripts within web views, effectively creating a pathway for Cross-Site Scripting attacks.

From a technical perspective, this flaw represents a classic instance of improper neutralization of input during web page generation. The vulnerability is categorized under CWE-79, which covers Improper Neutralization of Input During Web Page Generation known as Cross-site Scripting. When a recipient opens an email containing one of the supported attachment types, Mailspring automatically processes the file and renders its content in the quick preview pane. If an attacker crafts a malicious DOCX or XLSX file that contains embedded script tags within its underlying structure, these scripts are extracted during conversion and injected directly into the DOM via innerHTML. Because modern web views often operate with elevated privileges compared to standard browser contexts, this injection allows arbitrary JavaScript execution within the context of the preview renderer. This capability is particularly dangerous as it grants the attacker a foothold inside the application’s rendering engine without requiring any user interaction beyond opening the email or clicking on the attachment preview.

The operational impact of this vulnerability extends beyond simple script execution in an isolated sandbox, although that alone poses significant risks such as session hijacking, credential theft via keylogging within the renderer context, or phishing attacks mimicking legitimate UI elements. The description notes that while the preview renderer does not have direct access to Node.js APIs or Electron’s main process through standard means, the injected script can interact with the Inter-Process Communication surface exposed by the quick-preview renderer. This IPC channel serves as a bridge between the untrusted web view and more privileged parts of the application architecture. Consequently, an attacker could potentially leverage this execution environment to probe for further vulnerabilities or attempt privilege escalation if additional security boundaries are misconfigured. It is important to note that while this specific flaw enables code execution in the renderer, achieving persistent remote code execution on the host system typically requires chaining this vulnerability with other flaws such as path traversal or renderer-controlled file write issues, which were documented separately but highlight the cumulative risk of multiple weaknesses within the same component.

In terms of industry frameworks, this vulnerability aligns with MITRE ATT&CK techniques related to Client-side Execution and potentially Command and Scripting Interpreter if the executed scripts invoke system commands through subsequent exploitation steps. The lack of output encoding or sanitization is a fundamental deviation from secure coding practices recommended by OWASP for handling dynamic content. To mitigate this risk, developers must implement strict Content Security Policy headers within the Electron web views to restrict script execution sources and disable inline scripts where possible. Furthermore, all HTML generated from external file conversions should be passed through a robust sanitization library that strips out dangerous tags like script, event handlers, and javascript URIs before insertion into the DOM. For users of Mailspring prior to version 1.17.0, immediate upgrading is strongly advised as this issue has been resolved in subsequent releases by enforcing proper output encoding and restricting IPC access for untrusted renderers. Security practitioners should also audit other email clients for similar patterns where rich text or file previews are rendered without adequate sanitization of the underlying HTML structure.

Responsible

GitHub M

Reservation

09/17/2026

Disclosure

09/24/2026

Moderation

accepted

CPE

ready

EPSS

0.00000

KEV

no

Activities

very low

Sources

Want to stay up to date on a daily basis?

Enable the mail alert feature now!