RCE in Mdx-Mermaid Project
CVE-2022-36036
mdx-mermaid provides plug and play access to Mermaid in MDX. There is a potential for an arbitrary javascript injection in versions less than 1.3.0 and 2.0.0-rc1. Modify any mermaid code blocks with arbitrary code and it will execute when the component is loaded by MDXjs. This vulnerability was patched in version(s) 1.3.0 and 2.0.0-rc2. There are currently no known workarounds.
Vulnerability class: RCE (Remote Code Execution)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 3.6 (Low). Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N.
EPSS exploit prediction
EPSS: 0.004 (31.6th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 32nd percentile — 31.6% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.004 · newest: 0.004 · change: 0.000
Affected products
- Mdx-Mermaid Project — versions 2.0.0
- Sjwall Mdx-Mermaid — versions < 1.3.0, = 2.0.0-rc1
Weakness classification (CWE)
Public proof-of-concept exploits
References
- github.com/sjwall/mdx-mermaid/security/advisories/GHSA-rvgm-35jw-q628 (Exploit, Third Party Advisory)
- github.com/sjwall/mdx-mermaid/commit/f2b99386660fd13316823529c3f1314ebbcdfd2a (Patch, Third Party Advisory)
Frequently asked questions
- What is CVE-2022-36036?
- CVE-2022-36036 is a low-severity vulnerability in Mdx-Mermaid Project, classified under Code Injection. CVSS score: 3.6/10. Published 2022-08-29.
- How severe is CVE-2022-36036?
- Low severity. CVSS v3 base score is 3.6 out of 10.
- Is CVE-2022-36036 known to be exploited?
- 1 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.