CVE-2019-20374

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…

High · published January 9, 2020

CVSS v3.0
8.3
EPSS
2%
Percentile
83.2
In the wild
Unconfirmed
What it is

⚡ A crafty Mermaid code block is all it takes to exploit this XSS vulnerability in Typora! Once you open a file, you could be in for a world of pain. 🔥 Think of Typora as a restaurant where every guest can secretly add their own dish to the menu. If no one checks the ingredients, a harmful dish could be served up to unsuspecting diners, leading to chaos in the kitchen! An attacker could execute arbitrary code on your system just by getting you to open a specially crafted file in Typora. This means they could potentially take control of your device, steal sensitive information, or even further infiltrate your network—absolutely devastating!

Put simply

Think of Typora as a restaurant where every guest can secretly add their own dish to the menu. If no one checks the ingredients, a harmful dish could be served up to unsuspecting diners, leading to chaos in the kitchen! This mutation XSS issue arises from improper HTML sanitization in Typora, allowing for remote code execution in an unsandboxed Electron environment when loading files containing malicious Mermaid code blocks.

What to do

An attacker could execute arbitrary code on your system just by getting you to open a specially crafted file in Typora. This means they could potentially take control of your device, steal sensitive information, or even further infiltrate your network—absolutely devastating! Update Typora to version 0.9.9.31.3 on macOS or 0.9.81.1 on Linux to secure against this vulnerability. Additionally, be cautious while opening files from untrusted sources and consider sanitizing content yourself to prevent similar issues. You've got this! Taking these steps will keep your system secure and your data safe! 🛡️

The record
Technical detail
CVSS v3.0
8.3 · HIGH
Vector
CVSS:3.0/AC:H/AV:N/A:H/C:H/I:H/PR:N/S:C/UI:R
CVSS v4.0
Not supplied
EPSS
0.02300 · 83.2th percentile
Published
2020-01-09T22:40Z
EPSS history
Timeline
  • 09 JAN 22:40Z
    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…
    cvelistv5