Skip to main content
CVE-2025-54880VulnerabilityPublished

CVE-2025-54880: mermaid · Cross-site Scripting

Affects mermaidSource CVE Database V5

0

Not known to be exploited · CVSS 5.1 Medium · fixed in 11.10.0 : update mermaid when convenient.

Data as of 25 Oct 2026, 19:02 UTC

CVSS 4.0 base score
5.1Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.3% chance of exploitation in 30 days – higher than 32% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 11.10.0
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 19 Aug 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-25.

What to do

AI-suggested

1. Upgrade all instances of the mermaid-js library to version 11.10.0 or later, where the vulnerability is patched. 2. Implement strict input validation and sanitization on any user-supplied content used to generate Mermaid diagrams, especially for architecture diagram icons. Use allowlists for acceptable icon names or restrict input formats. 3. Employ Content Security Policy (CSP) headers to restrict the execution of inline scripts and reduce the impact of potential XSS exploits. 4. Monitor and audit web application logs for unusual activity or injection attempts related to Mermaid diagram rendering. 5. Educate developers and content creators about the risks of embedding user-generated content without proper sanitization. 6. If upgrading immediately is not feasible, consider disabling or restricting features that allow user input for architecture icons or rendering Mermaid diagrams until patched. 7. Conduct regular security testing, including automated scanning and manual code reviews, focusing on client-side rendering components that use Mermaid. 8. For web applications, implement robust authentication and session management to limit the damage if an XSS attack occurs.

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 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.

References

Community reviews

Loading reviews…