QID 983856
QID 983856: Nodejs (npm) Security Update for ps (GHSA-cfhg-9x44-78h2)
Versions of `ps` before 1.0.0 are vulnerable to command injection. Proof of concept: ``` var ps = require('ps'); ps.lookup({ pid: "$(touch success.txt)" }, function(err, proc) { // this method is vulnerable to command injection if (err) {throw err;} if (proc) { console.log(proc); // Process name, something like "node" or "bash" } else { console.log('No such process'); } }); // Result: The file success.txt will exist on the filesystem if the touch command was executed ``` ## Recommendation Update to version 1.0.0 or later.
Successful exploitation of this vulnerability may affect the confidentiality, integrity, and availability of the targeted user.
Solution
Customers are advised to refer to GHSA-cfhg-9x44-78h2 for updates pertaining to this vulnerability.
Vendor References
- GHSA-cfhg-9x44-78h2 -
github.com/advisories/GHSA-cfhg-9x44-78h2
CVEs related to QID 983856
Software Advisories
| Advisory ID | Software | Component | Link |
|---|---|---|---|
| GHSA-cfhg-9x44-78h2 | ps |
|