Skip to main content
← All vulnerabilities
CVE-2024-21541GHSA-JRVM-MCXC-MF6M

Versions of the package dom-iterator before 1.0.1 are vulnerable to Arbitrary Code Execution due to use of the Function constructor without

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.0.1
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: partial

Summary

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. The risks involved are similar to that of allowing attacker-controlled input to reach eval.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • n/a dom-iterator

    fixed in 1.0.1

  • n/a org.webjars.npm:dom-iterator

    All versions

  • dom-iteratornpm

    fixed in 1.0.1

References 3

security.snyk.io

GitHub · matthewmueller/dom-iterator