CVE-2021-43861Mermaid Project Mermaid
Medium 5.4
Follow: this CVE · Mermaid Project · Mermaid Project Mermaid We alert you by email or Slack (account required).
- Priority
- 32
- CVSS 3.1
- 5.4
- EPSS
- 0.9% probability of exploitation in 30 days · percentile 59
- Auth required
- Yes
- Published
- Dec 30, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
What happens
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.
What to do
- Apply the vendor's security update for Mermaid.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | mermaid |
< 8.13.8 |
8.13.8 |
npm install mermaid@8.13.8 |
Per OSV / GitHub Advisories (GHSA-p3rp-vmj9-gv6v). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| mermaid_project | mermaid | < 8.13.8 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- github.com Release Notes Third Party Advisory
- github.com Third Party Advisory