Vulnerability Details : CVE-2022-24123
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.
Vulnerability category: Cross site scripting (XSS)Execute code
Products affected by CVE-2022-24123
- cpe:2.3:a:marktext:marktext:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2022-24123
0.24%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 65 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2022-24123
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
6.8
|
MEDIUM | AV:N/AC:M/Au:N/C:P/I:P/A:P |
8.6
|
6.4
|
NIST | |
9.0
|
CRITICAL | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H |
2.3
|
6.0
|
NIST |
CWE ids for CVE-2022-24123
-
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.Assigned by: nvd@nist.gov (Primary)
References for CVE-2022-24123
-
https://github.com/marktext/marktext/issues/2946
XSS to RCE vulnerability in Mermaid rendered · Issue #2946 · marktext/marktext · GitHubExploit;Issue Tracking;Patch;Third Party Advisory
-
https://github.com/marktext/marktext/pull/2947
Fix mermaid.js XSS by fxha · Pull Request #2947 · marktext/marktext · GitHubPatch;Third Party Advisory
Jump to