pm2 is vulnerable to Command Injection
78
High Risk
Browser and desktop helpers that opened dashboards or vendor links still routed user-influenced strings through a shell-backed exec helper, so metacharacters could pivot into host command execution when those code paths ran. Configuration merge helpers treated attacker-controlled keys like ordinary fields, so prototype-chain keys could poison shared objects during set and unset. The HTTP interface path that strips sensitive environment variables for child processes could skip work entirely under some control flows, leaking more of the parent environment than intended. The major release switches those opens to execFile with fixed argument lists and tighter SUDO_USER handling, rejects dangerous prototype keys, and corrects env stripping.
You are affected if you are using a version that falls within the vulnerable range.
pm2 is vulnerable to Command Injection in versions 0.1.0 - 6.0.14.
Upgrade the pm2 library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

SOC 2Compliant
ISO 27001Compliant