dom-iterator@0.2.0 vulnerabilities

iterator for mini-html-parser

  • latest version

    1.0.2

  • latest non vulnerable version

  • first published

    11 years ago

  • latest version published

    11 months ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the dom-iterator 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
    • M
    Arbitrary Code Execution

    dom-iterator is a feature-rich, well-tested Iterator for traversing DOM nodes.

    Affected versions of this package are vulnerable to Arbitrary Code Execution due to use of the Function constructor without complete input sanitization. Function generates a new function body and thus care must be given to ensure that the inputs to Function are not attacker-controlled. The risks involved are similar to that of allowing attacker-controlled input to reach eval.

    How to fix Arbitrary Code Execution?

    Upgrade dom-iterator to version 1.0.1 or higher.

    <1.0.1