CVEFinder.io

CVE-2021-43861

⚠️ high
Summary

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 Score
7.2
High
EPSS Score
0.5
Exploit Probability
Published Date
2021-12-30
First Seen: 2026-01-05
📊 Relative Risk Intelligence

This CVE is Moderate Risk - more severe than 54.3% of all 378,614 vulnerabilities in our database.

#172,935
Above average severity
Severity Percentile
Last Modified 2024-11-21
Source NVD 🔗
CVSS Vector 3.1 CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
CWE IDs (Weakness Types)

📦 Affected Products 1

🔗 References 3

🔗 Related CVEs 5

CVE ID Severity CVSS EPSS Summary Published
CVE-2026-41150 🔶 medium 5.3 0.4 Mermaid is a JavaScript tool that uses Markdown-inspired text to create and modify diagrams and charts. Prior to 10.9.6 ... 2026-05-29
CVE-2026-41159 🔶 medium 5.3 0.4 Mermaid is a JavaScript tool that uses Markdown-inspired text to create and modify diagrams and charts. Prior to 10.9.6 ... 2026-05-29
CVE-2025-54880 🔶 medium 6.1 0.0 Mermaid is a JavaScript based diagramming and charting tool that uses Markdown-inspired text definitions and a renderer ... 2025-08-19
CVE-2022-31108 🔶 medium 4.1 0.2 Mermaid is a JavaScript based diagramming and charting tool that uses Markdown-inspired text definitions and a renderer ... 2022-06-28
CVE-2021-35513 🔶 medium 6.1 0.3 Mermaid before 8.11.0 allows XSS when the antiscript feature is used. 2021-06-27
These CVEs affect the same products