CVE-2026-41149 Affecting node-mermaid package, versions *


Severity

Recommended
low

Based on Debian security rating.

Threat Intelligence

EPSS
0.4% (35th 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-16896284
  • published27 May 2026
  • disclosed22 May 2026

Introduced: 22 May 2026

CVE-2026-41149  (opens in a new tab)

How to fix?

There is no fixed version for Debian:11 node-mermaid.

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:11 relevant fixed versions and status.

Mermaid is a JavaScript tool that uses Markdown-inspired text to create and modify diagrams and charts. Versions 10.9.5 and earlier, as well as 11.0.0-alpha.1 through 11.14.0, are vulnerable to HTML injection under the default configuration. Specifically, the classDef directive in Mermaid state diagrams permits DOM injection that escapes the SVG context. However, <script> tags are stripped, which prevents cross-site scripting (XSS). This issue has been fixed in versions 10.9.6 and 11.15.0. If developers are unable to immediately upgrade, they can work around this issue by setting "securityLevel": "sandbox", which prevents the issue by rendering the mermaid diagram in a sandboxed <iframe>.