Live threats

All CVEs / mermaid-js

CVE-2026-71438mermaid-js mermaid

Low 2.4

Priority
14
CVSS 4.0
2.4
EPSS
—
Auth required
Yes
Published
Aug 6, 2026
Updated
Oct 24, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-1321
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:4.0/AV:L/AC:L/AT:P/PR:H/UI:A/VC:N/VI:L/VA:L/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

What happens

Mermaid is a JavaScript tool that uses Markdown-inspired text to create and modify diagrams and charts. Prior to 10.9.8 and 11.16.1, Mermaid's configuration setters (mermaid.initialize, mermaidAPI.setConfig, and mermaidAPI.updateSiteConfig) merge caller-supplied configuration into Mermaid's internal config using the assignWithDepth deep-merge helper, which is vulnerable to prototype pollution. This is only exploitable if an application forwards untrusted data directly into one of these configuration entry points, which is outside their documented usage; diagram-supplied configuration (e.g. %%{init: {}}%% or YAML frontmatter) is not affected. This issue is fixed in versions 10.9.8 and 11.16.1.

Original NVD text.

What to do

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

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm mermaid ≥ 11.0.0-alpha.1 < 11.16.1 11.16.1 npm install mermaid@11.16.1
npm mermaid < 10.9.8 10.9.8 npm install mermaid@10.9.8

Per OSV / GitHub Advisories (GHSA-c4c3-pg64-4m4v). Check the version in your lockfile before upgrading.

Affected products

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

Official sources

References

Links published by the sources. Open them with care.