Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. mermaid
  4. ›
  5. GMS-2019-1

GMS-2019-1: Cross-Site Scripting

May 13, 2019

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.

References

  • github.com/knsv/mermaid/issues/847
  • github.com/knsv/mermaid/issues/869
  • www.npmjs.com/advisories/751

Code Behaviors & Features

Detect and mitigate GMS-2019-1 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 8.2.3.

Fixed versions

  • 8.2.3

Solution

Upgrade to 8.2.3 or later.

Source file

npm/mermaid/GMS-2019-1.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:34 +0000.