PT-2024-18954 · Unknown · Dom-Iterator

Nodemedic-Fine

+1

·

Published

2024-11-13

·

Updated

2025-01-14

·

CVE-2024-21541

CVSS v3.1

9.8

Critical

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions dom-iterator versions prior to 1.0.1
Description The issue is related to Arbitrary Code Execution due to the use of the Function constructor without complete input sanitization. This allows an attacker to generate a new function body, posing risks similar to those of allowing attacker-controlled input to reach eval.
Recommendations For versions prior to 1.0.1, update to version 1.0.1 or later to resolve the issue. As a temporary workaround, consider restricting the use of the Function constructor to minimize the risk of exploitation.

Exploit

Fix

Code Injection

Weakness Enumeration

Related Identifiers

CVE-2024-21541
GHSA-JRVM-MCXC-MF6M

Affected Products

Dom-Iterator