{"id":"CVE-2024-21541","published":"2024-11-13T05:00:12Z","modified":"2025-01-16T11:24:30Z","title":"Versions of the package dom-iterator before 1.0.1 are vulnerable to Arbitrary Code Execution due to use of the…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.3,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01082,"percentile":0.66031,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-JS-DOMITERATOR-6157199","tags":[]},{"url":"https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-8383166","tags":[]},{"url":"https://github.com/matthewmueller/dom-iterator/commit/9e0e0fad5a251de5b42feb326c4204eb04080805","tags":[]}],"priority":{"score":18.3,"factors":[{"name":"EPSS percentile","points":13.21},{"name":"CVSS severity","points":5.11}]},"affectedVersions":[{"vendor":"n/a","product":"dom-iterator","versions":["< 1.0.1"]},{"vendor":"n/a","product":"org.webjars.npm:dom-iterator","versions":["all versions"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2024-11-14T16:00:24.678420Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"dom-iterator","vulnerableRanges":["<1.0.1"],"patched":["1.0.1"],"from":["GHSA-jrvm-mcxc-mf6m"],"provenance":"source"}],"summary":{"text":"The dom-iterator npm package, in versions before 1.0.1, contains a code injection flaw because it passes input to the Function constructor without fully sanitising it. An attacker who can get crafted input into that code path can cause arbitrary code to execute, and the attack requires only network access with no privileges or user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:35:10Z"},"euvd":{"id":"EUVD-2024-3277","exploited":false,"provenance":"source"}}