CVE catalog

CVE-2026-41159

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

[CVE catalog]

Severity
Medium · CVSS 5.4CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Published
Source
[NVD] · [CVE record]
EPSS
0.49% · Oct 25, 2026

A flaw was found in Mermaid, a JavaScript tool for creating diagrams and charts. A remote attacker could exploit this vulnerability by injecting malicious Cascading Style Sheets (CSS) through specific configuration options, such as fontFamily, themeCSS, and altFontFamily. This injected CSS can bypass the intended scoping, allowing styles to be applied to all elements on a web page, leading to page defacement. Additionally, this flaw enables the exfiltration of sensitive information from the Document Object Model (DOM) using CSS selectors. mermaid: Mermaid: Information disclosure and page defacement via CSS injection This Moderate flaw in Mermaid, a JavaScript diagramming tool, allows for CSS injection that bypasses intended scoping. A remote attacker could exploit this by providing a specially crafted diagram, leading to page defacement and potential exfiltration of sensitive information from the Document Object Model (DOM). This impact is considered Moderate as it requires user interaction to render the malicious content. The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
CpemermaidNot reported10.9.6fixed
CpemermaidNot reported11.15.0fixed
Debiannode-mermaid148.11.0+ds+~cs29.13.22-1vulnerable
Debiannode-mermaid148.13.2+ds+~cs30.13.21-1vulnerable
Debiannode-mermaid148.13.2+ds+~cs30.13.21-1.1vulnerable
Debiannode-mermaid148.13.3+ds+~cs26.13.21-1vulnerable
Debiannode-mermaid148.13.3+ds+~cs26.13.21-2vulnerable
Debiannode-mermaid148.13.8+~cs10.4.16-1vulnerable
Debiannode-mermaid148.14.0+ds1+~cs11.4.14-1vulnerable
Debiannode-mermaid148.14.0+~cs11.4.14-1vulnerable
Debiannode-mermaid148.7.0+ds+~cs27.17.17-1vulnerable
Debiannode-mermaid148.7.0+ds+~cs27.17.17-2vulnerable
Debiannode-mermaid148.7.0+ds+~cs27.17.17-2~bpo10+1vulnerable
Debiannode-mermaid148.7.0+ds+~cs27.17.17-3vulnerable
Debiannode-mermaid148.9.1+ds+~cs26.20.25-1vulnerable
Debiannode-mermaid148.9.3+ds+~cs29.13.19-1vulnerable
Debiannode-mermaid149.2.2+~2.0.0-1vulnerable
Debiannode-mermaid149.2.2+~2.0.0-2vulnerable

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
CpemermaidcpeNot reported10.9.6Not reportedNot reportedNot reported
CpemermaidcpeNot reported11.15.0Not reportedNot reportedNot reported

OpenFactory catalog packages

No matching packages in this catalog.

Observed:

References