GHSA-w32g-5hqp-gg6q
high
Cross-Site Scripting in mermaid
- Severity
- high rating by GitHub
- Published
- Last changed
Description
Versions of mermaid prior to 8.2.3 are vulnerable to Cross-Site Scripting. If malicious input such as A["<img src=invalid onerror=alert('XSS')></img>"] is provided to the application, it will execute the code instead of rendering it as text due to improper output encoding.
Recommendation
Upgrade to version 8.2.3 or later
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| mermaid (npm) | before 8.2.3 | GitHub Advisory Database |
Classification
References
Sources
| Source | Record | Licence |
|---|---|---|
| GitHub Advisory Database | GHSA-w32g-5hqp-gg6q changed 2021-09-27 | CC-BY-4.0 |