Cross-Site Scripting in mermaid
High severity
GitHub Reviewed
Published
Sep 2, 2020
to the GitHub Advisory Database
•
Updated Jan 9, 2023
Description
Reviewed
Aug 31, 2020
Published to the GitHub Advisory Database
Sep 2, 2020
Last updated
Jan 9, 2023
Versions of
mermaid
prior to 8.2.3 are vulnerable to Cross-Site Scripting. If malicious input such asA["<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
References