html-dom-parser@0.1.1 vulnerabilities

HTML to DOM parser.

  • latest version

    5.1.1

  • latest non vulnerable version

  • first published

    9 years ago

  • latest version published

    5 months ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the html-dom-parser package. This does not include vulnerabilities belonging to this package’s dependencies.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    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