Skip to main content
← All vulnerabilities
CVE-2022-36036GHSA-RVGM-35JW-Q628

Improper Control of Generation of Code ('Code Injection') in mdx-mermaid

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.3.0, 2.0.0-rc2
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • sjwall mdx-mermaid

    fixed in 1.3.0

  • mdx-mermaidnpm

    fixed in 1.3.0

  • mdx-mermaidnpm

    From 2.0.0-rc1 · fixed in 2.0.0-rc2

References 2

GitHub · sjwall/mdx-mermaid