Medium severityNVD Advisory· Published Aug 6, 2026
CVE-2026-50159
CVE-2026-50159
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 is vulnerable to CSS injection via sibling combinator selectors generated from diagram-supplied class or id names. An attacker who can supply diagram text can inject arbitrary CSS into the rendered page, potentially altering the appearance or behavior of unrelated page elements. This issue is fixed in versions 10.9.8 and 11.16.1.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
mermaidnpm | >= 11.0.0-alpha.1, < 11.16.1 | 11.16.1 |
mermaidnpm | < 10.9.8 | 10.9.8 |
Affected products
1- Range: v10.9.8, v11.16.1
Patches
Vulnerability mechanics
References
7- github.com/advisories/GHSA-6x64-9x62-f2gxghsaADVISORY
- github.com/mermaid-js/mermaid/commit/12d472c9ed43f94814b110da8d7a9ae6dd5266ednvdWEB
- github.com/mermaid-js/mermaid/commit/7e83f1533318b307764d961906a73377266f4c5envdWEB
- github.com/mermaid-js/mermaid/pull/8022nvdWEB
- github.com/mermaid-js/mermaid/releases/tag/[email protected]nvdWEB
- github.com/mermaid-js/mermaid/releases/tag/v10.9.8nvdWEB
- github.com/mermaid-js/mermaid/security/advisories/GHSA-6x64-9x62-f2gxnvdWEB
News mentions
0No linked articles in our index yet.