html-dom-parser@0.1.2 vulnerabilities

HTML to DOM parser.

  • latest version

    5.0.11

  • latest non vulnerable version

  • first published

    8 years ago

  • latest version published

    11 days ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the html-dom-parser 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
    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