Mailspring: Stored XSS in attachment quick preview (unsanitized Markdown/DOCX/XLSX conversion)
What fixes it
- 1.17.0mailspring, otherGitHub
A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.
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.
Text from CVE List
Affected versions 2
- Mailspringaffected: < 1.17.0CVE List
- mailspring, other< 1.17.0GitHub
References 4
- github.com/Foundry376/Mailspring/commit/5728388199666ec0a9a58f693c89c25b948a9b6cFixvia CVE List
- github.com/Foundry376/Mailspring/releases/tag/1.17.0Fixvia CVE List
- github.com/Foundry376/Mailspring/security/advisories/GHSA-px2g-jhg5-c6ghAdvisoryvia CVE List
- github.com/Foundry376/Mailspring/pull/2523Referencevia CVE List