CVE-2025-54881
Medium
Description
Mermaid is a JavaScript based diagramming and charting tool that uses Markdown-inspired text definitions and a renderer to create and modify complex diagrams. In the default configuration of mermaid 10.9.0-rc.1 to 11.9.0, user supplied input for sequence diagram labels is passed to innerHTML during calculation of element size, causing XSS.
SeverityMedium
CVSS5.3
Exploit probability—
Product
Mermaid
PublishedAug 19, 2025
First seenAug 19, 2025
Weakness typeCWE-79Cross-site scripting (XSS)
How to fix
Update
- mermaid11.10.0, 10.9.4 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| mermaidnpm | 11.0.0-alpha.1 ≤ v < 11.10.0, 10.9.0-rc.1 ≤ v < 10.9.4 | 11.10.0, 10.9.4 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
In the Intelligence 360 plan
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.