Cross-site Scripting (XSS) The advisory has been revoked - it doesn't affect any version of package node-mermaid  (opens in a new tab)


Threat Intelligence

EPSS
0.86% (59th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-DEBIAN11-NODEMERMAID-12029328
  • published21 Aug 2025
  • disclosed19 Aug 2025

Introduced: 19 Aug 2025

CVE-2025-54881  (opens in a new tab)
CWE-79  (opens in a new tab)

Amendment

The Debian security team deemed this advisory irrelevant for Debian:11.

NVD Description

Note: Versions mentioned in the description apply only to the upstream node-mermaid package and not the node-mermaid package as distributed by Debian.

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.