Advisory

GHSA-w32g-5hqp-gg6q

Also known as: None

Summary

Cross-Site Scripting in mermaid

Details

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

Severity

High Basis: The source's own band: HIGH

Dates

Published
2020-09-02 15:41 UTC
Modified
2021-09-27 13:34 UTC

Affected packages and fixes

mermaid

npm · All systems

Affected

  • introduced 0, fixed 8.2.3 (semver)

Fixed versions

8.2.3

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences