Mermaid Project Mermaid vulnerabilities

5 known vulnerabilities affecting mermaid_project/mermaid.

Total CVEs
5
CISA KEV
0
Public exploits
0
Exploited in wild
0
Severity breakdown
MEDIUM5

Vulnerabilities

Page 1 of 1
CVE-2025-54880MEDIUMCVSS 5.1≥ 11.1.0, < 11.10.02025-08-19
CVE-2025-54880 [MEDIUM] CWE-79 CVE-2025-54880: Mermaid is a JavaScript based diagramming and charting tool that uses Markdown-inspired text definit Mermaid is a JavaScript based diagramming and charting tool that uses Markdown-inspired text definitions and a renderer to create and modify complex diagrams. In the default configuration of mermaid 11.9.0 and earlier, user supplied input for architecture diagram icons is passed to the d3 html() method, creating a sink for cross site scripting. This
ghsanvdosv
CVE-2025-54881MEDIUM≥ 11.0.0-alpha.1, < 11.10.0≥ 10.9.0-rc.1, < 10.9.42025-08-19
CVE-2025-54881 [MEDIUM] CWE-79 Mermaid improperly sanitizes sequence diagram labels leading to XSS Mermaid improperly sanitizes sequence diagram labels leading to XSS ### Summary In the default configuration of mermaid 11.9.0, user supplied input for sequence diagram labels is passed to `innerHTML` during calculation of element size, causing XSS. ### Details Sequence diagram node labels with KaTeX delimiters are passed through `calculateMathMLDimensions`. This method passes the full label to `
ghsaosv
CVE-2022-31108MEDIUMCVSS 6.1≥ 8.0.0, < 9.1.32022-06-28
CVE-2022-31108 [MEDIUM] CWE-74 CVE-2022-31108: Mermaid is a JavaScript based diagramming and charting tool that uses Markdown-inspired text definit Mermaid is a JavaScript based diagramming and charting tool that uses Markdown-inspired text definitions and a renderer to create and modify complex diagrams. An attacker is able to inject arbitrary `CSS` into the generated graph allowing them to change the styling of elements outside of the generated graph, and potentially exfiltrate sensitive infor
ghsanvdosv
CVE-2021-43861MEDIUMCVSS 5.4fixed in 8.13.82021-12-30
CVE-2021-43861 [MEDIUM] CWE-20 CVE-2021-43861: Mermaid is a Javascript based diagramming and charting tool that uses Markdown-inspired text definit 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
ghsanvdosv
CVE-2021-35513MEDIUMCVSS 6.1fixed in 8.11.02021-06-27
CVE-2021-35513 [MEDIUM] CWE-79 CVE-2021-35513: Mermaid before 8.11.0 allows XSS when the antiscript feature is used. Mermaid before 8.11.0 allows XSS when the antiscript feature is used.
ghsanvdosv