CanonicalSecurity
Command/eval injection (CWE-78, CWE-95): never build a shell string or eval() from input you don’t control
eval(), new Function(), and shelling out with a string built from input all let an attacker run their own code or commands. Use an argv array (never shell:true) for subprocesses, and avoid eval/new Function on anything that isn’t a fixed literal.
securitycommand-injectioncwe-78