patchminder
Proof of concept · CISA assessment CVE-2025-54880

Cross-site scriptingin mermaid-js mermaid.

Published 19 Aug 2025 · Updated 19 Aug 2025 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Proof of concept public (CISAThe US cyber defence agency. Its list names every hole it has seen used in real attacks. assessment).

Severity
Medium 5.1
CVSSA severity score from 0 to 10. 9 and higher is critical. 4.0
Attack likelihood
Low
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 0.5% chance in 30 days · 4 Dec 2026
Fix
Available
Upgrade to 11.10.0 or later
In plain words

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 11.9.0 and earlier, user supplied input for architecture diagram icons is passed to the d3 html() method, creating a sink for cross site scripting. This vulnerability is fixed in 11.10.0.

What to do now
  • Upgrade mermaid to 11.10.0 or later.
  • Upgrade mermaid (npm) to 11.10.0 or later.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
mermaid
11.1.0 to before 11.10.0
11.10.0
CVE record
mermaid (npm)
11.1.0 to before 11.10.0
11.10.0
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 31 Jul 2025
    CVE ID reserved by GitHub_M.
  2. 19 Aug 2025
    Published in the CVE List.
  3. 19 Aug 2025
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: Proof of concept (CISA assessment). CISA assessment (SSVC): exploitation poc.

Metasploit module
None known
Nuclei scan template
None known
Exploit-DB
None known
GitHub proof of concepts
None known

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

Related

Other mermaid vulnerabilities

Same weakness: Cross-site scripting

All CWE-79 vulnerabilities

References
Cite this page

Patchminder. CVE-2025-54880: Cross-site scripting in mermaid-js mermaid. https://patchminder.com/cve/cve-2025-54880/ (accessed 5 December 2026).