{"id":"CVE-2019-20374","published":"2020-01-09T22:40:29Z","modified":"2024-08-05T02:39:09Z","title":"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…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.3,"severity":"HIGH","version":"3.0","vector":"CVSS:3.0/AC:H/AV:N/A:H/C:H/I:H/PR:N/S:C/UI:R","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.023,"percentile":0.83719,"provenance":"source"},"cwes":[],"references":[{"url":"https://github.com/typora/typora-issues/issues/3124","tags":["x_refsource_MISC"]},{"url":"https://github.com/cure53/DOMPurify/commit/4e8af7b2c4a159b683d317e02c5cbddb86dc4a0e","tags":["x_refsource_MISC"]}],"priority":{"score":22.6,"factors":[{"name":"EPSS percentile","points":16.74},{"name":"CVSS severity","points":5.81}]},"euvd":{"id":"EUVD-2019-10926","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-cure53-dompurify-cve-2019-20374","children":[{"from":"CVE-2019-20374","to":"CVE-2020-26870","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["dist/purify.es.js","dist/purify.es.js.map","src/purify.js"],"commits":["https://github.com/cure53/DOMPurify/commit/4e8af7b2c4a159b683d317e02c5cbddb86dc4a0e","https://github.com/cure53/DOMPurify/commit/02724b8eb048dd219d6725b05c3000936f11d62d"],"basis":"shared function","functions":["createDOMPurify"]}]},{"from":"CVE-2019-20374","to":"CVE-2024-45801","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["dist/purify.es.js","dist/purify.es.js.map","src/purify.js"],"commits":["https://github.com/cure53/DOMPurify/commit/4e8af7b2c4a159b683d317e02c5cbddb86dc4a0e","https://github.com/cure53/DOMPurify/commit/1e520262bf4c66b5efda49e2316d6d1246ca7b21","https://github.com/cure53/DOMPurify/commit/26e1d69ca7f769f5c558619d644d90dd8bf26ebc"],"basis":"shared function","functions":["createDOMPurify"]}]},{"from":"CVE-2019-20374","to":"CVE-2024-47875","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["dist/purify.es.js","dist/purify.es.js.map","src/purify.js"],"commits":["https://github.com/cure53/DOMPurify/commit/4e8af7b2c4a159b683d317e02c5cbddb86dc4a0e","https://github.com/cure53/DOMPurify/commit/0ef5e537a514f904b6aa1d7ad9e749e365d7185f","https://github.com/cure53/DOMPurify/commit/6ea80cd8b47640c20f2f230c7920b1f4ce4fdf7a"],"basis":"shared function","functions":["createDOMPurify"]}]},{"from":"CVE-2019-20374","to":"CVE-2024-48910","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["dist/purify.es.js","dist/purify.es.js.map"],"commits":["https://github.com/cure53/DOMPurify/commit/4e8af7b2c4a159b683d317e02c5cbddb86dc4a0e","https://github.com/cure53/DOMPurify/commit/d1dd0374caef2b4c56c3bd09fe1988c3479166dc"],"basis":"shared function","functions":["createDOMPurify"]}]}]}}