MEDIUM6.1
GHSA-4f6x-49g2-99fm
Cross-site Scripting in Mermaid
Quick fix
GHSA-4f6x-49g2-99fm — mermaid: upgrade to the fixed version with the command below.
npm install mermaid@8.11.0Details
Mermaid before 8.11.0 allows XSS when the antiscript feature is used.
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://nvd.nist.gov/vuln/detail/CVE-2021-35513[ADVISORY]
- https://github.com/mermaid-js/mermaid/issues/2122[WEB]
- https://github.com/mermaid-js/mermaid/pull/2123[WEB]
- https://github.com/mermaid-js/mermaid/pull/2123/commits/3d22fa5d2435de5acc18de6f88474a6e8675a60e[WEB]
- https://github.com/mermaid-js/mermaid/releases/tag/8.11.0-rc2[WEB]