CVE-2026-50159: falha de média gravidade em mermaid-js mermaid
Mermaid allows CSS injection applying to sibling elements of the diagram
Publicada em · Atualizada em
Aviso por e-mail quando ela entrar no KEV, ganhar PoC pública ou subir de nota.
13Vexday Risk Score
Sem sinal de exploração. Nenhum artefato público de exploração conhecido até agora.
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
Produtos afetados
mermaid-js · mermaidCVEs relacionadas — mermaid-js mermaid
No mesmo produto, das mais perigosas para as 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%
Referências
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