Skip to content
OpenAdvisories
Medium · 6.5 CVE-2026-71437 EUVD-2026-54242GHSA-3rrr-jr9j-h3q3

Mermaid Architecture diagrams are vulnerable to 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. From version 11.5.0 until 11.16.1, Mermaid Architecture Diagrams are vulnerable to prototype pollution when a diagram defines a group with an id of __proto__. Because the group id is used directly as an object property key without validation, an attacker who can supply diagram text can pollute Object.prototype, potentially affecting the behavior of the embedding application. This issue is fixed in version 11.16.1.

Affected products

VendorProductAffectedFixed
mermaid-js mermaid >= 11.5.0, < 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.5.0, < 11.16.1 11.16.1 GHSA-3rrr-jr9j-h3q3

References