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. Learn more about Dependency Scanning →

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 Wed, 14 May 2025 12:15:29 +0000.