{"id":"CVE-2024-21541","aliases":["GHSA-jrvm-mcxc-mf6m"],"url":"https://o3.security/vulnerability/CVE-2024-21541","summary":"dom-iterator code execution vulnerability","details":"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.","published":"2024-11-13T05:00:12.270Z","modified":"2026-08-12T03:51:40.499491551Z","cvss":null,"epss":null,"cisaKev":null,"exploitsKnown":1,"affectedPackages":[{"ecosystem":"npm","name":"dom-iterator","fixedVersion":"1.0.1"}],"fix":{"url":"https://github.com/matthewmueller/dom-iterator/commit/9e0e0fad5a251de5b42feb326c4204eb04080805","label":"matthewmueller/dom-iterator@9e0e0fa"},"references":[{"type":"WEB","url":"https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-8383166"},{"type":"WEB","url":"https://security.snyk.io/vuln/SNYK-JS-DOMITERATOR-6157199"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/21xxx/CVE-2024-21541.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-21541"},{"type":"FIX","url":"https://github.com/matthewmueller/dom-iterator/commit/9e0e0fad5a251de5b42feb326c4204eb04080805"},{"type":"PACKAGE","url":"https://github.com/matthewmueller/dom-iterator"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:40.499491551Z"}}