CVE-2022-24123
JSON

9.0critical

MarkText through 0.16.3 does not sanitize the input of a mermaid block before rendering.

Severity
9.0critical CVSS:3.1 by NVD
Exploit likelihood
2.01% (higher than 81% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre

Description

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.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
marktext marktextup to 0.16.3NVD

All scores

NVD9.0critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
NVD6.8medium CVSS:2.0AV:N/AC:M/Au:N/C:P/I:P/A:P

Classification

What each source says

CVE List

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.

NVD (es)

MarkText versiones hasta 0.16.3 no sanea la entrada de un bloque de sirena antes de renderizarlo. Esto podría conllevar a una Ejecución de Código Remota por medio de un archivo .md que contenga una carga útil mutada de tipo Cross-Site Scripting (XSS)

References

https://github.com/marktext/marktext/issues/2946exploit, issue-tracking, patch, third-party-advisory
https://github.com/marktext/marktext/pull/2947patch, third-party-advisory

Sources

SourceRecordLicence
CVE ListCVE-2022-24123 changed 2024-08-03CVE Terms of Use
NVDCVE-2022-24123 changed 2026-06-17Public domain