CVE-2021-43861

Incorrect sanitisation function leads to `XSS`

Published Dec 30, 2021 CVSS 3.1 · 7.2 High EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2022-0654 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.
Github GHSA Github GHSA GHSA-p3rp-vmj9-gv6v Incorrect sanitisation function leads to `XSS` in mermaid
History

No history.

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 4, 2024, 4:10 AM
Reserved
Nov 16, 2021, 12:00 AM
Status
Modified
Published
Dec 30, 2021, 2:15 PM
Modified
Jun 17, 2026, 4:11 AM