CVE-2026-50159
Mermaid is a JavaScript tool that uses Markdown-inspired text to …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/mermaid-js/mermaid/security/advisories/GHSA-6x64-9x62-f2gx
- github.com/mermaid-js/mermaid/pull/8022
- github.com/mermaid-js/mermaid/commit/12d472c9ed43f94814b110da8d7a9ae6dd5266ed
- github.com/mermaid-js/mermaid/commit/7e83f1533318b307764d961906a73377266f4c5e
- github.com/mermaid-js/mermaid/releases/tag/[email protected]
- github.com/mermaid-js/mermaid/releases/tag/v10.9.8
- github.com/advisories/GHSA-6x64-9x62-f2gx
- nvd.nist.gov/vuln/detail/CVE-2026-50159
- cve.org/CVERecord?id=CVE-2026-50159
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.