# CVE-2026-71438: Mermaid configuration APIs allow prototype pollution

- Severity: Low 2.4 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 10% of CVEs (2026-12-01)
- Published: 2026-08-06T19:59:07.450Z
- Modified: 2026-10-24T15:10:00.190Z
- Also known as: GHSA-c4c3-pg64-4m4v
- Weaknesses: CWE-1321
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- mermaid-js mermaid: < 10.9.8; >= 11.0.0-alpha.1, < 11.16.1
- mermaid (npm): from 11.0.0-alpha.1 before 11.16.1; before 10.9.8

## Every score

- GitHub_M: CVSS:4.0 2.4 Low `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`
- GitHub: CVSS:4.0 Low `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`

## References

- <https://github.com/mermaid-js/mermaid/security/advisories/GHSA-c4c3-pg64-4m4v> (web)
- <https://github.com/mermaid-js/mermaid/pull/8022> (web)
- <https://github.com/mermaid-js/mermaid/commit/2cd6dcf735533b323507e3e889ffdea870540b43> (web)
- <https://github.com/mermaid-js/mermaid/commit/c34b07a0815842327e70794d69b0c8c5a1e2a956> (web)
- <https://github.com/mermaid-js/mermaid/releases/tag/mermaid%4011.16.1> (web)
- <https://github.com/mermaid-js/mermaid/releases/tag/v10.9.8> (web)
- <https://github.com/mermaid-js/mermaid> (package)

## Sources

- CVE List: [CVE-2026-71438](https://www.cve.org/CVERecord?id=CVE-2026-71438), CVE Terms of Use, modified 2026-08-07
- GitHub Advisory Database: [GHSA-c4c3-pg64-4m4v](https://github.com/advisories/GHSA-c4c3-pg64-4m4v), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-71438](https://nvd.nist.gov/vuln/detail/CVE-2026-71438), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-71438 · Whole record: https://cve.day/CVE-2026-71438.json · Rebuilt by cve.day 2026-11-25T22:59:31.810Z
