Approved changes feed: RSS · Atom

cpe:2.3:a:mermaid_project:mermaid:*:*:*:*:*:node.js:*:*

part: a version: * update: *

VendorMermaid Project (c8734632-2b36-5f6c-9dcd-aec7abe835de)
ProductMermaid (87a23be6-bef6-521a-be4e-c5642b8f001c)
Edition*
Language*
Software edition*
Target softwarenode.js
Target hardware*
Other*

Notes

Imported from purl2cpe mapping

PURL mappings

PURLSourceLast updated
pkg:deb/debian/node-mermaid purl2cpe 2026-06-01 10:12:24.283452
pkg:deb/ubuntu/node-mermaid purl2cpe 2026-06-01 10:12:24.283453
pkg:github/mermaid-js/mermaid purl2cpe 2026-06-01 10:12:24.283455
pkg:maven/org.webjars.npm/mermaid purl2cpe 2026-06-01 10:12:24.283456
pkg:npm/mermaid purl2cpe 2026-06-01 10:12:24.283458
pkg:sourceforge/mermaid.mirror purl2cpe 2026-06-01 10:12:24.283459

Vulnerability references

IdentifiercpeApplicabilitySubmitteddb.gcve.eu detailsRationale
CVE:CVE-2025-54880 vulnerable 2026-06-08 07:33:13.526859 Mermaid does not properly sanitize architecture diagram iconText leading to XSS
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.
Published: 2025-08-19T16:58:41.120Z
Updated: 2025-08-19T17:09:32.759Z
Reference links
Imported from gcve-enriched-dumps CVE data
CVE:CVE-2022-31108 vulnerable 2026-06-08 05:43:40.181763 Arbitrary `CSS` injection into the generated graph affecting the container HTML in mermaid.js
MEDIUM (4.1)
Mermaid is a JavaScript based diagramming and charting tool that uses Markdown-inspired text definitions and a renderer to create and modify complex diagrams. An attacker is able to inject arbitrary `CSS` into the generated graph allowing them to change the styling of elements outside of the generated graph, and potentially exfiltrate sensitive information by using specially crafted `CSS` selectors. The following example shows how an attacker can exfiltrate the contents of an input field by bruteforcing the `value` attribute one character at a time. Whenever there is an actual match, an `http` request will be made by the browser in order to "load" a background image that will let an attacker know what's the value of the character. This issue may lead to `Information Disclosure` via CSS selectors and functions able to generate HTTP requests. This also allows an attacker to change the document in ways which may lead a user to perform unintended actions, such as clicking on a link, etc. This issue has been resolved in version 9.1.3. Users are advised to upgrade. Users unable to upgrade should ensure that user input is adequately escaped before embedding it in CSS blocks.
Published: 2022-06-28T18:35:11.000Z
Updated: 2025-04-22T17:52:58.513Z
Reference links
Imported from gcve-enriched-dumps CVE data
CVE:CVE-2021-43861 vulnerable 2026-06-08 05:36:44.482070 Incorrect sanitisation function leads to `XSS`
HIGH (7.2)
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.
Published: 2021-12-30T13:40:11.000Z
Updated: 2024-08-04T04:10:17.137Z
Reference links
Imported from gcve-enriched-dumps CVE data
CVE:CVE-2021-35513 vulnerable 2026-06-08 05:32:48.888518 Details available
Mermaid before 8.11.0 allows XSS when the antiscript feature is used.
Published: 2021-06-27T11:03:30.000Z
Updated: 2024-08-04T00:40:47.091Z
Reference links
Imported from gcve-enriched-dumps CVE data

Contribute

You can submit an edit proposal for this CPE entry or suggest a related product/vendor addition using the action button above.

Inspect record JSON

Open JSON directly

Open this panel to browse, search, copy or download the JSON record.