ADVISORIES

GitHub Advisory Database

GHSA-p3rp-vmj9-gv6v

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.

Affected packages

EcosystemPackageAffected versions
npmmermaid
All versions before 8.13.8 (fixed in 8.13.8)

References