CVE-2022-24123 json
MarkText through 0.16.3 does not sanitize the input of a mermaid block before rendering.
published 2022-01-29 4 y ago modified 2026-06-17 4 mo ago also EUVD-2022-29035
- cvss
- 9.0
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.9%
- EPSS 1.9% chance of exploitation in 30 days, percentile 80%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- github.com/marktext/marktext#2947 pull request
- github.com/marktext/marktext/issues/2946 advisory
Exploit prediction
1.94% chance of exploitation in the next 30 days, higher than 80% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/marktext/marktext/issues/2946 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 9.0 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H |
| NVD | 2.0 | 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
-
github.com
/marktext/marktext/pull/2947
patch, third-party-advisory
-
github.com
/marktext/marktext/issues/2946
exploit, issue-tracking, patch, third-party-advisory
Sources
- CVE List CVE-2022-24123
- NVD CVE-2022-24123
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.