CVE-2026-71438: CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution') in mermaid-js mermaid
Mermaid, a JavaScript tool for creating diagrams, had a prototype pollution vulnerability in its configuration setters prior to versions 10.9.8 and 11.16.1. The issue arises from merging caller-supplied configuration into internal config using a vulnerable deep-merge helper. Exploitation requires forwarding untrusted data directly into these configuration entry points, which is outside documented usage. Diagram-supplied configuration is not affected. The vulnerability is fixed in versions 10.9.8 and 11.16.1.
AI Analysis
Technical Summary
CVE-2026-71438 is a prototype pollution vulnerability (CWE-1321) in mermaid-js's mermaid tool affecting configuration setters (mermaid.initialize, mermaidAPI.setConfig, mermaidAPI.updateSiteConfig). These functions merge user-supplied configuration into internal config using the assignWithDepth deep-merge helper, which is vulnerable to prototype pollution. This flaw can be exploited only if untrusted data is forwarded directly into these configuration setters, which is not the intended usage. Diagram-supplied configuration methods such as %%{init: {}}%% or YAML frontmatter are not vulnerable. The issue is resolved in versions 10.9.8 and 11.16.1.
Potential Impact
The vulnerability allows improper modification of object prototype attributes via configuration setters, potentially leading to unexpected behavior or security issues in applications that improperly forward untrusted data into these setters. However, the risk is low because exploitation requires a non-standard usage pattern (directly forwarding untrusted data), and typical diagram-supplied configurations are not affected.
Mitigation Recommendations
Upgrade mermaid to version 10.9.8 or later, or 11.16.1 or later, where this prototype pollution vulnerability is fixed. Avoid forwarding untrusted data directly into the vulnerable configuration setters. Since the issue is fixed in these versions, applying the official update is the recommended remediation.
CVE-2026-71438: CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution') in mermaid-js mermaid
Description
Mermaid, a JavaScript tool for creating diagrams, had a prototype pollution vulnerability in its configuration setters prior to versions 10.9.8 and 11.16.1. The issue arises from merging caller-supplied configuration into internal config using a vulnerable deep-merge helper. Exploitation requires forwarding untrusted data directly into these configuration entry points, which is outside documented usage. Diagram-supplied configuration is not affected. The vulnerability is fixed in versions 10.9.8 and 11.16.1.
CVSS v4.0
Score 2.4low
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-71438 is a prototype pollution vulnerability (CWE-1321) in mermaid-js's mermaid tool affecting configuration setters (mermaid.initialize, mermaidAPI.setConfig, mermaidAPI.updateSiteConfig). These functions merge user-supplied configuration into internal config using the assignWithDepth deep-merge helper, which is vulnerable to prototype pollution. This flaw can be exploited only if untrusted data is forwarded directly into these configuration setters, which is not the intended usage. Diagram-supplied configuration methods such as %%{init: {}}%% or YAML frontmatter are not vulnerable. The issue is resolved in versions 10.9.8 and 11.16.1.
Potential Impact
The vulnerability allows improper modification of object prototype attributes via configuration setters, potentially leading to unexpected behavior or security issues in applications that improperly forward untrusted data into these setters. However, the risk is low because exploitation requires a non-standard usage pattern (directly forwarding untrusted data), and typical diagram-supplied configurations are not affected.
Mitigation Recommendations
Upgrade mermaid to version 10.9.8 or later, or 11.16.1 or later, where this prototype pollution vulnerability is fixed. Avoid forwarding untrusted data directly into the vulnerable configuration setters. Since the issue is fixed in these versions, applying the official update is the recommended remediation.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-08-06T16:28:51.183Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a75070fbf8831d5395f5ddb
Added to database: 08/06/2026, 22:13:35 UTC
Last enriched: 08/06/2026, 22:28:18 UTC
Last updated: 08/07/2026, 02:39:21 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.