CVE-2022-36036

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

Published Aug 29, 2022 CVSS 3.1 · 3.6 Low EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2022-6624 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.
Github GHSA Github GHSA GHSA-rvgm-35jw-q628 Improper Control of Generation of Code ('Code Injection') in mdx-mermaid
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Apr 22, 2025, 5:41 PM
Reserved
Jul 15, 2022, 12:00 AM
Status
Modified
Published
Aug 29, 2022, 6:15 PM
Modified
Jun 17, 2026, 4:52 AM