Skip to content
OpenAdvisories
Low · 2.4 CVE-2026-71438 EUVD-2026-54244GHSA-c4c3-pg64-4m4v

Mermaid configuration APIs allow prototype pollution

Published Aug 6, 2026 · Updated Aug 7, 2026 · Assigned by GitHub_M

Description

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.

Affected products

VendorProductAffectedFixed
mermaid-js mermaid < 10.9.8, >= 11.0.0-alpha.1, < 11.16.1 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 node-mermaid No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 node-mermaid No fix yet —
Ubuntu 22.04 LTS node-mermaid No fix yet —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling jupyter-base-notebook 7.6.3-r2 —
Wolfi rolling langfuse-3-compat 3.225.7-r6 —
Wolfi rolling langfuse-3-worker 3.225.1-r2 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm mermaid >= 11.0.0-alpha.1, < 11.16.1 11.16.1 GHSA-c4c3-pg64-4m4v
npm mermaid < 10.9.8 10.9.8 GHSA-c4c3-pg64-4m4v

References