html-dom-parser@0.0.1 vulnerabilities

HTML to DOM parser.

Direct Vulnerabilities

Known vulnerabilities in the html-dom-parser 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
Regular Expression Denial of Service (ReDoS)

html-dom-parser is a HTML to DOM parser that works on both the server and client.

Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS). It used a regular expression (/<head[\s\S]*>[\s\S]*<\/head>/ and /<body[\s\S]*>[\s\S]*<\/body>/) in order to find html tags. This can cause an impact of about 10 seconds matching time for data 65K characters long.

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

Upgrade html-dom-parser to version 0.1.3 or higher.

<0.1.3