Advisory

GHSA-p3rp-vmj9-gv6v

Also known as: CVE-2021-43861

Summary

Incorrect sanitisation function leads to XSS in mermaid

Details

Impact
Malicious diagrams can contain javascript code that can be run at diagram readers machines.

Patches
The users should upgrade to version 8.13.8

Workarounds
You need to upgrade in order to avoid this issue.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-01-06 19:45 UTC
Modified
2026-07-08 06:28 UTC

Affected packages and fixes

mermaid

npm · All systems

Affected

  • introduced 0, fixed 8.13.8 (semver)

Fixed versions

8.13.8

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences