Skip to content
OpenAdvisories
High · 7.2 CVE-2021-43861 EUVD-2022-0654GHSA-p3rp-vmj9-gv6v

Incorrect sanitisation function leads to `XSS`

Published Dec 30, 2021 · Updated Aug 4, 2024 · Assigned by GitHub_M

Description

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.

Affected products

VendorProductAffectedFixed
mermaid-js mermaid < 8.13.8 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 node-mermaid 8.13.8+~cs10.4.16-1 —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 node-mermaid No fix yet —
Ubuntu 22.04 LTS node-mermaid No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
npm mermaid < 8.13.8 8.13.8 GHSA-p3rp-vmj9-gv6v

References