Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. mermaid
  4. ›
  5. CVE-2021-43861

CVE-2021-43861: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

December 30, 2021 (updated July 21, 2023)

Mermaid is a Javascript based diagramming and charting tool that uses Markdown-inspired text definitions and a renderer to create and modify complex diagrams., malicious diagrams can run javascript code at diagram readers’ machines. Users should upgrade to to receive a patch. There are no known workarounds aside from upgrading.

References

  • github.com/mermaid-js/mermaid/commit/066b7a0d0bda274d94a2f2d21e4323dab5776d83
  • github.com/mermaid-js/mermaid/releases/tag/8.13.8
  • github.com/mermaid-js/mermaid/security/advisories/GHSA-p3rp-vmj9-gv6v
  • nvd.nist.gov/vuln/detail/CVE-2021-43861

Code Behaviors & Features

Detect and mitigate CVE-2021-43861 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.13.8

Fixed versions

  • 8.13.8

Solution

Upgrade to version 8.13.8 or above.

Impact 5.4 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

Source file

npm/mermaid/CVE-2021-43861.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Wed, 14 May 2025 12:16:15 +0000.