CVE-2022-36036 - CVE House
Back to Database
Status published Low CVE-2022-36036

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

Vulnerability 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.

Impact Analysis

Refer to official advisory for detailed impact metrics.

Remediation

Ensure systems are updated to the latest vendor-supplied patch levels.

THREAT MONITOR

Am I Vulnerable?

Launch our assessment wizard to check if your infrastructure is exposed to • CVE-2022-36036

Credits & Attribution

No credits recorded in the NVD database.

Affected Vendor

Affected Software

mdx-mermaid
Vulnerable Versions:
< 1.3.0, = 2.0.0-rc1

Timeline

Official Publish: August 29th, 2022
Last Modified: April 22nd, 2025
Added to House: July 21st, 2026

CVSS Vectors

V3: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N

Weaknesses (CWE)