SecurityContext

CVE-2019-20374: Typora - Stored XSS

  • Cve: CVE-2019-20374
  • Name: Typora - Stored XSS
  • 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.
  • Impact: Attackers can execute arbitrary code remotely, leading to full system compromise or data theft.
  • Remediation: Update to the latest version of Typora that addresses this vulnerability or apply security patches to sanitize Mermaid code blocks properly.
  • Vulnerability type: stored_xss
  • Vulnerability impact: client_script_exec
  • Requirement type: user_interaction
  • Requirements: Attacker needs victim to open a malicious file
  • Labels source: projectdiscovery
  • Severity: critical
  • Cvss score: 9.6
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
  • Epss score: 0.023
  • Epss percentile: 0.83741
  • Assignee: [email protected]
  • Published at: 2020-01-09T23:15:10Z
  • Age in days: 2511
  • Modified at: 2026-06-17T02:30:18Z
  • Patch available: yes
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Projects total: 2
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2019-20374
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-79Improper Neutralization of Input During Web Page Generation

References

UrlSourceTags
https://github.com/cure53/DOMPurify/commit/4e8af7b2c4a159b683d317e02c5cbddb86dc4a0envdPatch, Third Party Advisory
https://github.com/typora/typora-issues/issues/3124nvdThird Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
typora:typora<= 0.9.81, <= 0.9.9.31.2yesnvd/v1/products/typora/typora

Projects

RepositoryLink kindsIndexedUrl
cure53/dompurifycommityes/v1/repositories/cure53/dompurify
typora/typora-issuesissuesyes/v1/repositories/typora/typora-issues

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts