CVE-2026-50159: fallo de gravedad media en mermaid-js mermaid
Mermaid allows CSS injection applying to sibling elements of the diagram
Publicada el · Actualizada el
Aviso por correo cuando entre en el KEV, tenga PoC pública o suba de nota.
13Vexday Risk Score
Sin señal de explotación. Ningún artefacto público de explotación conocido hasta ahora.
ssvc Trackcvss 5.3epss 0.6%
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:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:L/SI:L/SA:L
Productos afectados
mermaid-js · mermaidCVEs relacionadas — mermaid-js mermaid
En el mismo producto, de las más peligrosas a las menos.
CVE-2021-43861HIGHIncorrect sanitisation function leads to `XSS`EPSS 0.9%CVE-2022-31108MEDIUMArbitrary `CSS` injection into the generated graph affecting the container HTML in mermaid.jsEPSS 0.9%CVE-2025-54881MEDIUMMermaid improperly sanitizes of sequence diagram labels leading to XSSEPSS 0.9%CVE-2026-71436MEDIUMMermaid XY Charts are vulnerable to an infinite loop DoSEPSS 0.6%CVE-2026-71439MEDIUMMermaid radar diagrams are vulnerable to DoSEPSS 0.5%CVE-2026-71437MEDIUMMermaid Architecture diagrams are vulnerable to prototype pollutionEPSS 0.5%
Referencias
https://github.com/mermaid-js/mermaid/commit/12d472c9ed43f94814b110da8d7a9ae6dd5266edhttps://github.com/mermaid-js/mermaid/commit/7e83f1533318b307764d961906a73377266f4c5ehttps://github.com/mermaid-js/mermaid/pull/8022https://github.com/mermaid-js/mermaid/releases/tag/mermaid@11.16.1https://github.com/mermaid-js/mermaid/releases/tag/v10.9.8https://github.com/mermaid-js/mermaid/security/advisories/GHSA-6x64-9x62-f2gx