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.
Published: 2026-09-24
Score: 6.1 Medium
EPSS: n/a
KEV: No
Impact: Remote Script Execution via Stored XSS in attachment quick preview
Action: Immediate Patch
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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 yet.

History

Thu, 24 Sep 2026 18:15:00 +0000

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'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-09-24T18:00:32.245Z

Reserved: 2026-09-17T20:57:18.983Z

Link: CVE-2026-93405

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-24T18:19:07.120

Modified: 2026-09-24T18:19:07.120

Link: CVE-2026-93405

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-25T06:15:17Z

Weaknesses
  • CWE-79

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