{"cve":"CVE-2026-50159","nvd":{"published":"2026-08-06T22:17:17.180","modified":"2026-10-24T16:10:00.153","status":"Awaiting Analysis","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.","cvss_v4":{"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","score":5.3},"cvss_v3":null,"cwes":["CWE-94"],"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"],"products":[],"source":"nvd","synced_at":"2026-10-24T16:53:34.184483516+00:00"},"epss":{"cve":"CVE-2026-50159","score":0.00603,"percentile":0.48536,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-6x64-9x62-f2gx","url":"https://osv.dev/vulnerability/GHSA-6x64-9x62-f2gx","summary":"Mermaid allows CSS injection applying to sibling elements of the diagram","modified":"2026-09-10T03:51:13.166807946Z","packages":[{"ecosystem":"npm","name":"mermaid","purl":"pkg:npm/mermaid","ranges":[">=11.0.0-alpha.1 <11.16.1"],"fixed":["11.16.1"]},{"ecosystem":"npm","name":"mermaid","purl":"pkg:npm/mermaid","ranges":["<10.9.8"],"fixed":["10.9.8"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}