pidusage is vulnerable to command injections. Unsanitized input given to child_process.exec
resulting in command injection in the ps
method. This is caused because the pid is never cast to an integer as it expects. Windows and Linux are not vulnerable but Darwin, SunOS, FreeBSD, and AIX are.