PT-2020-10403
CVE-2019-20374
·
Published
2020-01-09
·
Updated
2021-09-08
Description by
CVSS 3.1
9.6
CriticalMetricsAV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions
Typora versions prior to 0.9.9.31.2 on macOS
Typora versions prior to 0.9.81 on Linux
Description
A mutation cross-site scripting issue leads to remote code execution through Mermaid code blocks. This occurs due to improper HTML sanitization when a file is opened in Typora, which is based on the Electron framework. The lack of proper sanitization allows for the execution of code in an unsandboxed environment.
Recommendations
For Typora versions prior to 0.9.9.31.2 on macOS, update to version 0.9.9.31.2 or later to resolve the issue.
For Typora versions prior to 0.9.81 on Linux, update to version 0.9.81 or later to resolve the issue.
As a temporary workaround, consider avoiding the use of Mermaid code blocks in Typora until a patch is applied.
Found an issue in the description? Have something to add? Feel free to write us 👾