CVE-2021-43861
Incorrect sanitisation function leads to `XSS` in mermaid
7.2
HIGH
CVSS 3.1
EPSS 0.49%
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
- —upgrade to 8.13.8 or later
Is CVE-2021-43861 being exploited?
Low — EPSS is 0.5%, meaning exploitation activity has not been observed at scale.
Affected packages (2)
- from 0, < 8.7.0+ds+~cs27.17.17-3+deb11u2
- from 0, < 8.13.8
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | HIGH7.2 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |