Low severity3.6NVD Advisory· Published Aug 29, 2022· Updated Jun 17, 2026
CVE-2022-36036
CVE-2022-36036
Description
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
mdx-mermaidnpm | < 1.3.0 | 1.3.0 |
mdx-mermaidnpm | >= 2.0.0-rc1, < 2.0.0-rc2 | 2.0.0-rc2 |
Affected products
4cpe:2.3:a:mdx-mermaid_project:mdx-mermaid:*:*:*:*:*:node.js:*:*+ 1 more
- cpe:2.3:a:mdx-mermaid_project:mdx-mermaid:*:*:*:*:*:node.js:*:*range: >=0.0.1,<1.3.0
- cpe:2.3:a:mdx-mermaid_project:mdx-mermaid:2.0.0:rc1:*:*:*:node.js:*:*
- Range: < 1.3.0
Patches
Vulnerability mechanics
References
4- github.com/sjwall/mdx-mermaid/commit/f2b99386660fd13316823529c3f1314ebbcdfd2anvdPatchThird Party AdvisoryWEB
- github.com/sjwall/mdx-mermaid/security/advisories/GHSA-rvgm-35jw-q628nvdExploitThird Party AdvisoryWEB
- github.com/advisories/GHSA-rvgm-35jw-q628ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2022-36036ghsaADVISORY
News mentions
0No linked articles in our index yet.