CVE-2021-43861
Incorrect sanitisation function leads to `XSS`
Severity Score
Exploit Likelihood
Affected Versions
Public Exploits
0Exploited in Wild
-Decision
Descriptions
Mermaid is a Javascript based diagramming and charting tool that uses Markdown-inspired text definitions and a renderer to create and modify complex diagrams. Prior to version 8.13.8, malicious diagrams can run javascript code at diagram readers' machines. Users should upgrade to version 8.13.8 to receive a patch. There are no known workarounds aside from upgrading.
Mermaid es una herramienta de diagramación y gráficos basada en Javascript que usa definiciones de texto inspiradas en Markdown y un renderizador para crear y modificar diagramas complejos. Antes de la versión 8.13.8, los diagramas maliciosos pueden ejecutar código javascript en las máquinas de los lectores de diagramas. Los usuarios deben actualizar a la versión 8.13.8 para recibir un parche. No se presentan soluciones conocidas aparte de la actualización.
CVSS Scores
SSVC
- Decision:-
Timeline
- 2021-11-16 CVE Reserved
- 2021-12-30 CVE Published
- 2023-07-23 EPSS Updated
- 2024-08-04 CVE Updated
- ---------- Exploited in Wild
- ---------- KEV Due Date
- ---------- First Exploit
CWE
- CWE-20: Improper Input Validation
- CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
CAPEC
References (3)
URL | Tag | Source |
---|---|---|
https://github.com/mermaid-js/mermaid/releases/tag/8.13.8 | Release Notes | |
https://github.com/mermaid-js/mermaid/security/advisories/GHSA-p3rp-vmj9-gv6v | Third Party Advisory |
URL | Date | SRC |
---|
URL | Date | SRC |
---|---|---|
https://github.com/mermaid-js/mermaid/commit/066b7a0d0bda274d94a2f2d21e4323dab5776d83 | 2023-07-21 |
URL | Date | SRC |
---|
Affected Vendors, Products, and Versions
Vendor | Product | Version | Other | Status | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Vendor | Product | Version | Other | Status | <-- --> | Vendor | Product | Version | Other | Status |
Mermaid Project Search vendor "Mermaid Project" | Mermaid Search vendor "Mermaid Project" for product "Mermaid" | < 8.13.8 Search vendor "Mermaid Project" for product "Mermaid" and version " < 8.13.8" | node.js |
Affected
|