CVE-2022-21158

Source
https://cve.org/CVERecord?id=CVE-2022-21158
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-21158.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-21158
Published
2022-03-07T09:00:35Z
Modified
2026-10-28T02:30:30Z
Summary
[none]
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.

Database specific
{
    "cna_assigner": "jpcert",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/21xxx/CVE-2022-21158.json"
}
References

Affected packages

Git / github.com/marktext/marktext

Affected ranges

Type
GIT
Repo
https://github.com/marktext/marktext
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
Show details
{
    "extracted_events": [
        {
            "range": [
                {
                    "introduced": "0"
                },
                {
                    "fixed": "0.17.0"
                }
            ],
            "source": "AFFECTED_FIELD",
            "strategy": "VersionTextExtraction"
        },
        {
            "original_tag": "v0.17.0",
            "range": [
                {
                    "fixed": "637395a1f78278e375e0753c7b18e7833a6b9d58"
                }
            ],
            "source": "REFERENCES_TAG"
        },
        {
            "cpe": "cpe:2.3:a:marktext:marktext:*:*:*:*:*:*:*:*",
            "range": [
                {
                    "introduced": "0"
                },
                {
                    "fixed": "0.17.0"
                }
            ],
            "source": "CPE_RANGE"
        }
    ]
}

Affected versions

v0.*
v0.0.1
v0.10.21
v0.11.42
v0.12.20
v0.12.25
v0.13.50
v0.13.53
v0.13.65
v0.14.0
v0.14.0-rc.1
v0.15.0
v0.15.0-rc.1
v0.15.0-rc.2
v0.15.0-rc.3
v0.16.0
v0.16.0-rc.1
v0.16.0-rc.2
v0.16.0-rc.3
v0.16.2
v0.16.3
v0.3.0
v0.4.0
v0.5.2
v0.6.13
v0.7.17
v0.8.12
v0.9.25

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-21158.json"