@mattkrick/sanitize-svg@0.2.1

a small script to remove script tags from SVGs

  • latest version

    0.4.1

  • latest non vulnerable version

  • first published

    7 years ago

  • latest version published

    1 years ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the @mattkrick/sanitize-svg 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)

    @mattkrick/sanitize-svg is an a small script to remove script tags from SVGs

    Affected versions of this package are vulnerable to Cross-site Scripting (XSS) due to improper user-input sanitization in the deny-list-pattern when processing SVG input.

    How to fix Cross-site Scripting (XSS)?

    Upgrade @mattkrick/sanitize-svg to version 0.4.0 or higher.

    <0.4.0