CVE-2021-43861
Incorrect sanitisation function leads to `XSS` in mermaid
5.4
MEDIUM
CVSS 3.1
EPSS 0.91%
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.
How to fix CVE-2021-43861
To remediate CVE-2021-43861, upgrade the affected package to a fixed version below.
- —upgrade to 8.7.0+ds+~cs27.17.17-3+deb11u2 or later
Is CVE-2021-43861 being exploited?
Low — EPSS is 0.9%, meaning exploitation activity has not been observed at scale.
Affected packages (1)
- from 0, < 8.7.0+ds+~cs27.17.17-3+deb11u2
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |