CVE-2024-21541 – dom-iterator
Package
Manager: npm
Name: dom-iterator
Vulnerable Version: >=0 <1.0.1
Severity
Level: Medium
CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
CVSS v4.0: 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
EPSS: 0.00576 pctl0.67819
Details
dom-iterator code execution vulnerability 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.
Metadata
Created: 2024-11-13T06:30:29Z
Modified: 2025-01-14T21:18:03Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/11/GHSA-jrvm-mcxc-mf6m/GHSA-jrvm-mcxc-mf6m.json
CWE IDs: ["CWE-94"]
Alternative ID: GHSA-jrvm-mcxc-mf6m
Finding: F422
Auto approve: 1