CVE-2022-36036
published low CVSS 3.1 · 3.6Improper Control of Generation of Code ('Code Injection') in mdx-mermaid
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| sjwall | — | mdx-mermaid< 1.3.0 · = 2.0.0-rc1 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 3.6 / 10
- Severity
- low
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| sjwall | mdx-mermaid | < 1.3.0 (affected)= 2.0.0-rc1 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-94 CWE-94: Improper Control of Generation of Code ('Code Injection')
References
2Provider assertions
3GitHub_M · cna
Improper Control of Generation of Code ('Code Injection') in mdx-mermaid
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 8eaf23731077d7897cc458bca86e187b58b6a4a739bf94cfaf07eea702b37fa3
- Ingested
- 23 Sep 2026, 08:01:20 UTC
- Source record
- Official CVE record