beautiful-mermaid@0.1.2 vulnerabilities

Render Mermaid diagrams as beautiful SVGs or ASCII art. Ultra-fast, fully themeable, zero DOM dependencies.

  • latest version

    1.1.3

  • latest non vulnerable version

  • first published

    1 months ago

  • latest version published

    27 days ago

  • licenses detected

  • Direct Vulnerabilities

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

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

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

    beautiful-mermaid is a Render Mermaid diagrams as beautiful SVGs or ASCII art. Ultra-fast, fully themeable, zero DOM dependencies.

    Affected versions of this package are vulnerable to Cross-site Scripting (XSS) via the interpolation of user-controlled values from style and classDef directives into SVG attribute values without proper escaping. An attacker can execute arbitrary scripts in the context of the embedding origin by crafting input that injects malicious SVG elements or attributes into the rendered output.

    How to fix Cross-site Scripting (XSS)?

    Upgrade beautiful-mermaid to version 0.1.3 or higher.

    <0.1.3