CVE-2024-21541Matthewmueller Dom-iterator
Medium 5.5 No auth needed
Follow: this CVE · Matthewmueller · Matthewmueller Dom-iterator We alert you by email or Slack (account required).
- Priority
- 48
- CVSS 4.0
- 5.5
- EPSS
- 1.3% probability of exploitation in 30 days · percentile 70
- Auth required
- No
- Published
- Nov 13, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-94
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: yes · Technical impact: partial
- 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
What happens
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.
What to do
- Apply the vendor's security update for Dom-iterator.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | dom-iterator |
< 1.0.1 |
1.0.1 |
npm install dom-iterator@1.0.1 |
Per OSV / GitHub Advisories (GHSA-jrvm-mcxc-mf6m). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| matthewmueller | dom-iterator | ≤ 1.0.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com
- security.snyk.io
- security.snyk.io Exploit Third Party Advisory