Mermaid-Js Mermaid vulnerabilities

4 known vulnerabilities affecting mermaid-js/mermaid.

Total CVEs
4
CISA KEV
0
Public exploits
0
Exploited in wild
0
Severity breakdown
MEDIUM4

Vulnerabilities

Page 1 of 1
CVE-2025-54881MEDIUMCVSS 5.3v>= 10.9.0-rc.1, <= 11.9.02025-08-19
CVE-2025-54881 [MEDIUM] CWE-79 CVE-2025-54881: 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 10.9.0-rc.1 to 11.9.0, user supplied input for sequence diagram labels is passed to innerHTML during calculation of element size, causing XSS.
nvd
CVE-2025-54880MEDIUMCVSS 5.1v>= 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
nvd
CVE-2022-31108MEDIUMCVSS 6.1v>= 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
nvd
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
nvd