CVE-2024-21541
Last modified
CVE-2024-21541 is a critical-severity vulnerability rated 9.8/10 on the CVSS scale. 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. EPSS estimates a 1.05% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
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
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Matthewmueller | Dom-Iterator | <= 1.0.0 |
References
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2024-21541?
How severe is CVE-2024-21541?
How do I fix CVE-2024-21541?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2024
- CVE-2024-21536Versions of the package http-proxy-middleware before 2.0.7, …7.5
- CVE-2024-21537Versions of the package lilconfig from 3.1.0 and before 3.1.…8.9
- CVE-2024-21538Versions of the package cross-spawn before 6.0.6, from 7.0.0…7.7
- CVE-2024-21539Versions of the package @eslint/plugin-kit before 0.2.3 are …7.7
- CVE-2024-2154A vulnerability has been found in SourceCodester Online Mobi…9.8
- CVE-2024-21540Rejected reason: This issue is not a vulnerability because n…
- CVE-2024-21542Versions of the package luigi before 3.6.0 are vulnerable to…8.6
- CVE-2024-21543Versions of the package djoser before 2.3.0 are vulnerable t…7.1
- CVE-2024-21544Versions of the package spatie/browsershot before 5.0.1 are …8.6
- CVE-2024-21545Proxmox Virtual Environment is an open-source server managem…8.2
- CVE-2024-21546Versions of the package unisharp/laravel-filemanager before …9.8
- CVE-2024-21547Versions of the package spatie/browsershot before 5.0.2 are …7.7
Are you affected by CVE-2024-21541?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
