{"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-10-28T02:30:30.130033702Z","published":"2022-03-07T09:00:35Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/21xxx/CVE-2022-21158.json","cna_assigner":"jpcert"},"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":"0"},{"fixed":"637395a1f78278e375e0753c7b18e7833a6b9d58"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"0"},{"fixed":"0.17.0"}],"source":"AFFECTED_FIELD","strategy":"VersionTextExtraction"},{"range":[{"fixed":"637395a1f78278e375e0753c7b18e7833a6b9d58"}],"source":"REFERENCES_TAG","original_tag":"v0.17.0"},{"range":[{"introduced":"0"},{"fixed":"0.17.0"}],"source":"CPE_RANGE","cpe":"cpe:2.3:a:marktext:marktext:*:*:*:*:*:*:*:*"}]}}],"versions":["v0.16.3","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-21158.json"}}],"schema_version":"1.9.2"}