CVE-2022-36036CWE-94

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

Low · published August 29, 2022

CVSS v3.1
3.6
EPSS
0%
Percentile
32.9
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
3.6 · LOW
Vector
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N
CVSS v4.0
Not supplied
EPSS
0.00398 · 32.9th percentile
Weakness
CWE-94 · Improper Control of Generation of Code ('Code Injection')
Published
2022-08-29T17:20Z
EPSS history
Timeline
  • 29 AUG 17:20Z
    Improper Control of Generation of Code ('Code Injection') in mdx-mermaid
    cvelistv5