Vulnerability library
Security checkJanuary 14, 2025

dom-iterator code execution vulnerability

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Medium severitynpmdom-iterator

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

Versions of the package dom-iterator before 1.0.1 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.

Recommendation

Update the dom-iterator package to the latest compatible version. Followings are version details:

  • Affected version(s): <= 1.0.0
  • Patched version(s): 1.0.1

References

Could your website be exposed too?

SmartScanner can check your website for dom-iterator code execution vulnerability and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated January 14, 2025