{"id":"CVE-2026-50159","revision":"88034c8b2ecd4ba3ae51e9105049eb1d","records":[{"revision":"88034c8b2ecd4ba3ae51e9105049eb1d","observedAt":"2026-10-25T12:17:38.331+00:00","statement":{"source":"nvd","id":"CVE-2026-50159","aliases":[],"title":"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 cla…","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.","state":0,"publishedAt":"2026-08-06T22:17:17.18+00:00","modifiedAt":"2026-10-24T16:10:00.153+00:00","affected":[],"metrics":[{"system":"CVSS 4.0 · security-advisories@github.com · Secondary","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:L/SI:L/SA:L/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","score":5.3,"severity":"MEDIUM"}],"references":["https://github.com/mermaid-js/mermaid/commit/12d472c9ed43f94814b110da8d7a9ae6dd5266ed","https://github.com/mermaid-js/mermaid/commit/7e83f1533318b307764d961906a73377266f4c5e","https://github.com/mermaid-js/mermaid/pull/8022","https://github.com/mermaid-js/mermaid/releases/tag/mermaid@11.16.1","https://github.com/mermaid-js/mermaid/releases/tag/v10.9.8","https://github.com/mermaid-js/mermaid/security/advisories/GHSA-6x64-9x62-f2gx"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-50159","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Awaiting Analysis","weaknesses":["CWE-94"],"productCriteria":[],"sourceDates":{"published":"2026-08-06T22:17:17.180","lastModified":"2026-10-24T16:10:00.153"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2026-50159","identifiers":["CVE-2026-50159"]},"retained":false,"historicalAffected":[]}],"coverage":[]}