CVE-2026-50159: Mermaid allows CSS injection applying to sibling elements of the diagram
mermaid-js · mermaid
Affected: mermaid-js · Exploitation: unlikely (under 1%)
Not in CyberSIXT coverage yet: no article names this CVE. This page shows the public record.
Higher than 49% of scored CVEs
DescriptionCVE.org
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 products1
From the CVE record. A product or version that is not listed is unknown, not unaffected.
- mermaid-js · mermaid< 10.9.8; >= 11.0.0-alpha.1, < 11.16.1
On the Atlas
Every published CVE is on the CyberSIXT Atlas, grouped by weakness, vendor and month.
- Exploitation
- Unlikely (under 1%). EPSS under 1%, or no score yet.
- CISA KEV
- Not listed
- Public check
- No public nuclei template
- Vendor
- mermaid-js
- Published
- August 2026
CoverageNo articles yet
No CyberSIXT article names CVE-2026-50159 yet, so there is no coverage timeline, action brief or change log for it. Everything on this page comes from the public CVE record, CISA KEV, EPSS and the nuclei template index. Search the archive or see the CVEs in the news.
References
- NVD entrynvd.nist.gov
- CVE recordcve.org
- Weakness CWE-94cwe.mitre.org
- github.com/mermaid-js/mermaid/security/advisories/GHSA-6x64-9x62github.com
- github.com/mermaid-js/mermaid/pull/8022github.com
- github.com/mermaid-js/mermaid/commit/12d472c9ed43f94814b110da8d7github.com
- github.com/mermaid-js/mermaid/commit/7e83f1533318b307764d961906agithub.com
- github.com/mermaid-js/mermaid/releases/tag/mermaid@11.16.1github.com
- github.com/mermaid-js/mermaid/releases/tag/v10.9.8github.com