All reports
High

Incorrect sanitisation function leads to `XSS` in mermaid

Affected versions

Affected versions
< 8.13.8
Fixed version
8.13.8

Exploitation

CVE-2021-43861

Probability of exploitation in the next 30 days: 0.94%

FIRST EPSS · 2026-11-21

Description

Impact

Malicious diagrams can contain javascript code that can be run at diagram readers machines.

Patches

The users should upgrade to version 8.13.8

Workarounds

You need to upgrade in order to avoid this issue.

Links