CVE-2022-36036
Improper Control of Generation of Code ('Code Injection') in mdx-mermaid
Severity Score
Exploit Likelihood
Affected Versions
Public Exploits
1Exploited in Wild
-Decision
Descriptions
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.
mdx-mermaid proporciona acceso plug and play a Mermaid en MDX. Se presenta la posibilidad de una inyección arbitraria de javascript en versiones inferiores a 1.3.0 y 2.0.0-rc1. Modificar cualquier bloque de código de Mermaid con código arbitrario y será ejecutado cuando el componente sea cargado por MDXjs. Esta vulnerabilidad fue parcheada en versiones 1.3.0 y 2.0.0-rc2. Actualmente no se presentan mitigaciones conocidas
CVSS Scores
SSVC
- Decision:-
Timeline
- 2022-07-15 CVE Reserved
- 2022-08-29 CVE Published
- 2024-03-21 EPSS Updated
- 2024-08-03 CVE Updated
- 2024-08-03 First Exploit
- ---------- Exploited in Wild
- ---------- KEV Due Date
CWE
- CWE-94: Improper Control of Generation of Code ('Code Injection')
CAPEC
References (2)
URL | Tag | Source |
---|
URL | Date | SRC |
---|---|---|
https://github.com/sjwall/mdx-mermaid/security/advisories/GHSA-rvgm-35jw-q628 | 2024-08-03 |
URL | Date | SRC |
---|---|---|
https://github.com/sjwall/mdx-mermaid/commit/f2b99386660fd13316823529c3f1314ebbcdfd2a | 2022-09-01 |
URL | Date | SRC |
---|
Affected Vendors, Products, and Versions
Vendor | Product | Version | Other | Status | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Vendor | Product | Version | Other | Status | <-- --> | Vendor | Product | Version | Other | Status |
Mdx-mermaid Project Search vendor "Mdx-mermaid Project" | Mdx-mermaid Search vendor "Mdx-mermaid Project" for product "Mdx-mermaid" | >= 0.0.1 < 1.3.0 Search vendor "Mdx-mermaid Project" for product "Mdx-mermaid" and version " >= 0.0.1 < 1.3.0" | node.js |
Affected
| ||||||
Mdx-mermaid Project Search vendor "Mdx-mermaid Project" | Mdx-mermaid Search vendor "Mdx-mermaid Project" for product "Mdx-mermaid" | 2.0.0 Search vendor "Mdx-mermaid Project" for product "Mdx-mermaid" and version "2.0.0" | rc1, node.js |
Affected
|