mermaid@10.9.4 vulnerabilities

Markdown-ish syntax for generating flowcharts, mindmaps, sequence diagrams, class diagrams, gantt charts, git graphs and more.

  • latest version

    11.11.0

  • latest non vulnerable version

  • first published

    10 years ago

  • latest version published

    4 days ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the mermaid package. This does not include vulnerabilities belonging to this package’s dependencies.

    How to fix?

    Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.

    Fix for free
    VulnerabilityVulnerable Version
    • M
    Cross-site Scripting (XSS)

    mermaid is a package for generation of diagrams and flowcharts from text in a similar manner as markdown.

    Affected versions of this package are vulnerable to Cross-site Scripting (XSS) via the calculateMathMLDimensions function, which was introduced in 5c69e5f. An attacker can execute arbitrary scripts in the context of the user's browser by injecting malicious HTML into sequence diagram labels, which are processed and rendered without proper sanitization.

    How to fix Cross-site Scripting (XSS)?

    Upgrade mermaid to version 11.10.0 or higher.

    >=10.9.0-rc.1 <11.10.0