Cross-site Scripting (XSS) Affecting node-mermaid package, versions <8.13.8+~cs10.4.16-1


Severity

Recommended
0.0
medium
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.94% (61st 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-DEBIAN14-NODEMERMAID-18023056
  • published20 Jul 2026
  • disclosed30 Dec 2021

Introduced: 30 Dec 2021

CVE-2021-43861  (opens in a new tab)
CWE-79  (opens in a new tab)
CWE-20  (opens in a new tab)

How to fix?

Upgrade Debian:14 node-mermaid to version 8.13.8+~cs10.4.16-1 or higher.

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. See How to fix? for Debian:14 relevant fixed versions and status.

Mermaid is a Javascript based diagramming and charting tool that uses Markdown-inspired text definitions and a renderer to create and modify complex diagrams. Prior to version 8.13.8, malicious diagrams can run javascript code at diagram readers' machines. Users should upgrade to version 8.13.8 to receive a patch. There are no known workarounds aside from upgrading.

CVSS Base Scores

version 3.1