xss@0.1.17 vulnerabilities

Sanitize untrusted HTML (to prevent XSS) with a configuration specified by a Whitelist

Direct Vulnerabilities

Known vulnerabilities in the xss 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
  • H
Regular Expression Denial of Service (ReDoS)

xss is a package that sanitizes untrusted HTML (to prevent XSS) with a configuration specified by a Whitelist.

Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) via the stripCommentTag function in lib/default.js.

How to fix Regular Expression Denial of Service (ReDoS)?

Upgrade xss to version 1.0.10 or higher.

<1.0.10