striptags@3.1.1 vulnerabilities

PHP strip_tags in Node.js

Direct Vulnerabilities

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

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable 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