All CVEs / Mdx-mermaid Project
CVE-2022-36036Mdx-mermaid Project Mdx-mermaid
High 7.8
Follow: this CVE · Mdx-mermaid Project · Mdx-mermaid Project Mdx-mermaid We alert you by email or Slack (account required).
- Priority
- 47
- CVSS 3.1
- 7.8
- EPSS
- 0.5% probability of exploitation in 30 days · percentile 38
- Auth required
- Yes
- Published
- Aug 29, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-94
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Mdx-mermaid.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | mdx-mermaid |
< 1.3.0 |
1.3.0 |
npm install mdx-mermaid@1.3.0 |
| npm | mdx-mermaid |
≥ 2.0.0-rc1 < 2.0.0-rc2 |
2.0.0-rc2 |
npm install mdx-mermaid@2.0.0-rc2 |
Per OSV / GitHub Advisories (GHSA-rvgm-35jw-q628). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| mdx-mermaid_project | mdx-mermaid | ≥ 0.0.1 < 1.3.0 |
| mdx-mermaid_project | mdx-mermaid | 2.0.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- github.com Exploit Third Party Advisory