{"cve":"CVE-2022-36036","nvd":{"published":"2022-08-29T18:15:09.803","modified":"2026-06-17T04:52:47.327","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8},"cwes":["CWE-94"],"references":["https://github.com/sjwall/mdx-mermaid/commit/f2b99386660fd13316823529c3f1314ebbcdfd2a","https://github.com/sjwall/mdx-mermaid/security/advisories/GHSA-rvgm-35jw-q628","https://github.com/sjwall/mdx-mermaid/commit/f2b99386660fd13316823529c3f1314ebbcdfd2a","https://github.com/sjwall/mdx-mermaid/security/advisories/GHSA-rvgm-35jw-q628"],"products":["mdx-mermaid_project:mdx-mermaid"],"source":"nvd","synced_at":"2026-10-19T21:35:14.992143698+00:00"},"epss":{"cve":"CVE-2022-36036","score":0.00398,"percentile":0.34088,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-rvgm-35jw-q628","url":"https://osv.dev/vulnerability/GHSA-rvgm-35jw-q628","summary":"Improper Control of Generation of Code ('Code Injection') in mdx-mermaid","modified":"2023-11-08T04:09:58.603883Z","packages":[{"ecosystem":"npm","name":"mdx-mermaid","purl":"pkg:npm/mdx-mermaid","ranges":["<1.3.0"],"fixed":["1.3.0"]},{"ecosystem":"npm","name":"mdx-mermaid","purl":"pkg:npm/mdx-mermaid","ranges":[">=2.0.0-rc1 <2.0.0-rc2"],"fixed":["2.0.0-rc2"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}