Direct naar de inhoud
⚡ Kritieke cyberalerts voor jouw sector & systemen — direct in je inbox. Aanmelden →
CVE's Videos Dagbriefing

← Terug naar CVE-database

CVE-2026-41159

MEDIUM · 5.3 CVSS Gepubliceerd: CWE-94

Beschrijving NL

Mermaid is een JavaScript-tool die Markdown-geïnspireerde tekst gebruikt om diagrammen en grafieken te maken en aan te passen. Voorafgaand aan 10.9.6 en 11.15.0 staat de standaardconfiguratie van Mermaid toe om CSS te injecteren die van toepassing is buiten het Zeemeermindiagram via de configuratieopties fontFamily, themeCSS en altFontFamily. De geïnjecteerde CSS maakt gebruik van de & (scope reference) handling. :niet(&) ontsnapt aan de # zeemeermin-xxx automatische scoping en past stijlen toe op alle pagina-elementen. Globale at-regels (@font-face, @keyframes, @counter-style) zijn ook injecteerbaar omdat stylis ze naar het hoogste niveau tilt. Dit maakt pagina defacement en DOM-ATTRIBUUT exfiltratie mogelijk via CSS :has() selectors. Deze kwetsbaarheid is opgelost in 10.9.6 en 11.15.0.

Origineel (Engels) tonen

Mermaid is a JavaScript tool that uses Markdown-inspired text to create and modify diagrams and charts. Prior to 10.9.6 and 11.15.0, Mermaid's default configuration allows injecting CSS that applies outside of the Mermaid diagram via the fontFamily, themeCSS, and altFontFamily configuration options. The injected CSS exploits stylis's & (scope reference) handling. :not(&) escapes the #mermaid-xxx automatic scoping, applying styles to all page elements. Global at-rules (@font-face, @keyframes, @counter-style) are also injectable as stylis hoists them to top level. This allows page defacement and DOM attribute exfiltration via CSS :has() selectors. This vulnerability is fixed in 10.9.6 and 11.15.0.

Vendors

Mermaid Project

Affected products

Mermaid

References