← Vulnerability feed

Vulnerability record · CVE-2019-20374 · published 9 January 2020

CVE-2019-20374: Typora cross-site scripting vulnerability

Typora · Typora

A mutation cross-site scripting (XSS) issue in Typora through 0.9.9.31.2 on macOS and through 0.9.81 on Linux leads to Remote Code Execution through Mermaid code blocks. To exploit this vulnerability, one must open a file in Typora. The XSS vulnerability is then triggered due to improper HTML sanitization. Given that the application is based on the Electron framework, the XSS leads to remote code execution in an unsandboxed environment.

9.6 CVSS 3.1 Critical EPSS 2.3% · top 17.4% CWE-79 · Cross-site scripting
9.6CVSS 3.1 base score, v2 6.8
2.3%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
4References
17 Jun 2026Last modified by NVD

Description

A mutation cross-site scripting (XSS) issue in Typora through 0.9.9.31.2 on macOS and through 0.9.81 on Linux leads to Remote Code Execution through Mermaid code blocks. To exploit this vulnerability, one must open a file in Typora. The XSS vulnerability is then triggered due to improper HTML sanitization. Given that the application is based on the Electron framework, the XSS leads to remote code execution in an unsandboxed environment.

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2019-20374 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.6CVE-2023-2317Typora cross-site scripting vulnerabilityDOM-based XSS in updater/update.html in Typora before 1.6.7 on Windows and Linux allows a crafted markdown file to run arbitrary JavaScript code in t…EPSS 2.4%7.8CVE-2023-1003Typora code injection vulnerabilityA vulnerability, which was classified as critical, was found in Typora up to 1.5.5 on Windows. Affected is an unknown function of the component WSH J…EPSS 0.37%7.8CVE-2019-12172Typora path traversal vulnerabilityTypora 0.9.9.21.1 (1913) allows arbitrary code execution via a modified file: URL syntax in the HREF attribute of an AREA element, as demonstrated by…EPSS 1.8%7.8CVE-2019-12137Typora path traversal vulnerabilityTypora 0.9.9.24.6 on macOS allows directory traversal, for execution of arbitrary programs, via a file:/// or ../ substring in a shared note.EPSS 6.5%7.4CVE-2020-18336Typora cross-site scripting vulnerabilityCross Site Scripting (XSS) vulnerability found in Typora v.0.9.65 allows a remote attacker to obtain sensitive information via the PDF file exporting…EPSS 0.57%7.4CVE-2023-2316Typora path traversal vulnerabilityImproper path handling in Typora before 1.6.7 on Windows and Linux allows a crafted webpage to access local files and exfiltrate them to remote web s…EPSS 0.66%7.3CVE-2024-33300Typora cross-site scripting vulnerabilityTypora v1.0.0 through v1.7 version (below) Markdown editor has a cross-site scripting (XSS) vulnerability, which allows attackers to execute arbitrar…EPSS 0.55%6.5CVE-2023-2971Typora path traversal vulnerabilityImproper path handling in Typora before 1.7.0-dev on Windows and Linux allows a crafted webpage to access local files and exfiltrate them to remote w…EPSS 0.49%

Source: NIST National Vulnerability Database (record CVE-2019-20374), CISA KEV, FIRST EPSS (scores of 2026-09-27). This page is refreshed as NVD updates the record.