The primary danger of `eval()` and `new Function()` is enabling attackers to execute arbitrary malicious code, potentially leading to a full system compromise or remote code execution (RCE) if unsanitized user input is evaluated.
Open the full topic