Quick answers
- Is CVE-2026-71437 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2026-71437 being exploited in the wild.
- How severe is CVE-2026-71437?
- Medium severity, with a CVSS score of 4, published 6 August 2026.
- Which products and versions are affected?
- mermaid (npm) >= 11.5.0, < 11.16.1, SEMVER:introduced=11.5.0,fixed=11.16.1.
- Is there a fix for CVE-2026-71437?
- Yes. mermaid (npm): upgrade to 11.16.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2026-71437 attacked?
- It is attacked over the network, in a software library.
- Am I affected by CVE-2026-71437?
- Check whether you run mermaid (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
- mermaid (npm): upgrade to 11.16.1 or later
npm install mermaid@11.16.1
Technical details
A prototype pollution vulnerability exists in Mermaid's architecture-beta diagram renderer. The vulnerability arises from unsafe handling of group IDs: an attacker can specify __proto__ as a parent group ID, which causes the renderer to write an arbitrary property (with value constrained to "horizontal" or "vertical") directly onto Object.prototype. This occurs because the code uses plain JavaScript object notation (Record<string, ...>) rather than Map for storing group alignments, making it vulnerable to prototype chain pollution. The attack requires the ability to provide untrusted diagram input and for the embedding application to use the rendered diagram. While the injected property values are restricted to strings, any code in the same JavaScript realm that reads these properties or iterates objects will observe the polluted values, leading to corrupted defaults, bypassed checks, or logic corruption. The fix (released in v11.16.1) refactors the code to use Map instead of plain objects, preventing prototype pollution. Affected versions: 11.5.0 through 11.16.0.
Affected products
- mermaid-js mermaid >=11.5.0, <11.16.1
Identifiers
- CVE-2026-71437
- GHSA-3rrr-jr9j-h3q3
Timeline
- 2026-08-06: disclosed
- 2026-08-06: patched: Patched in mermaid v11.16.1
References
- https://github.com/mermaid-js/mermaid/security/advisories/GHSA-3rrr-jr9j-h3q3
- https://github.com/mermaid-js/mermaid/pull/8022
- https://github.com/mermaid-js/mermaid/commit/99af3fc35ef0a9a9c8c6314521344d67523ddccf
- https://github.com/mermaid-js/mermaid
- https://github.com/mermaid-js/mermaid/releases/tag/mermaid@11.16.1