{"id":"CVE-2022-24123","details":"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.","modified":"2026-07-08T06:03:46.206435383Z","published":"2022-01-29T22:53:16Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/24xxx/CVE-2022-24123.json","cna_assigner":"mitre"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/24xxx/CVE-2022-24123.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-24123"},{"type":"REPORT","url":"https://github.com/marktext/marktext/issues/2946"},{"type":"FIX","url":"https://github.com/marktext/marktext/pull/2947"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/marktext/marktext","events":[{"introduced":"0"},{"fixed":"cb38f99d2dbe8e828de390ad3a0c7263a59c3cb8"}],"database_specific":{"source":["DESCRIPTION","CPE_RANGE"],"extracted_events":[{"introduced":"0"},{"fixed":"0.16.3"},{"last_affected":"0.16.3"}],"cpe":"cpe:2.3:a:marktext:marktext:*:*:*:*:*:*:*:*"}}],"versions":["v0.16.2","v0.16.0","v0.16.0-rc.3","v0.16.0-rc.2","v0.16.0-rc.1","v0.15.0","v0.15.0-rc.3","v0.15.0-rc.2","v0.15.0-rc.1","v0.14.0","v0.14.0-rc.1","v0.13.65","v0.13.53","v0.13.50","v0.12.25","v0.12.20","v0.11.42","v0.10.21","v0.9.25","v0.8.12","v0.7.17","v0.6.13","v0.5.2","v0.4.0","v0.3.0","v0.0.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-24123.json"}}],"schema_version":"1.7.5"}