CVE-2024-21541: Versions of the package dom-iterator before 1.0.1 are vulnerable to Arbitrary Code Execution due to use of the
CVE-2024-21541 is a high-severity flaw (CVSS 7.3) affecting dom-iterator. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- High severity
- Public exploit reference
- Remotely exploitable, no login, no user action
A fixed release or distro patch exists.
Risk facts
| CVSS score | 7.3 (High) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | None |
| EPSS exploit chance | 1.1% (top 35%) |
| CISA exploited list | No |
| Weakness | CWE-94 |
| Published | 2024-11-13 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2024-21541?
dom-iterator: upgrade to newer than 1.0.0. Exact commands for each OS are on this page.
Is CVE-2024-21541 being exploited?
CVE-2024-21541 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2024-21541 affect?
CVE-2024-21541 affects dom-iterator. Severity is high (CVSS 7.3). 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 e
How urgent is CVE-2024-21541?
Priority 52/100. High severity; Public exploit reference; Remotely exploitable, no login, no user action