Skip to content
Heist/ feed
Back to feed
Medium

node-mermaid — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2026-41149

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,

Products
node-mermaid
Affected versions
8.13.3+ds+~cs26.13.21-1, 8.13.3+ds+~cs26.13.21-2, 8.13.8+~cs10.4.16-1, 8.7.0+ds+~cs27.17.17-3, 9.2.2+~2.0.0-1, 9.2.2+~2.0.0-2
Fixed versions
Not specified
CVEs
CVE-2026-41149
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 03:02 UTC · Revision 1

Source evidence

UBUNTU-CVE-2026-41149

core-osv · Original source

Published 22 May 2026, 23:16 UTC

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,

osv:UBUNTU-CVE-2026-41149

node-mermaid

Fixed versions: Not specified

node-mermaid

Fixed versions: Not specified

Complete source record
{
  "id": "8f77faaa000dc5369cc3e00dd78cd06e819e4d7e6cfcc3a05172295143c48431",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-41149",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2026-41149",
    "summary": "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,",
    "evidence": "osv:UBUNTU-CVE-2026-41149",
    "products": [
      {
        "name": {
          "value": "node-mermaid",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "8.7.0+ds+~cs27.17.17-3",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "8.13.3+ds+~cs26.13.21-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "8.13.3+ds+~cs26.13.21-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "8.13.8+~cs10.4.16-1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-mermaid",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "9.2.2+~2.0.0-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "9.2.2+~2.0.0-2",
            "evidence": "/affected/1/versions"
          }
        ]
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "UBUNTU-CVE-2026-41149",
      "aliases": [
        "UBUNTU-CVE-2026-41149"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:L/SI:L/SA:L"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-mermaid",
            "purl": "pkg:deb/ubuntu/node-mermaid?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "8.7.0+ds+~cs27.17.17-3",
            "8.13.3+ds+~cs26.13.21-1",
            "8.13.3+ds+~cs26.13.21-2",
            "8.13.8+~cs10.4.16-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-41149.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "node-mermaid",
                "binary_version": "8.13.8+~cs10.4.16-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-mermaid",
            "purl": "pkg:deb/ubuntu/node-mermaid?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "9.2.2+~2.0.0-1",
            "9.2.2+~2.0.0-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-41149.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "node-mermaid",
                "binary_version": "9.2.2+~2.0.0-2"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T13:00:03.775543973Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-41149"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2026-41149",
        "https://www.cve.org/CVERecord?id=CVE-2026-41149",
        "https://github.com/mermaid-js/mermaid/security/advisories/GHSA-ghcm-xqfw-q4vr",
        "https://github.com/mermaid-js/mermaid/commit/37ff937f1da2e19f882fd1db01235db4d01f4056",
        "https://github.com/mermaid-js/mermaid/commit/4e2d512bf5bf6f9de1a8f0a48da78dc4d09ac4f3"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-41149",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 360221,
  "published_at": "2026-05-22T23:16:00+00:00"
}