node-htmlparser-classic@2.0.0 vulnerabilities

Forgiving HTML/XML/RSS Parser in JS for *both* Node and Browsers

Direct Vulnerabilities

Known vulnerabilities in the node-htmlparser-classic 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)

node-htmlparser-classic is A forgiving HTML/XML/RSS parser written in JS for both the browser and NodeJS (yes, despite the name it works just fine in any modern browser).

Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS). The following regular expression used in parsing the HTML documents is vulnerable: /(^\s+|\s+$)/g

The slowdown is moderately low: for 50.000 characters around 2.5 seconds matching time.

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

There is no fix version for node-htmlparser-classic.

*