CVE-2022-36036: mdx-mermaid provides plug and play access to Mermaid in MDX
CVE-2022-36036 is a low-severity flaw (CVSS 3.6) affecting mdx-mermaid. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- Public exploit reference
A fixed release or distro patch exists.
Risk facts
| CVSS score | 3.6 (Low) |
| Attack vector | Local |
| Attack complexity | High |
| Privileges needed | Low |
| User interaction | None |
| EPSS exploit chance | 0.4% (top 66%) |
| CISA exploited list | No |
| Weakness | CWE-94 |
| Published | 2022-08-29 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2022-36036?
mdx-mermaid: upgrade to 1.3.0. Exact commands for each OS are on this page.
Is CVE-2022-36036 being exploited?
CVE-2022-36036 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2022-36036 affect?
CVE-2022-36036 affects mdx-mermaid. Severity is low (CVSS 3.6). 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 t
How urgent is CVE-2022-36036?
Priority 26/100. Public exploit reference