CVE-2026-71438: Mermaid - Prototype Pollution
- Cve: CVE-2026-71438
- Name: Mermaid - Prototype Pollution
- 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.
- Impact: Attackers can manipulate internal configuration, potentially leading to application logic tampering or further exploitation.
- Remediation: Update to versions 10.9.8 or 11.16.1 or later.
- Vulnerability type: prototype_pollution
- Vulnerability impact: data_tampering
- Requirements: Attacker must forward untrusted data directly to configuration setters
- Labels source: projectdiscovery
- Severity: low
- Cvss score: 2.4
- Cvss 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
- Epss score: 0.00353
- Epss percentile: 0.29366
- Assignee: [email protected]
- Published at: 2026-08-06T22:18:30Z
- Age in days: 110
- Modified at: 2026-10-24T15:10:00Z
- Patch available: yes
- References total: 6
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-71438
- Nvd status: awaiting_analysis
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirement type, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-1321 | Improperly Controlled Modification of Object Prototype Attributes |
References
Same in every row:
- Source: nvd
- Tags:
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| mermaid_project:mermaid | >= 11.0.0-alpha.1, < 11.16.1; < 10.9.8 | no | cna_alias_text | /v1/products/mermaid_project/mermaid |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| mermaid-js/mermaid | commit, fix, package, pull, releases, security_advisory | yes | /v1/repositories/mermaid-js/mermaid |
Index
- Repositories: 371
- Repositories high signal: 244
- Packages: 1
Exploitation
- Authentication required: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts