{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:marktext:marktext:*:*:*:*:*:*:*:*",
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "0.16.3"
              },
              {
                "last_affected": "0.16.3"
              }
            ],
            "source": [
              "DESCRIPTION",
              "CPE_RANGE"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "cb38f99d2dbe8e828de390ad3a0c7263a59c3cb8"
            }
          ],
          "repo": "https://github.com/marktext/marktext",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "mitre",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/24xxx/CVE-2022-24123.json"
  },
  "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.",
  "id": "CVE-2022-24123",
  "modified": "2026-07-08T05:37:35.566496308Z",
  "published": "2022-01-29T22:53:16Z",
  "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"
    }
  ],
  "schema_version": "1.7.5"
}