{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "0"
              },
              {
                "fixed": "0.17.0"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "637395a1f78278e375e0753c7b18e7833a6b9d58"
            }
          ],
          "repo": "https://github.com/marktext/marktext",
          "type": "GIT"
        }
      ]
    }
  ],
  "details": "A stored cross-site scripting vulnerability in marktext versions prior to v0.17.0 due to improper handling of the link (with javascript: scheme) inside the document may allow an attacker to execute an arbitrary script on the PC of the user using marktext.",
  "id": "CVE-2022-21158",
  "modified": "2026-03-13T21:54:10.988603398Z",
  "published": "2022-03-10T17:45:09.703Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/marktext/marktext/releases/tag/v0.17.0"
    },
    {
      "type": "ADVISORY",
      "url": "https://jvn.jp/en/jp/JVN89524240/index.html"
    }
  ],
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N",
      "type": "CVSS_V3"
    }
  ]
}