CVE-2021-43861
MEDIUM
Published Dec 30, 20214y ago · Modified Jun 17, 20262w ago
5.4 CVSS 3.1
Published Dec 30, 2021 4y ago
Last Modified Jun 17, 2026 2w ago
Description
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.
CVSS Details
Base Score
Exploitability
Impact
Vector string
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N Attack Vector Network
Attack Complexity Low
Privileges Required Low
User Interaction Required
Scope Changed
Confidentiality Low
Integrity Low
Availability None
Threat Intelligence
No active exploitation signals — not in CISA KEV and no EPSS score yet.
Exploit & Patch Status
No Known Exploit
Patch Available
Weaknesses 2
CWE-20 Improper Input Validation Validation
CWE-79 Cross-site Scripting Injection
Affected Products 1
| Vendor | Product | Version | Range |
|---|---|---|---|
| mermaid_project | mermaid | * | <8.13.8 |
References 3
- github.com https://github.com/mermaid-js/mermaid/commit/066b7a0d0bda274d94a2f2d21e4323dab5776d83
- github.com https://github.com/mermaid-js/mermaid/releases/tag/8.13.8
- github.com https://github.com/mermaid-js/mermaid/security/advisories/GHSA-p3rp-vmj9-gv6v
Remediation
- github.com https://github.com/mermaid-js/mermaid/commit/066b7a0d0bda274d94a2f2d21e4323dab5776d83