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)
EPSS: 0.004 (31.0th percentile) — read the EPSS interpretation.
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.
Affected products
- Mdx-mermaid_project Mdx-mermaid — versions 2.0.0
- Sjwall Mdx-mermaid — versions < 1.3.0, = 2.0.0-rc1
Weakness classification (CWE)
Public proof-of-concept exploits
References
- security-advisories@github.com (x_refsource_CONFIRM, Exploit, Third Party Advisory)
- security-advisories@github.com (Patch, Third Party Advisory, x_refsource_MISC)
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.