{"id":"CVE-2022-24123","aliases":["EUVD-2022-29035","GHSA-wfqr-2wcw-6gjv"],"status":"published","title":"MarkText through 0.16.3 does not sanitize the input of a mermaid block before rendering. This...","description":"MarkText through 0.16.3 does not sanitize the input of a mermaid block before rendering. This could lead to Remote Code Execution via a .md file containing a mutation Cross-Site Scripting (XSS) payload.","severity":{"version":"3.1","score":9,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H","level":"critical","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-11","score":0.01945,"percentile":0.80443,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-79"],"published":"2022-01-29T22:53:16Z","modified":"2026-10-28T02:31:03Z","products":[{"vendor":"marktext","product":"marktext"}],"references":[{"url":"https://github.com/marktext/marktext/issues/2946","tags":["x_refsource_MISC","x_transferred","Exploit","Issue Tracking","Patch","Third Party Advisory","report"]},{"url":"https://github.com/marktext/marktext/pull/2947","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-24123","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-wfqr-2wcw-6gjv"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/24xxx/CVE-2022-24123.json","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2022-24123","description":"MarkText through 0.16.3 does not sanitize the input of a mermaid block before rendering. This could lead to Remote Code Execution via a .md file containing a mutation Cross-Site Scripting (XSS) payload.","status":"published","published":"2022-01-29T22:53:16Z","modified":"2024-08-03T03:59:23.94Z","updated_at":"2026-11-02T14:34:34.940806Z"}],"euvd":[{"id":"EUVD-2022-29035","description":"MarkText through 0.16.3 does not sanitize the input of a mermaid block before rendering. This could lead to Remote Code Execution via a .md file containing a mutation Cross-Site Scripting (XSS) payload.","status":"published","published":"2022-01-29T22:53:16Z","modified":"2024-08-03T03:59:23Z","updated_at":"2026-11-03T03:25:50.168269Z"}],"ghsa":[{"id":"GHSA-wfqr-2wcw-6gjv","title":"MarkText through 0.16.3 does not sanitize the input of a mermaid block before rendering. This...","description":"MarkText through 0.16.3 does not sanitize the input of a mermaid block before rendering. This could lead to Remote Code Execution via a .md file containing a mutation Cross-Site Scripting (XSS) payload.","status":"published","published":"2022-01-31T00:00:23Z","modified":"2023-02-03T05:05:34Z","cwes":["CWE-79"],"updated_at":"2026-11-02T14:53:45.828819Z"}],"nvd":[{"id":"CVE-2022-24123","description":"MarkText through 0.16.3 does not sanitize the input of a mermaid block before rendering. This could lead to Remote Code Execution via a .md file containing a mutation Cross-Site Scripting (XSS) payload.","status":"published","published":"2022-01-29T23:15:07.497Z","modified":"2026-06-17T04:31:20.57Z","cvss":[{"version":"3.1","score":9,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H","level":"critical","assessor":"primary"},{"version":"2.0","score":6.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:07:11.52734Z"}],"osv":[{"id":"CVE-2022-24123","description":"MarkText through 0.16.3 does not sanitize the input of a mermaid block before rendering. This could lead to Remote Code Execution via a .md file containing a mutation Cross-Site Scripting (XSS) payload.","status":"published","published":"2022-01-29T22:53:16Z","modified":"2026-10-28T02:31:03.380782392Z","updated_at":"2026-11-02T15:44:24.428403Z"}]}}
