striptags@3.0.1 vulnerabilities

PHP strip_tags in Node.js

  • latest version

    3.2.0

  • latest non vulnerable version

  • first published

    10 years ago

  • latest version published

    3 years ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the striptags 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
    • L
    Cross-site Scripting (XSS)

    striptags is a PHP strip_tags in Node.js

    Affected versions of this package are vulnerable to Cross-site Scripting (XSS). It might cause striptags to concatenate unsanitized strings when an array-like object is passed in as the html parameter. This can be abused by an attacker who can control the shape of their input, e.g. if query parameters are passed directly into the function.

    How to fix Cross-site Scripting (XSS)?

    Upgrade striptags to version 3.2.0 or higher.

    <3.2.0