{"id":"CVE-2022-21158","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.","modified":"2026-08-12T03:51:39.084337227Z","published":"2022-03-07T09:00:35Z","database_specific":{"cna_assigner":"jpcert","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/21xxx/CVE-2022-21158.json"},"references":[{"type":"WEB","url":"https://github.com/marktext/marktext/releases/tag/v0.17.0"},{"type":"WEB","url":"https://jvn.jp/en/jp/JVN89524240/index.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/21xxx/CVE-2022-21158.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-21158"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/marktext/marktext","events":[{"introduced":"637395a1f78278e375e0753c7b18e7833a6b9d58"},{"fixed":"637395a1f78278e375e0753c7b18e7833a6b9d58"}],"database_specific":{"extracted_events":[{"introduced":"versions prior to v0.17.0"},{"last_affected":"versions prior to v0.17.0"},{"introduced":"0"},{"fixed":"0.17.0"}],"source":["AFFECTED_FIELD","CPE_RANGE","REFERENCES"],"cpe":"cpe:2.3:a:marktext:marktext:*:*:*:*:*:*:*:*"}}],"versions":["versions prior to v0.17.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-21158.json"}}],"schema_version":"1.9.0"}