{"cve":"CVE-2024-21541","nvd":{"published":"2024-11-13T05:15:14.680","modified":"2026-06-17T07:09:42.403","status":"Modified","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. The risks involved are similar to that of allowing attacker-controlled input to reach eval.","cvss_v4":{"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","score":5.5},"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8},"cwes":["CWE-94"],"references":["https://github.com/matthewmueller/dom-iterator/commit/9e0e0fad5a251de5b42feb326c4204eb04080805","https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-8383166","https://security.snyk.io/vuln/SNYK-JS-DOMITERATOR-6157199"],"products":["matthewmueller:dom-iterator"],"source":"nvd","synced_at":"2026-10-19T21:57:07.693694550+00:00"},"epss":{"cve":"CVE-2024-21541","score":0.01082,"percentile":0.65183,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-jrvm-mcxc-mf6m","url":"https://osv.dev/vulnerability/GHSA-jrvm-mcxc-mf6m","summary":"dom-iterator code execution vulnerability","modified":"2025-01-14T21:18:03Z","packages":[{"ecosystem":"npm","name":"dom-iterator","purl":"pkg:npm/dom-iterator","ranges":["<1.0.1"],"fixed":["1.0.1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}