Intel

AIKIDO-2026-10690

pm2 is vulnerable to Command Injection

Command Injection Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published May 4, 2026

78

High Risk

This Affects:

JSpm2
0.1.0 - 6.0.14
Fixed in 7.0.0
Are you affected? Scan for Free

TL;DR

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.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

pm2 is vulnerable to Command Injection in versions 0.1.0 - 6.0.14.

How to fix this

Upgrade the pm2 library to the patch version.