CVE-2022-24123

Source
https://cve.org/CVERecord?id=CVE-2022-24123
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-24123.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-24123
Published
2022-01-29T22:53:16Z
Modified
2026-07-08T06:03:46.206435383Z
Summary
[none]
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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/24xxx/CVE-2022-24123.json",
    "cna_assigner": "mitre"
}
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
{
    "source": [
        "DESCRIPTION",
        "CPE_RANGE"
    ],
    "cpe": "cpe:2.3:a:marktext:marktext:*:*:*:*:*:*:*:*",
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "0.16.3"
        },
        {
            "last_affected": "0.16.3"
        }
    ]
}

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.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-24123.json"