Live threats

All CVEs / Mdx-mermaid Project

CVE-2022-36036Mdx-mermaid Project Mdx-mermaid

High 7.8

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Mdx-mermaid.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
mdx-mermaid_projectmdx-mermaid≥ 0.0.1 < 1.3.0
mdx-mermaid_projectmdx-mermaid2.0.0

Official sources

References

Links published by the sources. Open them with care.