What’s Vulnerable › Vulnerabilities

CVE-2021-43861: Incorrect sanitisation function leads to `XSS`

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.

Affected products

How to fix

Upgrade to a fixed version: mermaid-js mermaid 8.13.8. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2021-43861 or the next vulnerability affects your stack