Live threats

All CVEs / mermaid-js

CVE-2025-54881mermaid-js mermaid

Medium 5.3 No auth needed

Priority
47
CVSS 4.0
5.3
EPSS
—
Auth required
No
Published
Aug 19, 2025
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-79
SSVC (CISA)
Exploitation: proof of concept · Automatable: yes · Technical impact: partial
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for mermaid.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm mermaid ≥ 11.0.0-alpha.1 < 11.10.0 11.10.0 npm install mermaid@11.10.0
npm mermaid ≥ 10.9.0-rc.1 < 10.9.4 10.9.4 npm install mermaid@10.9.4

Per OSV / GitHub Advisories (GHSA-7rqq-prvp-x9jh). Check the version in your lockfile before upgrading.

Affected products

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

Official sources

References

Links published by the sources. Open them with care.