Top Risk: Arbitrary Code Execution & RCE

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.

Sources

Open the full topic