CVE-2022-36036: Mdx-Mermaid Project Mdx-Mermaid
High severity, CVSS 7.8. EPSS: 0.4% chance of exploitation in the next 30 days.
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.
Affected products
- Mdx-Mermaid Project Mdx-Mermaid: from 0.0.1, before 1.3.0 (fixed in 1.3.0); version 2.0.0 only
Published 2022-08-29. Last modified 2026-06-17.