Vulnerability 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 Score
HIGH
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Matthewmueller | Dom-Iterator | <= 1.0.0 |
Related Weaknesses (CWE)
References
- https://github.com/matthewmueller/dom-iterator/commit/9e0e0fad5a251de5b42feb326c
- https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-8383166
- https://security.snyk.io/vuln/SNYK-JS-DOMITERATOR-6157199ExploitThird Party Advisory
FAQ
What is CVE-2024-21541?
CVE-2024-21541 is a vulnerability with a CVSS score of 7.3 (HIGH). 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 functi...
How severe is CVE-2024-21541?
CVE-2024-21541 has been rated HIGH with a CVSS base score of 7.3/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2024-21541?
Check the references section above for vendor advisories and patch information. Affected products include: Matthewmueller Dom-Iterator.