CVE-2026-71438 Mermaid configuration APIs allow prototype pollution
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- UbuntuDebianRed Hat
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.
Upgrade path
8 packages: 1 fixed, 6 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/node-mermaid(Debian 14) | = 8.7.0+ds+~cs27.17.17-1; = 8.7.0+ds+~cs27.17.17-2; = 8.7.0+ds+~cs27.17.17-2~bpo10+1; = 8.7.0+ds+~cs27.17.17-3 +13 more | No fix listed | No fix yet |
| redhat/devspaces/code-rhel9(Red Hat openshift_devspaces 3) | All versions | No fix listed | No fix yet |
| redhat/rh-podman-desktop.git(Red Hat podman_desktop 1) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-workbench-codeserver-datascience-cpu-py312-rhel9(Red Hat openshift_ai) | All versions | No fix listed | No fix yet |
| ubuntu/node-mermaid(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/node-mermaid(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| npm mermaid(npm) | < 10.9.8; >= 11.0.0-alpha.1, < 11.16.1 | 10.9.8, 11.16.1 | Fixed |
| mermaid-js mermaid | = < 10.9.8; = >= 11.0.0-alpha.1, < 11.16.1 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| mermaid-js mermaid | = < 10.9.8 | No fix listed |
| mermaid-js mermaid | = >= 11.0.0-alpha.1, < 11.16.1 | No fix listed |
| redhat/rh-podman-desktop.git(Red Hat:podman_desktop:1) | All versions | No fix listed |
| redhat/rhoai/odh-workbench-codeserver-datascience-cpu-py312-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/devspaces/code-rhel9(Red Hat:openshift_devspaces:3) | All versions | No fix listed |
| npm mermaid(npm) | >= 11.0.0-alpha.1, < 11.16.1 | 11.16.1 |
| npm mermaid(npm) | < 10.9.8 | 10.9.8 |
| debian/node-mermaid(Debian:14) | All versions | No fix listed |
| debian/node-mermaid(Debian:14) | = 8.11.0+ds+~cs29.13.22-1 | No fix listed |
| debian/node-mermaid(Debian:14) | = 8.13.2+ds+~cs30.13.21-1 | No fix listed |
| debian/node-mermaid(Debian:14) | = 8.13.2+ds+~cs30.13.21-1.1 | No fix listed |
| debian/node-mermaid(Debian:14) | = 8.13.3+ds+~cs26.13.21-1 | No fix listed |
| debian/node-mermaid(Debian:14) | = 8.13.3+ds+~cs26.13.21-2 | No fix listed |
| debian/node-mermaid(Debian:14) | = 8.13.8+~cs10.4.16-1 | No fix listed |
| debian/node-mermaid(Debian:14) | = 8.14.0+ds1+~cs11.4.14-1 | No fix listed |
| debian/node-mermaid(Debian:14) | = 8.14.0+~cs11.4.14-1 | No fix listed |
| debian/node-mermaid(Debian:14) | = 8.7.0+ds+~cs27.17.17-1 | No fix listed |
| debian/node-mermaid(Debian:14) | = 8.7.0+ds+~cs27.17.17-2 | No fix listed |
| debian/node-mermaid(Debian:14) | = 8.7.0+ds+~cs27.17.17-2~bpo10+1 | No fix listed |
| debian/node-mermaid(Debian:14) | = 8.7.0+ds+~cs27.17.17-3 | No fix listed |
| debian/node-mermaid(Debian:14) | = 8.9.1+ds+~cs26.20.25-1 | No fix listed |
| debian/node-mermaid(Debian:14) | = 8.9.3+ds+~cs29.13.19-1 | No fix listed |
| debian/node-mermaid(Debian:14) | = 9.2.2+~2.0.0-1 | No fix listed |
| debian/node-mermaid(Debian:14) | = 9.2.2+~2.0.0-2 | No fix listed |
| ubuntu/node-mermaid(Ubuntu:22.04) | All versions | No fix listed |
Show 1 more
| Product | Affected versions | Fixed in |
|---|---|---|
| ubuntu/node-mermaid(Ubuntu:26.10) | All versions | No fix listed |
References
- https://github.com/mermaid-js/mermaid/security/advisories/GHSA-c4c3-pg64-4m4v vendor-advisory
- https://github.com/mermaid-js/mermaid/pull/8022 patch
- https://github.com/mermaid-js/mermaid/commit/2cd6dcf735533b323507e3e889ffdea870540b43 patch
- https://github.com/mermaid-js/mermaid/commit/c34b07a0815842327e70794d69b0c8c5a1e2a956 patch
- https://github.com/mermaid-js/mermaid/releases/tag/mermaid%4011.16.1
- https://github.com/mermaid-js/mermaid/releases/tag/v10.9.8
- Red Hat CVE page vendor-advisory
- Red Hat Bugzilla 2512216 issue-tracking
- www.cve.org
- nvd.nist.gov
- github.com
- Debian Security Tracker CVE-2026-71438 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- bugs.debian.org issue-tracking
- github.com product
- ENISA EUVD EUVD-2026-54244 third-party-advisory