CVE-2026-93405

Mailspring: Stored XSS in attachment quick preview (unsanitized Markdown/DOCX/XLSX conversion)

Published Sep 24, 2026 CVSS 3.1 · 6.1 Medium EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

The vulnerability allows a malicious sender to craft an attachment in Markdown, DOCX, or XLSX format that is converted to HTML by Mailspring’s preview engine. The conversion libraries (Snarkdown, Mammoth, and SheetJS) produce HTML that is then inserted into the preview using innerHTML without any sanitization, enabling arbitrary script execution when a recipient opens the quick preview. This injected script runs within the preview renderer, which does not have direct Node or Electron access, but can communicate with the IPC surface exposed to the renderer. While the stored XSS alone does not grant persistent code execution, the ability to run code in the preview renderer is sufficient for a threat actor to leverage additional vulnerabilities such as path‑traversal or file‑write for persistence.

Affected Systems

Foundry376’s Mailspring email client, versions prior to 1.17.0, is affected. The issue is resolved starting with release 1.17.0 and later. Only those installations that have not upgraded remain vulnerable.

Risk and Exploitability

The CVSS score of 6.1 indicates a moderate severity. EPSS is not available and the vulnerability is not listed in the CISA KEV catalog, suggesting limited exploitation data. The attack vector is remote: a compromised sender can embed the malicious attachment in an email; the recipient must open the quick preview to trigger script execution. Thus, the risk is realistic for exposed user bases that routinely open attachments.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Mailspring to version 1.17.0 or later to apply the sanitization fix.
  • If upgrading is not immediately possible, disable the quick preview feature or block the opening of attachments from untrusted senders.
  • Implement email filtering rules to block or quarantine Markdown, DOCX, or XLSX attachments from unknown senders to reduce exposure.

Generated by OpenCVE AI on September 25, 2026 at 06:10 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Foundry376
Foundry376 mailspring
Vendors & Products Foundry376
Foundry376 mailspring
Type Values Removed Values Added
Description 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.
Title Mailspring: Stored XSS in attachment quick preview (unsanitized Markdown/DOCX/XLSX conversion)
Weaknesses CWE-79
References
Metrics cvssV3_1

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

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Sep 29, 2026, 3:02 AM
Reserved
Sep 17, 2026, 8:57 PM
Status
Deferred
Published
Sep 24, 2026, 6:19 PM
Modified
Sep 30, 2026, 7:57 PM