GitHub Advisory Database
GHSA-4f6x-49g2-99fm
Cross-site Scripting in Mermaid
Details
Mermaid before 8.11.0 allows XSS when the antiscript feature is used.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| npm | mermaid | All versions before 8.11.0 (fixed in 8.11.0) |
References
- https://nvd.nist.gov/vuln/detail/CVE-2021-35513
- https://github.com/mermaid-js/mermaid/issues/2122
- https://github.com/mermaid-js/mermaid/pull/2123
- https://github.com/mermaid-js/mermaid/pull/2123/commits/3d22fa5d2435de5acc18de6f88474a6e8675a60e
- https://github.com/mermaid-js/mermaid/releases/tag/8.11.0-rc2