{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2024-21541","published":"2024-11-13T05:15:14.680000Z","last_modified":"2026-06-17T07:09:42.403000Z","status":"Modified","cvss":{"version":"4.0","score":5.5,"severity":"MEDIUM","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","source":"report@snyk.io","primary":false},"auth":false,"cwes":["CWE-94"],"cpes":[{"criteria":"cpe:2.3:a:matthewmueller:dom-iterator:*:*:*:*:*:node.js:*:*","part":"a","vendor":"matthewmueller","product":"dom-iterator","version_end_including":"1.0.0"}],"cpes_truncated":false,"vendors":["matthewmueller"],"products":["matthewmueller/dom-iterator"],"ssvc":{"exploitation":"poc","automatable":"yes","technical_impact":"partial"},"epss":{"score":0.01285,"percentile":0.70221,"date":"2026-11-30","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-jrvm-mcxc-mf6m","ecosystem":"npm","name":"dom-iterator","purl":"pkg:npm/dom-iterator","ranges":[{"introduced":"0","fixed":"1.0.1"}],"versions":[],"versions_truncated":false}],"severity":"medium","priority_score":48,"links":{"html_es":"/es/cve/CVE-2024-21541/","html_en":"/en/cve/CVE-2024-21541/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2024-21541","cve_org":"https://www.cve.org/CVERecord?id=CVE-2024-21541"},"untrusted":{"vendor_name":"Matthewmueller","product_name":"Dom-iterator","desc_en":"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.","affected":[{"untrusted_vendor":"dom-iterator","untrusted_product":"dom-iterator","versions":[]}],"references":[{"url":"https://github.com/matthewmueller/dom-iterator/commit/9e0e0fad5a251de5b42feb326c4204eb04080805","tags":[]},{"url":"https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-8383166","tags":[]},{"url":"https://security.snyk.io/vuln/SNYK-JS-DOMITERATOR-6157199","tags":["Exploit","Third Party Advisory"]}]}}