dom-iterator@0.2.0 vulnerabilities

iterator for mini-html-parser

Direct Vulnerabilities

Known vulnerabilities in the dom-iterator 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
  • 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?

There is no fixed version for dom-iterator.

*