Read the docs
TI-2020-19492 Aliases GHSA-w32g-5hqp-gg6q

Cross-Site Scripting in mermaid

Priority LOW 38CWE-79Published · Updated

Key facts

Attack vector
—
Privileges required
—
User interaction
—
Attack complexity
—
Impact type
Cross-site scripting
Confidentiality · integrity · availability
—
Fix status
Fixed

No CVSS vector from any source. Fix status from GitHub. Impact type from CWE-79.

Summary

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

Why it matters now

Fix Fixed mermaid (npm): 8.2.3

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
—mermaid (npm)before 8.2.38.2.3Patch availableGHSA-w32g-5hqp-gg6q
  • mermaid (npm) Vendor— Affected before 8.2.3 Fixed in 8.2.3 Patch available GHSA-w32g-5hqp-gg6q

Remediation

  • Fix · GHSA-w32g-5hqp-gg6q mermaid (npm) Fixed in 8.2.3 Advisory →

Timeline

  1. 2026-10-03 Threatist record created from GHSA-w32g-5hqp-gg6q

References

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences