Live threats

All CVEs / Mermaid Project

CVE-2021-43861Mermaid Project Mermaid

Medium 5.4

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
Weakness (CWE)
CWE-20, CWE-79
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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Mermaid.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
mermaid_projectmermaid< 8.13.8

Official sources

References

Links published by the sources. Open them with care.